functional overview
OAuth 2.0 protocol is used for authorization.
Details of Functions
Authorization is performed at the specified authorization endpoint using the OAuth 2.0 protocol to obtain and store valid scopes and access tokens.
To deactivate an acquired access token,1715_network/OAuth2 token invalidationto use.
parameter
- argument (e.g. function, program, programme)
-
authorized endpoint character string data
Endpoint for authorization request request.Token Request URI character string data
An endpoint for exchanging authorization codes and tokens.client ID character string data
client identifierclient secret character string data
client secretscope character string data
Specify the scope of the access token as a space-delimited list.Option Parameters
redirect URI character string data
URI to which the result of the authorization request request is redirected*In Windows http://localhostPlease specify a port that can be listened to.
In Android/iOS, via "https://prd-unifinity-storage.s3-ap-northeast-1.amazonaws.com/oauth2redirect", "jp.co.unifinity://oauth2redirect The user will be redirected to "jp.co.unifinity://oauth2redirect".Token storage location Global : Tokens can be referenced by other Unifinity applications.
Local : Only the Unifinity application that executed the logic can see the tokens.Response Type Specify code/token (code is used for iOS/Android)
code : Request authorization code from authorized endpoint
token : request a token from an authorized endpoint
[Attention.
To delete a token, specify Global/Local as the token storage location.
Tokens are stored for each hostname in the Global/Local scope.
- return value
- character string data
- The return value is in JSON format and can be read and used with "Dictionary/JSON Read".
Returns the content received. - When successful:
-
access_token access token token_type Access token type expires_in Access token expiration date refresh_token Token for refresh scope
Scope of Access Token
- When Failure:
-
error Error Description error_description Error Description error_uri error URI