Skip to content
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

multiple passport brokers & passport refresh token #718

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

leoraba
Copy link
Contributor

@leoraba leoraba commented Jun 13, 2023

changes:

@leoraba leoraba requested review from joneubank and Azher2Ali June 13, 2023 13:33

if(user.getClaim(GA4GH_PASSPORT_SCOPE) != null && providerType.isEmpty()){
providerType = Optional.of(ProviderType.PASSPORT);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assigning a generic providerType "PASSPORT" to any passport provider that contains the scope ga4gh_passport_v1

ProviderType.resolveProviderType(
authentication.getAuthorizedClientRegistrationId()))
.providerType(providerType.get())
.providerIssuerUri(user.getIssuer().toString())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a new field providerIssuerUri to differentiate passport brokers

@leoraba leoraba changed the title multiple passport brokers multiple passport brokers & passport refresh token Jun 29, 2023
Comment on lines +95 to +100
private String getRefreshToken(OAuth2UserRequest oAuth2UserRequest) {
val refreshToken =
(String)
oAuth2UserRequest.getAdditionalParameters().get(OAuth2ParameterNames.REFRESH_TOKEN);
return refreshToken;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This formatting is hillarious... is this caused by a line width limit?

@leoraba leoraba merged commit 2996159 into feature/develop-passport Jul 5, 2023
@leoraba leoraba deleted the feature/passport-brokers branch July 5, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants