Skip to content

Conversation

rafaelrenanpacheco
Copy link
Contributor

The unchecked exception if fixed by casting to Collection<?> instead of Collection<String> and casting each item with Object::toString prior the SimpleGrantedAuthority instantiation.

The possible NPE is fixed by returning Collections.emptyList() if the custom claim is missing in the JWT.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 26, 2019
Copy link
Contributor

@eleftherias eleftherias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @rafaelrenanpacheco! I have left a few comments inline regarding the indentation.

@eleftherias eleftherias self-assigned this Jan 2, 2020
@eleftherias eleftherias added in: docs An issue in Documentation or samples type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 2, 2020
@rafaelrenanpacheco
Copy link
Contributor Author

Sorry about that, I didn't see the default "Tabs" option when changing files directly on Github. Should be all spaces now 😄

@eleftherias eleftherias merged commit 96d82ec into spring-projects:master Jan 2, 2020
@eleftherias eleftherias added this to the 5.3.0.M1 milestone Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: docs An issue in Documentation or samples type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants