Skip to content

GetTokenFromProvider

Generates an authentication token to from external identity provider. User must be already registered before calling this method. Otherwise please use GetTokenFromUserInfo method.

Info

The generated token is only used for login purposes and cannot be used as a session token. You may pass this token to the auth parameter to authenticate users and system will issue a new session token for the user.

Required Scope

login

Parameters

Parameter Name Description
apiKey A unique key used to authenticate and authorise the calling system.
accessToken The access token obtained from the authentication provider.
logonProvider The authentication provider used for user login (e.g., 'Organization' for Emakin's default login system).

Example Call

1
2
3
4
5
6
7
POST https://mydomain.emakin.com/rest/v1/getToken

{
     "apiKey": "xxxx",
     "accessToken": "ABC...DEF",
     "logonProvider": "Office365"
}
1
2
3
4
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

"41AA3CE3CAFB..............BF8114"