@Override public OAuth2Authentication extractAuthentication(Map<String, ?> map) { return super.extractAuthentication(map); } }
@Override public OAuth2Authentication extractAuthentication(Map<String, ?> map) { Map<String, Object> claims = new HashMap<>(); claims.putAll(map); claims.put(UserAuthenticationConverter.USERNAME, map.get("prn")); return super.extractAuthentication(claims); } }
@Override public OAuth2Authentication extractAuthentication(Map<String, ?> claims) { OAuth2Authentication authentication = super.extractAuthentication(claims); authentication.setDetails(claims); return authentication; }
@Override public OAuth2Authentication extractAuthentication(Map<String, ?> map) { return super.extractAuthentication(tweakScopeMap(map)); }
((Map<String, Object>)map).put("user_name",((Map<String, Object>)map).get("username")); OAuth2Authentication authentication = super.extractAuthentication(map); if(map.containsKey("userId")){ CustomUserDetails user = new CustomUserDetails(authentication.getName(),
((Map<String, Object>) map).put("user_name", ((Map<String, Object>) map).get("username")); OAuth2Authentication authentication = super.extractAuthentication(map); if (map.containsKey(USER_ID)) { CustomUserDetails user = new CustomUserDetails(authentication.getName(),
((Map<String, Object>) map).put("user_name", ((Map<String, Object>) map).get("username")); OAuth2Authentication authentication = super.extractAuthentication(map); if (map.containsKey(USER_ID)) { CustomUserDetails user = new CustomUserDetails(authentication.getName(),
@Override @SuppressWarnings("unchecked") public OAuth2Authentication extractAuthentication(Map<String, ?> map) { Map<String, ?> newMap = (Map<String, ?>) (HspcAccessTokenConverter.convertScopeStringToCollection(map)); OAuth2Authentication oAuth2Authentication = super.extractAuthentication(newMap); HspcOAuth2Authentication hspcOAuth2Authentication = new HspcOAuth2Authentication(oAuth2Authentication.getOAuth2Request(), oAuth2Authentication.getUserAuthentication()); hspcOAuth2Authentication.setLaunchContextParams(extractLaunchContextParams(map)); return hspcOAuth2Authentication; }