Authentificates user using auth code from external OAuth provider
- e_service - external OAuth provider code. Supported providers: google.com (google), facebook.com (facebook), vk.com (vk), mail.ru (mailru), odnoklassniki.ru (odks), emailAuth (emailAuth), UPushAuth (UPushAuth)
- e_code - authorization code from external OAuth provider
- client_id - own UOAuth client Id
- redirect_uri - redirect URL
if success returns own auth code and redirect URL. Depending on client option may return access token too.
<response xmlns="http://unact.net/xml/oauth">
<auth-code>011ccba6-0000-4cd4-8055-ebadaeaa0988</auth-code>
<access-token>011ccba6-0000-4cd4-8055-ebadaeaa0988</access-token>
<redirect-url>https://somewhere.net?command=cmd</redirect-url>
</response>
Returns own access token, own refresh token and account roles by the auth code recived from auth service or own refresh token
- refresh_token - empty or own refresh token
- code - empty or own auth code
- client_id - own client Id
- client_secret - own secret
<response xmlns="http://unact.net/xml/oauth">
<refresh-token>011ccba6-0000-4cd4-8055-ebadaeaa0988</refresh-token>
<access-token>011ccba6-0000-4cd4-8055-ebadaeaa0988</access-token>
<redirect-url>https://somewhere.net?command=cmd</redirect-url>
<roles>
<role>
<code>authenticated</code>
</role>
</roles>
</response>
Returns account roles and account information
- access_token - own access token
<response xmlns="http://unact.net/xml/oauth">
<roles>
<role>
<code>authenticated</code>
</role>
</roles>
<account>
<name>Tommy Catkins</name>
<email>current@mail.ru</email>
<id>93</id>
<code>current.mailru</code>
</account>
</response>