-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: refactor token utils & impl a new service #302
base: main
Are you sure you want to change the base?
Conversation
Also, documented the behaviour of the flow.
* @throws IllegalArgumentException if the JWT token format is invalid or the specified fragment | ||
* is missing. | ||
*/ | ||
public JsonObject extractFragmentFromJWT(String jwtToken, TokenFragment tokenFragment) { |
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.
private JsonObject extractFragmentFromJWT(String jwtToken, TokenFragment tokenFragment)
* @link <a href="https://ga4gh.github.io/data-security/aai-openid-connect-profile">docs</a> | ||
* @link <a href="https://ga4gh-echo.aai.lifescience-ri.eu/index.html">playground</a> | ||
*/ | ||
public List<Visa> fetchTheFullPassportUsingPassportScopedAccessTokenAndGetVisas( |
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.
private List fetchTheFullPassportUsingPassportScopedAccessTokenAndGetVisas(
* invalid token format, missing claims, or failure to access required resources (e.g., public | ||
* key file or JWK endpoint). | ||
*/ | ||
public Optional<Visa> verifyVisaTokenAndTransformToVisaObject(String visaToken) { |
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.
private Optional verifyVisaTokenAndTransformToVisaObject(String visaToken) {
* included. | ||
* @return {@code List<Visa>} filtered visas. | ||
*/ | ||
public List<Visa> filterByVisaType(List<Visa> visas, VisaType visaType) { |
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.
private List filterByVisaType(List visas, VisaType visaType) {
No description provided.