What is PKCE?

PKCE (Proof Key for Code Exchange) is a security extension for the OAuth 2.0 Authorization Code flow.
It’s designed for public clients (like mobile apps or SPAs) that can’t securely store a client secret.
PKCE works by using a dynamically generated code verifier and challenge to prevent interception of the authorization code.


🛠 Steps to Configure PKCE in PingFederate 

  1. Login to PingFederate Admin Console

  2. Go to ApplicationsOAuth Clients
  3. Click Add Client

  4. Provide the following:
    • Client ID
    • Name

    • Redirect URI

    • Scopes

  1. Set Allowed Grant Types:
    • Authorization Code
    • Refresh Token

  2. Use the default token manager (e.g., ATM1)

  3. Enable: ✅ Require Proof Key for Code Exchange (PKCE)

  4. Save the client configuration

Steps to Get Access Token in Postman:-

1. Open Postman and Create a Request

·       Launch Postman application.

     Add request in ping oauth and rename as obtaining access token using authorization

·      

2. Go to the Authorization Tab

·       Select the “Authorization” tab located in the request window.

3. Select Authorization Type

·       In the Type dropdown, select OAuth 2.0.

4. Fill in OAuth 2.0 Configuration Details
FieldDescription
Token NameA name to identify your token (e.g., `My OAuth Token`)
Grant TypeSelect the appropriate grant type (Authorization Code, Client Credentials, etc.)
Callback URLRedirect URI registered with your identity provider (e.g., https://oauth.pstmn.io/v1/callback)
Auth URLThe authorization endpoint URL
Access Token URLThe token endpoint URL
Client IDProvided by your identity provider
Client SecretProvided by your identity provider
Scope(Optional) Define access levels (e.g., `openid profile`)
State / Client Auth(Optional) Depending on provider setup
Client Authentication Send as basic Auth Header

·       Provide the required fields as per your authorization server’s configuration:

5. Click “Get Token”

  After entering details, click “Get Token”.

·

        If applicable, Postman will redirect you to an authentication page.

·       Authenticate using your credentials.   

Postman will receive and display the token.

After getting new access token click on proceed 

click on use token the token is copied

DOCODE WITH JSON WEB TOKENS:-

✅ Step-by-Step Guide

1. Send Request and Get Token

Ensure your request in Postman uses OAuth 2.0 Authorization Code with PKCE to get the access token.

2. Extract the Token

After clicking “Use Token”, the token is attached to your request. You can extract and decode it using the json web token.

OPEN GOOGLE SEARCH JSON WEB TOKEN

3. After entering into json web token website  click on clear then preinstalled code will be removed

     4.Copied postman token have to paste here

   5.Once code is pasted the code will be automatically decoded and client details can view

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *