OAuth 2.0 client credentials Grant#
Sequence Diagram#
sequenceDiagram
title Client credentials flow
autonumber 1
participant Client as Resource owner Client
participant JansAS as Jans AS
activate Client
Client->>JansAS:Client Authentication
activate JansAS
JansAS-->>Client:Access Token
deactivate JansAS
Testing#
-
https://github.com/JanssenProject/jans/blob/main/jans-auth-server/client/src/test/java/io/jans/as/client/ws/rs/ClientCredentialsGrantHttpTest.java
-
CURL Command:
curl -k -u "put_client_id:put_client_secret" https://jans-ui.jans.io/jans-auth/restv1/token \ -d "grant_type=client_credentials&scope=put_scope_name_here"