Codota Logo
DefaultAccessTokenConverter.extractAuthentication
Code IndexAdd Codota to your IDE (free)

How to use
extractAuthentication
method
in
org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter

Best Java code snippets using org.springframework.security.oauth2.provider.token.DefaultAccessTokenConverter.extractAuthentication (Showing top 8 results out of 315)

  • Common ways to obtain DefaultAccessTokenConverter
private void myMethod () {
DefaultAccessTokenConverter d =
  • Codota Iconnew DefaultAccessTokenConverter()
  • Smart code suggestions by Codota
}
origin: pl.touk.widerest/widerest-api

  @Override
  public OAuth2Authentication extractAuthentication(Map<String, ?> map) {
    return super.extractAuthentication(map);
  }
}
origin: com.vmware.card-connectors/connectors-config

  @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);
  }
}
origin: Infosys/openIDP

@Override
public OAuth2Authentication extractAuthentication(Map<String, ?> claims) {
  OAuth2Authentication authentication = super.extractAuthentication(claims);
  authentication.setDetails(claims);
  return authentication;
}
origin: com.okta.spring/okta-spring-security-starter

@Override
public OAuth2Authentication extractAuthentication(Map<String, ?> map) {
  return super.extractAuthentication(tweakScopeMap(map));
}
origin: com.hand.hap.cloud/hap-oauth-utils

  ((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(),
origin: io.choerodon/choerodon-starter-core

  ((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(),
origin: choerodon/choerodon-starters

  ((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(),
origin: org.hspconsortium.reference/hspc-reference-api-oauth2

@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;
}
org.springframework.security.oauth2.provider.tokenDefaultAccessTokenConverterextractAuthentication

Popular methods of DefaultAccessTokenConverter

  • <init>
  • convertAccessToken
  • setUserTokenConverter
    Converter for the part of the data in the token representing a user.
  • extractAccessToken
  • extractScope
  • getAudience
  • setIncludeGrantType
    Flag to indicate the the grant type should be included in the converted token.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Kernel (java.awt.image)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Notification (javax.management)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now