Oauth2
No edit summary |
No edit summary |
||
(11 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<message>Write the content here to display this box</message> | |||
===Client Credentials Grant Flow=== | |||
1. Set up the call to obtain the "token" using the client secret, storing the result in transient classes as shown | '''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 [[Documentation: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: | |||
[[File:GetTokenOauth2.PNG]] | [[File:GetTokenOauth2.PNG]] | ||
Line 7: | Line 10: | ||
[[File:TokenModel.PNG|thumb|right]] | [[File:TokenModel.PNG|thumb|right]] | ||
2. Set up a server-side | 2. Set up a server-side ViewModel to refresh the token before expiry, using criterias (as an example) as shown below. | ||
[[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]] | ||
'''Please note that even though Oauth2 is standard, the naming conventions of all parameters may differ - these names worked using an Identity Server 4.''' | |||
'''Please note that | [[Category:Authentication]] | ||
{{Edited|July|12|2025}} |
Latest revision as of 05:30, 14 February 2025
This page was created by Henrik on 2019-03-10. Last edited by Stephanie@mdriven.net on 2025-02-14.
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:
2. Set up a server-side ViewModel to refresh the token before expiry, using criterias (as an example) as shown below.
2. Pass the "token" in all subsequent calls:
Please note that even though Oauth2 is standard, the naming conventions of all parameters may differ - these names worked using an Identity Server 4.