OAuth

Catalog


GET Authorize

Request path:

https://gateway.aiursoft.com/OAuth/AuthorizeTry

Request example:

https://gateway.aiursoft.com/OAuth/Authorize?ForceConfirm=false&TryAutho=false&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState

Request arguments:

Name Required Type
ForceConfirm Not required Boolean
TryAutho Not required Boolean
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Authorize

Request path:

https://gateway.aiursoft.com/OAuth/Authorize

Request content type:

application/x-www-form-urlencoded

Form content example:

AppName=yourAppName&AppImageUrl=yourAppImageUrl&Email=yourEmail&Password=yourPassword&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState 

Request form:

Name Required Type
AppName Not required Text
AppImageUrl Not required Text
Email Required Text
Password Required Text
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

GET Authorize confirm

Request path:

https://gateway.aiursoft.com/OAuth/AuthorizeConfirmTry

Request example:

https://gateway.aiursoft.com/OAuth/AuthorizeConfirm?AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState

Request arguments:

Name Required Type
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Authorize confirm

Request path:

https://gateway.aiursoft.com/OAuth/AuthorizeConfirm

Request content type:

application/x-www-form-urlencoded

Form content example:

AppName=yourAppName&UserNickName=yourUserNickName&Email=yourEmail&ViewOpenId=false&ViewPhoneNumber=false&ChangePhoneNumber=false&ConfirmEmail=false&ChangeBasicInfo=false&ChangePassword=false&ChangeGrantInfo=false&ViewAuditLog=false&ManageSocialAccount=false&TermsUrl=yourTermsUrl&PStatementUrl=yourPStatementUrl&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState 

Request form:

Name Required Type
AppName Not required Text
UserNickName Not required Text
Email Not required Text
ViewOpenId Required Boolean
ViewPhoneNumber Required Boolean
ChangePhoneNumber Required Boolean
ConfirmEmail Required Boolean
ChangeBasicInfo Required Boolean
ChangePassword Required Boolean
ChangeGrantInfo Required Boolean
ViewAuditLog Required Boolean
ManageSocialAccount Required Boolean
TermsUrl Not required Text
PStatementUrl Not required Text
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

GET Second auth

Request path:

https://gateway.aiursoft.com/OAuth/SecondAuthTry

Request example:

https://gateway.aiursoft.com/OAuth/SecondAuth?AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState

Request arguments:

Name Required Type
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Second auth

Request path:

https://gateway.aiursoft.com/OAuth/SecondAuth

Request content type:

application/x-www-form-urlencoded

Form content example:

VerifyCode=yourVerifyCode&DontAskMeOnIt=false&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState 

Request form:

Name Required Type
VerifyCode Required Text
DontAskMeOnIt Required Boolean
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

GET Recovery code auth

Request path:

https://gateway.aiursoft.com/OAuth/RecoveryCodeAuthTry

Request example:

https://gateway.aiursoft.com/OAuth/RecoveryCodeAuth?AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState

Request arguments:

Name Required Type
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Recovery code auth

Request path:

https://gateway.aiursoft.com/OAuth/RecoveryCodeAuth

Request content type:

application/x-www-form-urlencoded

Form content example:

RecoveryCode=yourRecoveryCode&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState 

Request form:

Name Required Type
RecoveryCode Required Text
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

GET Register

Request path:

https://gateway.aiursoft.com/OAuth/RegisterTry

Request example:

https://gateway.aiursoft.com/OAuth/Register?ForceConfirm=false&TryAutho=false&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState

Request arguments:

Name Required Type
ForceConfirm Not required Boolean
TryAutho Not required Boolean
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Register

Request path:

https://gateway.aiursoft.com/OAuth/Register

Request content type:

application/x-www-form-urlencoded

Form content example:

AppName=yourAppName&AppImageUrl=yourAppImageUrl&Email=yourEmail&Password=yourPassword&ConfirmPassword=yourConfirmPassword&CaptchaCode=yourCaptchaCode&PreferedLanguage=yourPreferedLanguage&AppId=yourAppId&RedirectUri=yourRedirectUri&State=yourState 

Request form:

Name Required Type
AppName Not required Text
AppImageUrl Not required Text
Email Required Text
Password Required Text
ConfirmPassword Not required Text
CaptchaCode Required Text
PreferedLanguage Not required Text
AppId Required Text
RedirectUri Required Text
State Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Signout

Request path:

https://gateway.aiursoft.com/OAuth/Signout

Request content type:

application/x-www-form-urlencoded

Form content example:

 

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

GET User signout

Request path:

https://gateway.aiursoft.com/OAuth/UserSignoutTry

Request example:

https://gateway.aiursoft.com/OAuth/UserSignout?ToRedirect=yourToRedirect

Request arguments:

Name Required Type
ToRedirect Not required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}