-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
|
||
if(user.getClaim(GA4GH_PASSPORT_SCOPE) != null && providerType.isEmpty()){ | ||
providerType = Optional.of(ProviderType.PASSPORT); | ||
} |
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.
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()) |
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.
this is a new field providerIssuerUri
to differentiate passport brokers
Ego issue #723
private String getRefreshToken(OAuth2UserRequest oAuth2UserRequest) { | ||
val refreshToken = | ||
(String) | ||
oAuth2UserRequest.getAdditionalParameters().get(OAuth2ParameterNames.REFRESH_TOKEN); | ||
return refreshToken; | ||
} |
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.
This formatting is hillarious... is this caused by a line width limit?
changes: