public class AzureADGraphClient extends Object
| Constructor and Description |
|---|
AzureADGraphClient(String clientId,
String clientSecret,
AADAuthenticationProperties aadAuthProps,
ServiceEndpointsProperties serviceEndpointsProps) |
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.aad.msal4j.IAuthenticationResult |
acquireTokenForGraphApi(String idToken,
String tenantId) |
Set<org.springframework.security.core.GrantedAuthority> |
convertGroupsToGrantedAuthorities(List<UserGroup> groups)
Converts UserGroup list to Set of GrantedAuthorities
|
Set<org.springframework.security.core.GrantedAuthority> |
getGrantedAuthorities(String graphApiToken) |
List<UserGroup> |
getGroups(String graphApiToken) |
public AzureADGraphClient(String clientId, String clientSecret, AADAuthenticationProperties aadAuthProps, ServiceEndpointsProperties serviceEndpointsProps)
public List<UserGroup> getGroups(String graphApiToken) throws IOException
IOExceptionpublic Set<org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(String graphApiToken) throws IOException
IOExceptionpublic Set<org.springframework.security.core.GrantedAuthority> convertGroupsToGrantedAuthorities(List<UserGroup> groups)
groups - user groupspublic com.microsoft.aad.msal4j.IAuthenticationResult acquireTokenForGraphApi(String idToken, String tenantId) throws ServiceUnavailableException
ServiceUnavailableExceptionCopyright © 2020 Microsoft Corporation. All rights reserved.