[
https://issues.apache.org/jira/browse/SYNCOPE-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francesco Chicchiriccò updated SYNCOPE-1149:
--------------------------------------------
Description:
When trying to invoke on Syncope with a third-party JWT, the code in
[AuthDataAccessor#authenticate|https://github.com/apache/syncope/blob/syncope-2.0.4/core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java#L390-L394]
still errors if no access token is found:
{code}
AccessToken accessToken =
accessTokenDAO.find(authentication.getClaims().getTokenId());
if (accessToken == null) {
throw new AuthenticationCredentialsNotFoundException(
"Could not find JWT " +
authentication.getClaims().getTokenId());
}
{code}
was:
When trying to invoke on Syncope with a third-party JWT, the code in
AuthDataAccessor.authenticate still errors if no access token is found:
AccessToken accessToken =
accessTokenDAO.find(authentication.getClaims().getTokenId());
if (accessToken == null) {
throw new AuthenticationCredentialsNotFoundException(
"Could not find JWT " +
authentication.getClaims().getTokenId());
}
> Access token still required for the third party JWT SSO integration scenario
> ----------------------------------------------------------------------------
>
> Key: SYNCOPE-1149
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1149
> Project: Syncope
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.4
> Reporter: Colm O hEigeartaigh
> Assignee: Francesco Chicchiriccò
> Fix For: 2.0.5, 2.1.0
>
>
> When trying to invoke on Syncope with a third-party JWT, the code in
> [AuthDataAccessor#authenticate|https://github.com/apache/syncope/blob/syncope-2.0.4/core/spring/src/main/java/org/apache/syncope/core/spring/security/AuthDataAccessor.java#L390-L394]
> still errors if no access token is found:
> {code}
> AccessToken accessToken =
> accessTokenDAO.find(authentication.getClaims().getTokenId());
> if (accessToken == null) {
> throw new AuthenticationCredentialsNotFoundException(
> "Could not find JWT " +
> authentication.getClaims().getTokenId());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)