Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0
-
Component/s: None
-
Labels:None
-
Difficulty:Hard
-
Pull Request Status:Pull Request accepted
-
Similar issues:
Description
To interact with Authorization service we’ll be creating the:
- AuthorizationServiceConfiguration here we’ll specify the URI to get the XWiki managed configuration hence creating the service configuration.
- Then to obtains the authorization code we’ll be creating a request using AuthorizationRequest.Builderpassing the above config, clientId, Response type and the redirect URI.
- And finally opening the request in the browser using AuthorizationService which will perform the authorization.
- At this point we’ll be listening the AuthorizationResponse. If the authorization is completed (authService.performTokenRequest). If the token response here is received successfully received, then authorization is completed.