public interface AuthorisationURIGenerator
AuthenticationProviders.| Modifier and Type | Method and Description |
|---|---|
URI |
getAuthorisationURI()
Provides a URI that can be used to configure authentication for the
requested resource.
|
URI |
getAuthorisationURI(URI callback)
The URI that can be used to configure authentication for the requested
resource.
|
URI getAuthorisationURI(URI callback)
The URI that can be used to configure authentication for the requested resource.
The typical scenario is a call to an OAuth-protected remote resource for which the caller does not have an access token. If the caller has the ability to send a redirect (in case of a plugin servlet or webwork action), it would do so using this URL. This URL will take the user to a local endpoint that will perform the "OAuth dance":
If the caller does not have the ability to perform an HTTP redirect to this URL (possibly because it's a Web Panel), it can display a link or button that will open the URL in a popup dialog with an iframe, allowing the user to perform the oauth dance at a later time.
callback - the URI to redirect to after authentication is completegetAuthorisationURI() MUST
also return a non-null value.URI getAuthorisationURI()
getAuthorisationURI(URI callback) is optional.getAuthorisationURI(URI)
returns a non-null value, this method MUST also return
a non-null value.getAuthorisationURI(URI)Copyright © 2020 Atlassian. All rights reserved.