Difference between revisions of "Client flow description"

From i2Rest
Jump to: navigation, search
Line 15: Line 15:
 
! Parameter!! Description
 
! Parameter!! Description
 
|-
 
|-
|[[i2Rest-client command#AUTHMETHOD || Authentication method]] | *OAUTH2C  has to be chosen
+
|[[i2Rest-client command#AUTHMETHOD | Authentication method]] || *OAUTH2C  has to be chosen
 
|-
 
|-
 
|[[i2Rest-client command#COMAND| Command]] || Any of available request type can be choosen
 
|[[i2Rest-client command#COMAND| Command]] || Any of available request type can be choosen
Line 21: Line 21:
 
|[[i2Rest-client command#URL| API endpoint]] || Any of available request type can be choosen
 
|[[i2Rest-client command#URL| API endpoint]] || Any of available request type can be choosen
 
|-
 
|-
 
+
|[[i2Rest-client command#TOKENS| Tokens storage]] || Any of available request type can be choosen
 +
|-
 +
|[[i2Rest-client command#AUTHID| User/OAuth2 client/device ID] || Any of available request type can be choosen
 +
|-
 +
|[[i2Rest-client command#AUTHPW| User/OAuth2 client/dev passwd]] || Any of available request type can be choosen
 +
|-
 +
|[[i2Rest-client command#TOKENURL| OAuth2 token endpoint]] || Any of available request type can be choosen
 +
|-
 
|}
 
|}
  

Revision as of 12:13, 10 April 2020

An application can request an access token using only its own credentials, the flow is pretty simple. Client-flow-scheme.png


The flow consists of the following steps:
(A) The client authenticates with the authorization server and requests an access token from the token endpoint.

(B) The authorization server authenticates the client, and if valid, issues an access token.


So, the next parameters are required

Parameter Description
Authentication method *OAUTH2C has to be chosen
Command Any of available request type can be choosen
API endpoint Any of available request type can be choosen
Tokens storage Any of available request type can be choosen
[[i2Rest-client command#AUTHID| User/OAuth2 client/device ID] Any of available request type can be choosen
User/OAuth2 client/dev passwd Any of available request type can be choosen
OAuth2 token endpoint Any of available request type can be choosen



Back to i2Rest Client i2Rest client perfoms Oauth 2.0 Client credential flow when *OAUTH2C Authentication method is chosen.