Details
-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
Hard
-
Pull Request accepted
-
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.