Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Windows Communication Foundation (WCF) Services

In a .Net environment (Visual Studio 2005, - Visual Studio 2015) you can access the SAS WCF services by adding a service reference to your project. The service reference should be to the following endpoint:

       https://sandbox.surepassid.com/AuthServerWCFService/SurePassAuthServerWCFService.svc

When you create the service reference Visual Studio will create a proxy class to the SAS service that makes accessing the server very easy hiding the complexity of web service Soap messages. This proxy class will contain all the methods that are supported by the SAS server. Each method in the proxy class maps directly to the same methods in the Rest/Json interface.

REST Interface

The REST interface provides a simple and easy RESTful interface to the MFAS services. This interface is recommended for integrating the MFAS services into the following applications:

  • PHP apps
  • Python apps
  • .net apps
  • Java apps
  • any server based app that supports REST

The format of the REST requests are:

http POST to:

https://server/AuthServer/REST/U2F/U2FServer.aspx

where server is:

The REST request body is a json structure that specifies the type of action to be performed. All requests have the following common parameters:

  • 'type' – The type of request to be  performed  by the server.  The following types are supported.
  • username – The username (or token for the user) that this action is to be performed on.
  • spAccountLoginName – Your SurePassId server account name
  • spAccountLoginKey– Your SurePassId server account  key

 

The following 'type's are allowed:

  • add_u2f_account - add user account to your account
  • validate_u2f_user - authenticate the user name and password of the user. The first step in a two step authentication process
  • add_u2f_device - add an additional u2f device to the user account
  • delete_key - delete a specific fido u2f security key from the users account
  • delete_all_keys - delete a specific fido u2f security key from the users account
  • validate_oath_otp - validate a dynamic pass code send to the user. This is one possible second step in a two step process.
  • send_oath_otp - send a dynamic pass code send to the user. the system will call validate_oath_otp to verify the users identity
  • pre_enroll - perform the pre-enrolment process required to register as u2f device for the users account
  • enroll - enroll a u2f device for the users account
  • pre_sign - perform the pre-enrolment process required to register as u2f device for the users account
  • sign - authenticate a u2f device for the users account

For example:

 

 

The REST response body is a json structure. All responses have the following items at a minimum:

 

  • errorCode – The numeric error code for the request.  An errorCode of 0 signifies success.
  • errorMessage – The displayable  error message for the request. 

 

 

For example: To send a dynamic password (OTP) the user the REST request looks like this:

 

  • No labels