Adobe AccessTokenProvider error | Community
Skip to main content
Level 2
Mar 7, 2021 1:09 PM UTC
Solved

Adobe AccessTokenProvider error

Hello experts,

 

I am getting the following error when trying to get the access token using the AccessTokenProvider.getAccessToken() method. I am passing the proper parameters, resourceResolver generated from User, user id and claims as null. Below is the screenshot of the error.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Mar 7, 2021 3:00 PM UTC

It looks that you have some problem with your keyStore. 

 

KeyStoreService.getKeyStoreKeyPair (resourceResolver, ID, keyPairAlias) returns null. The KeyPairAlias is the value configured at the OSGI service "Adobe Granite Access Token Provider"  with the property name "auth.token.provider.keypair.alias" (default value is "access-token-key-pair").

 

4 replies

joerghoh
joerghohAccepted solution
Employee
Mar 7, 2021 3:00 PM UTC

It looks that you have some problem with your keyStore. 

 

KeyStoreService.getKeyStoreKeyPair (resourceResolver, ID, keyPairAlias) returns null. The KeyPairAlias is the value configured at the OSGI service "Adobe Granite Access Token Provider"  with the property name "auth.token.provider.keypair.alias" (default value is "access-token-key-pair").

 

Translate
Level 2
Mar 7, 2021 4:46 PM UTC
Thanks Jorg. It worked. What should be the value of "auth.token.provider.client.id", If I provider "TestClient" as value I am getting the invalid client id parameter as error. If I provide actual value I am getting null pointer exception.
Translate