OAuth2 - Auth token is not getting generated with Authorization Code Grant

Hi Everyone,

I have configured an Authentication profile with Authorization code grant type. provided all the required details in the rule Client id,Cient secret, Auth code end point, Auth token end point, redirect URI. But when we are testing getting an error “Could not get fresh access token”.

I don’t see any entries are getting saved to “Data-Admin-Security-OAuth2-AccessToken” table.

I don’t see any error logs related to this authcode and authtoken.

So When exactly auth token gets generated using auth profile? How can we debug this authtoken generation to see where it is failing?

@BheemeshwarY16712548

Is this issue resolved? Facing similar issue.

@BheemeshwarY16712548

Try using the Grant type as JWT Bearer instead of Authorization code - this might help.

JWT based tokens are self-contained and should address most of the structural, signature, key and encoding related conflicts easily.

@BheemeshwarY16712548

Add below setting followed by restart.

  1. Add DSS setting for OAuth2/ExpiredTokenCleanUp/maxrecords - set to 15000
  2. Add DSS for OAuth2/ExpiredTokenCleanUp - set to 1
    3.Use refresh token if available" checkbox in auth profile.

Thank you !