-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(frontend): refactoring AuthServiceClient #6029
fix(frontend): refactoring AuthServiceClient #6029
Conversation
|
||
// TODO: Call getAuthenticatedUser and then generate a session cookie for the UI if the user is authenticated. | ||
|
||
final Optional<String> maybeRedirectPath = Optional.ofNullable(ctx().request().getQueryString(AUTH_REDIRECT_URI_PARAM)); | ||
final Optional<String> maybeRedirectPath = Optional.ofNullable(request.getQueryString(AUTH_REDIRECT_URI_PARAM)); |
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.
Nice - thank you!
.withHttpOnly(false) | ||
.withMaxAge(Duration.of(30, ChronoUnit.DAYS)) | ||
.build()); | ||
return ok().withSession(createSessionMap(userUrnString, accessToken)) |
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.
Thanks for extracting the common logic!
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.
Let's wait for CI to pass.
Summary
Refactors AuthServiceClient to:
Checklist