Package com.atlassian.sal.api.auth
Interface LoginUriProvider
public interface LoginUriProvider
Provides the
URI to redirect users to for them to login before they can
authorize consumer requests to access their data.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiongetLoginUri(URI returnUri) Returns theURIto redirect users for login.getLoginUri(URI returnUri, EnumSet<PageCapability> pageCaps) Returns theURIto redirect users for login.getLoginUriForRole(URI returnUri, UserRole role) Returns theURIto redirect users for login.getLoginUriForRole(URI returnUri, UserRole role, EnumSet<PageCapability> pageCaps) Returns theURIto redirect users for login.
-
Method Details
-
getLoginUri
Returns theURIto redirect users for login. It must append thereturnUriso that once login is complete, the user will be redirected back to the original page.- Parameters:
returnUri-URIof the page the application should redirect the user to after login is complete- Returns:
- the
URIto redirect users for login - Throws:
RuntimeException- if the returnUri is not a valid URI, or cannot be url encoded properly
-
getLoginUri
Returns theURIto redirect users for login. It must append thereturnUriso that once login is complete, the user will be redirected back to the original page.- Parameters:
returnUri-URIof the page the application should redirect the user to after login is completepageCaps-PageCapabilityfor product to supply in login page.- Returns:
- the
URIto redirect users for login - Throws:
RuntimeException- if the returnUri is not a valid URI, or cannot be url encoded properly
-
getLoginUriForRole
Returns theURIto redirect users for login. It must append thereturnUriso that once login is complete, the user will be redirected back to the original page. Page is expected to redirect back toURIonly if u- Parameters:
returnUri-URIof the page the application should redirect the user to after login is completerole-UserRoleof user- Returns:
- the
URIto redirect users for login - Throws:
RuntimeException- if the returnUri is not a valid URI, or cannot be url encoded properly
-
getLoginUriForRole
Returns theURIto redirect users for login. It must append thereturnUriso that once login is complete, the user will be redirected back to the original page. Page is expected to redirect back toURIonly if u This page is supposed to match requestedPageCapability- Parameters:
returnUri-URIof the page the application should redirect the user to after login is completerole-UserRoleof userpageCaps-PageCapabilityfor product to supply in login page.- Returns:
- the
URIto redirect users for login - Throws:
RuntimeException- if the returnUri is not a valid URI, or cannot be url encoded properly
-