Class OAuthHeaders
- Since:
- 1.9.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe value to set in the WWW-Authenticate header along with theX_JAZZ_WEB_OAUTH_URLheader.static final StringThe response header returned by a Jazz application when the response status is HTTP 200 and content is a login form, to indicate user authentication is required.static final StringThe response header returned by Sodius applications when a request for creating a friend requires a provisional consumer key.static final StringA request header whose boolean value controls the OAuth dance made for accessing an OSLC remote resource from the OAuth client.static final StringThe response header returned by Sodius applications when a request requires a login to a third-party application (i.e: not an OSLC friend).static final StringThe response header returned by Sodius applications when a request requires a login to a remote OSLC friend application.static final StringThe response header returned by Sodius applications when access to a remote application made with a 2-legged OAuth client was rejected.static final StringThe response header returned by a Jazz application when a request requires an authentication to a third-party. -
Method Summary
-
Field Details
-
X_COM_SODIUS_OAUTH_DANCE_AUTO_START
A request header whose boolean value controls the OAuth dance made for accessing an OSLC remote resource from the OAuth client.By default, if the client has not yet an OAuth token to access the remote application (i.e. the user hasn't yet authenticated), it will automatically start the OAuth dance. This means it will ask the remote application to generate an OAuth request token and to provide the authorization URL. Setting this header value to
falsemakes the client to immediately return HTTP 401 in that case, without starting the OAuth dance and without even reaching the OSLC remote application. This can notably be interesting when requesting a Compact view of a linked OSLC resource, as the user navigates to a page and is not actively requesting anything yet, so an OAuth challenge is not immediately triggered.This header might be set by front-end to instruct its server not to auto start an OAuth dance. On server side, this header should be set as a boolean attribute on the
Resourceobject for theOslcClientto use it, as we don't want the header to be sent to remote application.- Since:
- 1.14.0
- See Also:
-
X_COM_SODIUS_OAUTH_REDIRECT_LOCATION
The response header returned by Sodius applications when a request requires a login to a remote OSLC friend application.- See Also:
-
X_COM_SODIUS_OAUTH_DOWNSTREAM_REDIRECT_LOCATION
The response header returned by Sodius applications when a request requires a login to a third-party application (i.e: not an OSLC friend).- See Also:
-
X_COM_SODIUS_OAUTH_APPROVAL_MODULE_LOCATION
The response header returned by Sodius applications when a request for creating a friend requires a provisional consumer key.- Since:
- 1.11.0
- See Also:
-
X_COM_SODIUS_OAUTH_TWO_LEGGED_AUTHENTICATE
The response header returned by Sodius applications when access to a remote application made with a 2-legged OAuth client was rejected. The value of the header is the value of theWWW-Authenticateheader responded by the remote application.- Since:
- 3.7.0
- See Also:
-
X_COM_IBM_TEAM_REPOSITORY_WEB_AUTH_MSG
The response header returned by a Jazz application when the response status is HTTP 200 and content is a login form, to indicate user authentication is required.- See Also:
-
X_JAZZ_WEB_OAUTH_URL
The response header returned by a Jazz application when a request requires an authentication to a third-party. It contains the URL to log into the third-party application.Sodius applications should also include this response header, along with the
WWW_AUTHENTICATE_DOWNSTREAMheader if:- the original request comes from a Jazz application
- the original request does not accept the HTML media type
- the Sodius application has to request another Jazz application and receives an authentication challenge with this header
- See Also:
-
WWW_AUTHENTICATE_DOWNSTREAM
The value to set in the WWW-Authenticate header along with theX_JAZZ_WEB_OAUTH_URLheader.- See Also:
-