Oauth2
No edit summary
No edit summary
Line 1: Line 1:
=Client Credentials Grant Flow=
===Client Credentials Grant Flow===


'''Server-to-server authentication''' using Oauth2 and the [https://tools.ietf.org/html/rfc6749#section-4.4 Client credentials grant flow] may be supported using these steps. Other flows may also be supported in a similar flow. User-authentication using Oauth2 and OpendId is described [[Openid|here.]]
'''Server-to-server authentication''' using Oauth2 and the [https://tools.ietf.org/html/rfc6749#section-4.4 Client credentials grant flow] may be supported using these steps. Other flows may also be supported in a similar flow. User-authentication using Oauth2 and OpendId is described [[Openid AzureAD|here.]]


1. Set up the call to obtain the "token" using the client secret, storing the result in transient classes as shown on the right:
1. Set up the call to obtain the "token" using the client secret, storing the result in transient classes as shown on the right:
Line 13: Line 13:
[[File:OauthSSCriteria.PNG]]
[[File:OauthSSCriteria.PNG]]


2. Pass the "token" in all subsequent calls.
2. Pass the "token" in all subsequent calls:


[[File:Oauth2Call.PNG]]
[[File:Oauth2Call.PNG]]

Revision as of 05:45, 4 July 2023

Client Credentials Grant Flow

Server-to-server authentication using Oauth2 and the Client credentials grant flow may be supported using these steps. Other flows may also be supported in a similar flow. User-authentication using Oauth2 and OpendId is described here.

1. Set up the call to obtain the "token" using the client secret, storing the result in transient classes as shown on the right:

GetTokenOauth2.PNG

TokenModel.PNG

2. Set up a server-side ViewModel to refresh the token before expiry, using criterias (as an example) as shown below.

OauthSSCriteria.PNG

2. Pass the "token" in all subsequent calls:

Oauth2Call.PNG


Please note that even though Oauth2 is standard, the naming conventions of all parameters may differ - these names worked using an Identity Server 4.

This page was edited 92 days ago on 02/10/2024. What links here