-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: P4PU-329 save access token #43
Conversation
src/test/java/it/gov/pagopa/arc/service/CustomAuthenticationSuccessHandlerTest.java
Show resolved
Hide resolved
|
||
@Override | ||
public IamUserInfoDTO getUserInfo(String accessToken) { | ||
return tokens.getOrDefault(accessToken, null); |
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.
consider the use of Optional
as return param
} | ||
@Test | ||
void givenAuthenticationRequestThenInResponseGetCustomTokenResponse() throws IOException { | ||
String sample_id_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ik1hcmNvIiwiaWF0IjoxNTE2MjM5MDIyLCJmaXNjYWxOdW1iZXIiOiI3ODkwMTIiLCJmYW1pbHlOYW1lIjoiUG9sbyIsImVtYWlsIjoibWFyY28ucG9sb0BleGFtcGxlLmNvbSIsImlzcyI6Imlzc3VlciJ9.AErwXpbHrT_0WvN86QuQ0nvnZndVxt8jnmiD1lfj1_A"; |
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.
Sonar points out the naming of sample_id_token
as issue. Try with camelCase
Quality Gate passedIssues Measures |
List of Changes
Added feature that saves each access token with relative user data in in-memory storage
Motivation and Context
For the future purpose we should have a store where all active access_token shoud be stored
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: