Class AuthUtils


  • public class AuthUtils
    extends Object
    • Method Detail

      • getSubjectFromAuth

        public static String getSubjectFromAuth​(org.springframework.security.core.Authentication authentication,
                                                String subjectClaim)
        Get user email from their authentication object.
        Parameters:
        authentication - Spring Security Authentication object, used to extract user details
        subjectClaim - Indicates the claim where the subject can be found
        Returns:
        String user email