Uses of Class
org.openhab.core.auth.client.oauth2.AccessTokenResponse
-
Uses of AccessTokenResponse in org.openhab.core.auth.client.oauth2
Modifier and TypeMethodDescriptionOAuthClientService.getAccessTokenByClientCredentials
(@Nullable String scope) Use case 4 - Client Credentials This is used to get the AccessToken by purely the client credential.OAuthClientService.getAccessTokenByImplicit
(@Nullable String redirectURI, @Nullable String scope, @Nullable String state) Use case 5 - Implicit Grant The implicit grant usually involves browser/javascript redirection flows.OAuthClientService.getAccessTokenByResourceOwnerPasswordCredentials
(String username, String password, @Nullable String scope) Use case 2 - Resource Owner Password Credentials This is for when the username and password of the actual resource owner (user) is known to the client.@Nullable AccessTokenResponse
OAuthClientService.getAccessTokenResponse()
Use case 7 - get access token response.OAuthClientService.getAccessTokenResponseByAuthorizationCode
(String authorizationCode, @Nullable String redirectURI) Use case 1 Part (D) This is a continuation of the flow of Authorization Code Grant, part (D).OAuthClientService.refreshToken()
Use case 3 - refreshToken.Modifier and TypeMethodDescriptionvoid
OAuthClientService.importAccessTokenResponse
(AccessTokenResponse accessTokenResponse) Use case 6 - Import This method is used for importing/ migrating existing Access Token Response to be stored by this service.void
AccessTokenRefreshListener.onAccessTokenResponse
(AccessTokenResponse tokenResponse) Notifies of a successful token response fromOAuthClientService.refreshToken()
.