Skip to content

can't get userId / userEmail from authentication #4

@venkat125

Description

@venkat125

How to get authorities by userId / userEmail instead of userName?

SecurityContextHolder.getContext()
					.setAuthentication(new UsernamePasswordAuthenticationToken(authentication.getName(), null,
							userDetailsService.loadUserByUsername(authentication.getName()).getAuthorities()));

couldn't get other user attributes other than name? May i know how to get that. Even when i try to get authentication.details() which returns null. Please guide me on this.

Note: Raised issue, incase to use only email as only unique column for user table. Otherwise working fine. Thanks!
You can close this, if we can't get userId / userEmail from the refreshToken.
@talk2amareswaran

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions