UaaTokenEnhancer.java from cloudfoundry/uaa
// Source: https://github.com/cloudfoundry/uaa | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package org.cloudfoundry.identity.uaa.oauth;
import org.cloudfoundry.identity.uaa.oauth.provider.OAuth2Authentication;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import static org.cloudfoundry.identity.uaa.oauth.token.ClaimConstants.EXTERNAL_ATTR;
public interface UaaTokenEnhancer {
/** Runtime availability; disabled enhancers must not change ordinary token or refresh claims. */
default boolean isEnabled() {
return true;
}
Map<String, String> getExternalAttributes(OAuth2Authentication authentication);
/**
* Names of claim
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key