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

chore: refactor token utils & impl a new service #302

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

yasinmiran
Copy link
Contributor

No description provided.

* @throws IllegalArgumentException if the JWT token format is invalid or the specified fragment
* is missing.
*/
public JsonObject extractFragmentFromJWT(String jwtToken, TokenFragment tokenFragment) {
Copy link
Contributor

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(
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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) {

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