|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RESTOAuthProvider
This interface allows clients to provide extra information about OAuth authentications.
Method Summary | |
---|---|
void |
error(RESTException e)
Called when the OAuth process ends with an error |
java.lang.String |
getAuthServerUrl(RESTCallback callback,
java.lang.String tokenServerUrl,
Response response,
RESTException exception)
Provide the OAuth server URL for this request |
java.lang.String |
getClientId()
Get the optional client ID for this OAuth request. |
java.lang.String |
getScope()
Get the optional scope for this OAuth request. |
boolean |
shouldSendRedirectUrl()
Spiffy UI provides a mechanism to show the OAuth login page in an iFrame and close that frame when the login completes. |
Method Detail |
---|
java.lang.String getAuthServerUrl(RESTCallback callback, java.lang.String tokenServerUrl, Response response, RESTException exception)
Provide the OAuth server URL for this request
callback
- the callback for the original REST calltokenServerUrl
- the URL for the authentication serverresponse
- the server response that came with this 401exception
- the RESTException representation of the JSON response from the server if available
java.lang.String getClientId()
java.lang.String getScope()
boolean shouldSendRedirectUrl()
void error(RESTException e)
Called when the OAuth process ends with an error
e
- the RESTException returned from the serverRESTException
|
Spiffy UI Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |