notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/service/rest/UserAttributeParameterEvaluator.java
private Jws<Claims> parseOidcToken(HttpServletRequest req) {

        final String authHeader = req.getHeader(HttpHeaders.AUTHORIZATION);
        if (StringUtils.isBlank(authHeader)
                || !authHeader.startsWith(Headers.BEARER_TOKEN_PREFIX)) {
            /*
             * No OIDC token available
             */
            return null;
        }

        final String bearerToken = authHeader.substring(Headers.BEARER_TOKEN_PREFIX.length());

        try {
            // Validate & parse the JWT
            final Jws<Claims> rslt =
                    Jwts.parser().setSigningKey(signatureKey).parseClaimsJws(bearerToken);

            logger.debug("Found the following OIDC Id token:  {}", rslt.toString());

            return rslt;
        } catch (Exception e) {
            logger.info("The following Bearer token is unusable:  '{}'", bearerToken);
            logger.debug("Failed to validate and/or parse the specified Bearer token", e);
        }

        return null;

    }
private Jws<Claims> parseOidcToken(HttpServletRequest req) {

        final String authHeader = req.getHeader(HttpHeaders.AUTHORIZATION);
        if (StringUtils.isBlank(authHeader)
                || !authHeader.startsWith(Headers.BEARER_TOKEN_PREFIX)) {
            /*
             * No OIDC token available
             */
            return null;
        }

        final String bearerToken = authHeader.substring(Headers.BEARER_TOKEN_PREFIX.length());

        try {
            // Validate & parse the JWT
            final Jws<Claims> rslt =
                    Jwts.parser().setSigningKey(signatureKey).parseClaimsJws(bearerToken);

            logger.debug("Found the following OIDC Id token:  {}", rslt.toString());

            return rslt;
        } catch (Exception e) {
            logger.info("The following Bearer token is unusable:  '{}'", bearerToken);
            logger.debug("Failed to validate and/or parse the specified Bearer token", e);
        }

        return null;

    }
private Jws < Claims > parseOidcToken ( HttpServletRequest req ) { final String authHeader = req . getHeader ( HttpHeaders . AUTHORIZATION ) ; if ( StringUtils . isBlank ( authHeader ) || ! authHeader . startsWith ( Headers . BEARER_TOKEN_PREFIX ) ) { /*
             * No OIDC token available
             */ return null ; } final String bearerToken = authHeader . substring ( Headers . BEARER_TOKEN_PREFIX . length ( ) ) ; try { // Validate & parse the JWT final Jws < Claims > rslt = Jwts . parser ( ) . setSigningKey ( signatureKey ) . parseClaimsJws ( bearerToken ) ; logger . debug ( "Found the following OIDC Id token:  {}" , rslt . toString ( ) ) ; return rslt ; } catch ( Exception e ) { logger . info ( "The following Bearer token is unusable:  '{}'" , bearerToken ) ; logger . debug ( "Failed to validate and/or parse the specified Bearer token" , e ) ; } return null ; }
Obtains information about the user from the Authorization header in the form of an OIDC Id
token.  In the future, it would be better to provide a standard tool (bean) for this job in
the <code>uPortal-soffit-renderer</code> component.
Obtains information about the user from the Authorization header in the form of an OIDC Id token . In the future it would be better to provide a standard tool ( bean ) for this job in the <code > uPortal - soffit - renderer< / code > component .