Skip to content
Discussion options

You must be logged in to vote

@Akaame I think this error is correct, null for an individual claim can also mean a token is available but the claim is not.

You should probably inject only SecurityIdentity and then cast the principal to JsonWebToken if securityIdentity.getPrincipal() is an instance of JsonWebToken and then get claims directly from JsonWebToken; this should work better when more than authentication mechanism is used

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Akaame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment