maksyms28136728
Community profile maksyms28136728 Level 1
Job title here
Location here
1 BADGE
Level 1

Level 1

Learn more
Joined the community 07-08-2019 6:47:14 AM
Offline
Top badges earned by maksyms28136728
Customize the badges you want to showcase on your profile
Re: OAuthAuthenticationHandler extractCredentials: fallba...
Avatar
Boost 1
Level 1
maksyms28136728
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
maksyms28136728
- Adobe Experience Manager
I found the issue.Login form should redirect to url that ends with "/callback/j_security_check"that triggers AEM code to make an additional call to OAuth service to get Access Token

Views

321

Like

1

Replies

0
Re: OAuthAuthenticationHandler extractCredentials: fallba...
Avatar
Boost 1
Level 1
maksyms28136728
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
maksyms28136728
- Adobe Experience Manager
Hi Albin,Thanks for response!I am not using JsonTokenExtractor. I followed same link that you provided.From the logs i see that AEM tries to find authorization_code in request before request comes back from OAuth login page.so log looks like this:com.adobe.granite.auth.oauth.impl.helper.OauthTokenManager token not found in request attribute or cookie for:custom_configGET /content/redirect/path.html?code=CodeFromTheOAuth&state=some_state HTTP/1.1

Views

323

Likes

0

Replies

0
OAuthAuthenticationHandler extractCredentials: fallback to we can't handle this
Avatar
Boost 1
Level 1
maksyms28136728
Level 1

Like

1 like

Total Posts

3 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
maksyms28136728
- Adobe Experience Manager
Hi, I've implemented a custom OAuth Provider and API. So currently AEM redirects to OAuth form, and after successful login user is redirected back to AEM withauthorization_code as a parameter http://localhost:4503/content/site/en/welcome.html?code=W8kJTZV9syQJ8JOuPWMTCeP_x2C190y-9CmWehunGpM&state=s5vraqvk34thmc5koifac1kblaThe problem is that OAuthAuthenticationHandler doesn't see authorization_code as a request param:com.adobe.granite.auth.oauth.impl.OAuthAuthenticationHandler extractCredentials...

Views

420

Likes

0

Replies

3
Likes given to
Likes from