Class MsGraphProfileCreator
- java.lang.Object
 - 
- org.pac4j.oauth.profile.creator.OAuth20ProfileCreator
 - 
- de.xima.fc.security.pac4j.msgraph.MsGraphProfileCreator
 
 
 
- 
- All Implemented Interfaces:
 org.pac4j.core.profile.creator.ProfileCreator
- Direct Known Subclasses:
 MsGraphProfileCreator
public class MsGraphProfileCreator extends org.pac4j.oauth.profile.creator.OAuth20ProfileCreatorProfile creator for Azure AD logins using the OAuth 2.0 access token and the MS Graph API.- Since:
 - 8.0.0
 - Author:
 - XIMA Media GmbH
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMsGraphProfileCreator.Builder 
- 
Field Summary
Fields Modifier and Type Field Description protected org.pac4j.core.client.IndirectClientclientprotected org.pac4j.oauth.config.OAuthConfigurationconfigurationprotected org.slf4j.Loggerloggerprotected static com.fasterxml.jackson.databind.ObjectMappermapper 
- 
Constructor Summary
Constructors Constructor Description MsGraphProfileCreator(org.pac4j.oauth.config.OAuth20Configuration configuration, org.pac4j.oauth.client.GenericOAuth20Client client, boolean queryMemberOf, boolean queryManager)Deprecated. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MsGraphProfileCreator.Builderbuilder(org.pac4j.oauth.config.OAuth20Configuration configuration, org.pac4j.oauth.client.GenericOAuth20Client client)Optional<org.pac4j.core.profile.UserProfile>create(org.pac4j.core.credentials.Credentials arg0, org.pac4j.core.context.WebContext arg1, org.pac4j.core.context.session.SessionStore arg2)protected com.github.scribejava.core.model.OAuthRequestcreateOAuthRequest(String arg0, com.github.scribejava.core.model.Verb arg1)protected Optional<org.pac4j.core.profile.UserProfile>retrieveUserProfileFromToken(org.pac4j.core.context.WebContext context, com.github.scribejava.core.model.Token accessToken)protected StringsendRequestForData(com.github.scribejava.core.oauth.OAuthService arg0, com.github.scribejava.core.model.Token arg1, String arg2, com.github.scribejava.core.model.Verb arg3) 
 - 
 
- 
- 
Constructor Detail
- 
MsGraphProfileCreator
@Deprecated public MsGraphProfileCreator(org.pac4j.oauth.config.OAuth20Configuration configuration, org.pac4j.oauth.client.GenericOAuth20Client client, boolean queryMemberOf, boolean queryManager)
Deprecated. 
 - 
 
- 
Method Detail
- 
builder
public static MsGraphProfileCreator.Builder builder(org.pac4j.oauth.config.OAuth20Configuration configuration, org.pac4j.oauth.client.GenericOAuth20Client client)
 
- 
retrieveUserProfileFromToken
protected Optional<org.pac4j.core.profile.UserProfile> retrieveUserProfileFromToken(org.pac4j.core.context.WebContext context, com.github.scribejava.core.model.Token accessToken)
 
- 
create
public Optional<org.pac4j.core.profile.UserProfile> create(org.pac4j.core.credentials.Credentials arg0, org.pac4j.core.context.WebContext arg1, org.pac4j.core.context.session.SessionStore arg2)
- Specified by:
 createin interfaceorg.pac4j.core.profile.creator.ProfileCreator
 
- 
sendRequestForData
protected String sendRequestForData(com.github.scribejava.core.oauth.OAuthService arg0, com.github.scribejava.core.model.Token arg1, String arg2, com.github.scribejava.core.model.Verb arg3)
 
- 
createOAuthRequest
protected com.github.scribejava.core.model.OAuthRequest createOAuthRequest(String arg0, com.github.scribejava.core.model.Verb arg1)
 
 - 
 
 -