public class AADOAuth2UserService extends Object implements org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest,org.springframework.security.oauth2.core.oidc.user.OidcUser>
| Modifier and Type | Field and Description |
|---|---|
private AADAuthenticationProperties |
aadAuthProps |
private static String |
DEFAULT_USERNAME_ATTR_NAME |
private static String |
INVALID_REQUEST |
private static String |
SERVER_ERROR |
private ServiceEndpointsProperties |
serviceEndpointsProps |
| Constructor and Description |
|---|
AADOAuth2UserService(AADAuthenticationProperties aadAuthProps,
ServiceEndpointsProperties serviceEndpointsProps) |
| Modifier and Type | Method and Description |
|---|---|
private String |
getUserNameAttrName(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest) |
org.springframework.security.oauth2.core.oidc.user.OidcUser |
loadUser(org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest userRequest) |
private org.springframework.security.oauth2.core.OAuth2AuthenticationException |
wrapException(String errorCode,
String errDesc,
String uri,
Exception e) |
private static final String INVALID_REQUEST
private static final String SERVER_ERROR
private static final String DEFAULT_USERNAME_ATTR_NAME
private AADAuthenticationProperties aadAuthProps
private ServiceEndpointsProperties serviceEndpointsProps
public AADOAuth2UserService(AADAuthenticationProperties aadAuthProps, ServiceEndpointsProperties serviceEndpointsProps)
public org.springframework.security.oauth2.core.oidc.user.OidcUser loadUser(org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest userRequest)
throws org.springframework.security.oauth2.core.OAuth2AuthenticationException
loadUser in interface org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.oidc.userinfo.OidcUserRequest,org.springframework.security.oauth2.core.oidc.user.OidcUser>org.springframework.security.oauth2.core.OAuth2AuthenticationExceptionprivate org.springframework.security.oauth2.core.OAuth2AuthenticationException wrapException(String errorCode, String errDesc, String uri, Exception e)
private String getUserNameAttrName(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest)
Copyright © 2019 Microsoft. All rights reserved.