-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify the OIDC Authenticator to support Native SDK based Federation Flow in API Based Authentication #154
Modify the OIDC Authenticator to support Native SDK based Federation Flow in API Based Authentication #154
Conversation
…to add-API-based-authentication # Conflicts: # components/org.wso2.carbon.identity.application.authenticator.oidc/src/main/java/org/wso2/carbon/identity/application/authenticator/oidc/OpenIDConnectAuthenticator.java
...java/org/wso2/carbon/identity/application/authenticator/oidc/OIDCAuthenticatorConstants.java
Outdated
Show resolved
Hide resolved
...java/org/wso2/carbon/identity/application/authenticator/oidc/OpenIDConnectAuthenticator.java
Outdated
Show resolved
Hide resolved
/** | ||
* Copyright (c) 2015, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. | ||
/* | ||
* Copyright (c) 2015, WSO2 LLC. (http://www.wso2.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed year range should come in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed with #184
/** | ||
* Copyright (c) 2013, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. | ||
/* | ||
* Copyright (c) 2013, WSO2 LLC. (http://www.wso2.com). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
year range
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already addressed with dhaura@fee04f6
|
||
IdentityProviderProperty[] identityProviderProperties = externalIdentityProvider.getIdpProperties(); | ||
for (IdentityProviderProperty identityProviderProperty: identityProviderProperties) { | ||
if (identityProviderProperty.getName().equals(IdPManagementConstants.IS_TRUSTED_TOKEN_ISSUER)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use <constant>.equals(<variable>)
pattern to avoid possible NPE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already addressed with 95e4f9c
Proposed changes in this pull request
getContextIdentifier()
in order to returnsessionDataKey
in Native SDK based Federation flows.requestAccessToken()
in order to exchange an access tokens in Native SDK based Federation flows.NativeSDKBasedFederatedOAuthClientResponse
.Additional Context
Mode 1
: External IDP is configured in IS and the authentication is handled through IS by redirecting to the external IDP.Mode 2
-Native SDK based Federation
: The app uses the IdP SDK for a social login option, for example, Google; and federating to Google directly from the app. Then, the client will exchange an access token received directly from the IdP, for an OAuth2 token from the IS side. (This flow will be executed, only if the IdP is a trusted token issuer.)Related PRs
Related Issues