public interface LiAuthService
Modifier and Type | Interface and Description |
---|---|
static interface |
LiAuthService.FreshTokenCallBack
Callback interface for token endpoint requests.
|
static interface |
LiAuthService.LiTokenResponseCallback |
static interface |
LiAuthService.LoginCompleteCallBack
Callback interface after login process is done.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the LiAuthServiceImpl after auth flow.
|
void |
enablePostAuthorizationFlows(boolean isLoginSuccess,
int responseCode)
Performs post authorization flow.
|
void |
getUserAfterTokenResponse(LiAuthService.LoginCompleteCallBack loginCompleteCallBack)
Fetching details of User after login is completed.
|
void |
handleAuthorizationResponse(LiSSOAuthResponse response,
LiAuthRestClient authRestClient,
LiAuthService.LoginCompleteCallBack loginCompleteCallBack)
Handles what to do after authorization response.
|
void |
performAuthorizationRequest(LiSSOAuthorizationRequest request)
Initiates Authorization request (Non SSO).
|
void |
performRefreshTokenRequest(LiAuthService.LiTokenResponseCallback callback)
Use to fetch Refresh token in an Async call.
|
void |
performSSOAuthorizationRequest(LiSSOAuthorizationRequest request)
Initiates Authorization request for SSO case.
|
LiTokenResponse |
performSyncRefreshTokenRequest()
Use to fetch Refresh token in an Sync call.
|
void |
startLoginFlow()
Initiates Login Flow
|
void |
startLoginFlow(java.lang.String ssoToken)
Initiates Login Flow
|
void startLoginFlow()
void startLoginFlow(java.lang.String ssoToken)
void performAuthorizationRequest(LiSSOAuthorizationRequest request)
request
- LiSSOAuthorizationRequest
void performSSOAuthorizationRequest(LiSSOAuthorizationRequest request) throws LiRestResponseException
request
- LiSSOAuthorizationRequest
LiRestResponseException
void handleAuthorizationResponse(LiSSOAuthResponse response, LiAuthRestClient authRestClient, LiAuthService.LoginCompleteCallBack loginCompleteCallBack) throws LiRestResponseException
response
- LiSSOAuthResponse
authRestClient
- LiAuthRestClient
loginCompleteCallBack
- LiAuthService.LoginCompleteCallBack
LiRestResponseException
- LiRestResponseException
void getUserAfterTokenResponse(LiAuthService.LoginCompleteCallBack loginCompleteCallBack)
loginCompleteCallBack
- LiAuthService.LoginCompleteCallBack
void performRefreshTokenRequest(LiAuthService.LiTokenResponseCallback callback) throws LiRestResponseException
callback
- LiAuthService.LiTokenResponseCallback
LiRestResponseException
LiTokenResponse performSyncRefreshTokenRequest() throws LiRestResponseException
LiTokenResponse
LiRestResponseException
- LiRestResponseException
void enablePostAuthorizationFlows(boolean isLoginSuccess, int responseCode)
isLoginSuccess
- Says whether login is success and user data has been retrieved.responseCode
- HTTP error code that gets returned in the intentvoid dispose()