public interface IOAuth2Service
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(OAuth2Service service,
String code)
Authorize user by given service and code
|
boolean |
register(OAuth2Service service,
String code)
Register user by given service and code
|
OAuth2ServiceContext |
requestAuthorizationUrl(OAuth2Service service,
String secretState)
Request authorization url
|
OAuth2ServiceContext requestAuthorizationUrl(OAuth2Service service, String secretState)
service - service which need use for requestsecretState - secret OAuth2 stateOAuth2ServiceContext context for user loginboolean authorize(OAuth2Service service, String code) throws LoginException
service - service for authorize usercode - OAuth2 code which was received from OAuth2 serverLoginExceptionboolean register(OAuth2Service service, String code) throws RegistrationException
service - service for register usercode - OAuth2 code which was received from OAuth2 serverRegistrationExceptionCopyright © 2020. All rights reserved.