Skip to content

OAuth 2.0 client credentials Grant#

Sequence Diagram#

sequenceDiagram
title Client credentials flow
autonumber 1

activate Resource owner Client
Resource owner Client->>Jans AS:Client Authentication
activate Jans AS
Jans AS-->>Resource owner Client:Access Token
deactivate Jans AS

Testing#

  1. https://github.com/JanssenProject/jans/blob/main/jans-auth-server/client/src/test/java/io/jans/as/client/ws/rs/ClientCredentialsGrantHttpTest.java

  2. 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" 
    


Last update: 2024-09-27
Created: 2022-07-21