org.springframework.social.partnercenter.security.AzureADServiceProvider Maven / Gradle / Ivy
package org.springframework.social.partnercenter.security;
import org.springframework.social.ServiceProvider;
import org.springframework.social.oauth2.OAuth2Operations;
public interface AzureADServiceProvider extends ServiceProvider{
/**
* Get the service interface for carrying out the "OAuth dance" with this provider.
* The result of the OAuth dance is an access token that can be used to obtain a {@link #getApi(String) API binding}.
* @return an {@link OAuth2Operations} for carrying out the "OAuth dance" with this provider.
*/
AzureADAuthOperations getAzureADAuthOperations();
/**
* Returns an API interface allowing the client application to access protected resources on behalf of a user.
* @param accessToken the API access token
* @return a binding to the service provider's API
*/
T getApi(String accessToken);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy