davidallendj / opaal

Tool to automate the OAuth 2.0/OIDC flows
MIT License
1 stars 3 forks source link

[FEATURE] Automate client credentials grant #3

Open davidallendj opened 6 months ago

davidallendj commented 6 months ago

It would be useful if opaal had a way to automate the client credentials grant authorization work flow to get an access token from a trusted issuer. This would be useful for creating tokens for trusted clients that need to make requests to other trusted services. Implementing this authorization flow would require the following steps:

  1. Registering a new OAuth2 client with the the authorization server and receive client ID and secret. This is usually done by making a request to an /oauth2/register endpoint.
  2. Requesting a token via a request to an /oauth/token endpoint.