...
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponseAuthServerU2FResponseSendPush SendPushMessage(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string printedSerialNumber, short deliveryMethod string appName, string accountName, string reason, string relyingParty); |
...
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponse AuthServerU2FResponseSendPush resp = SendPushMessage("accountLogin", "accountKey", "Mandy, "", 0, "Windows", "Mandy2", "Login", "https://verification,yourco.com"); |
Code Block | ||||
---|---|---|---|---|
| ||||
if (resp.ErrorCode != 0) {
message.Text = resp.ErrorMsg;
return false;
}
// save resp.AuthnUserReqId. This will be used to authenticate a user after // they have been authenticated via push |
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | user account login name |
type | string | send_push_message |
printedSerialNumber | string | A specific device assigned to this user. If this is left empty then the first device assigned device is used |
deliveryMethod | string | How to deliver the push message to the user. pushsmsquestion, pushapp, pushappu2f |
appName | string | Application that is requesting access. This will be displayed to the user in the push message. For example Windows Login, Payment Verification, etc. |
accountName | string | Account requesting access. This will be displayed to the user in the push message. For example. Mark, jackfake123@phoney.com, etc. |
reason | string | Reason for access. This will be displayed to the user in the push message. For example. Login, Payment Verification, etc. |
relyingParty | string | The URI of the requesting party. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "errorCode": 0, "errorMessage": "OK", "type": "send_push_message", "authnUserReqId" : "3e^n(R1jk345sdfhgn" } // save authnUserReqId. This will be used to authenticate a user after // they have been authenticated via push |