2016-06-02 16:07:45 +00:00
|
|
|
|
2024-07-22 08:16:24 +00:00
|
|
|
== SP element
|
2016-06-02 16:07:45 +00:00
|
|
|
|
2017-02-03 22:14:17 +00:00
|
|
|
Here is the explanation of the SP element attributes:
|
2016-06-02 16:07:45 +00:00
|
|
|
|
|
|
|
[source,xml]
|
|
|
|
----
|
|
|
|
|
|
|
|
<SP entityID="sp"
|
|
|
|
sslPolicy="ssl"
|
|
|
|
nameIDPolicyFormat="format"
|
|
|
|
forceAuthentication="true"
|
2017-06-06 14:50:33 +00:00
|
|
|
isPassive="false"
|
2019-08-23 09:57:10 +00:00
|
|
|
keepDOMAssertion="true"
|
2017-06-06 14:50:33 +00:00
|
|
|
autodetectBearerOnly="false">
|
2016-06-02 16:07:45 +00:00
|
|
|
...
|
|
|
|
</SP>
|
|
|
|
----
|
|
|
|
entityID::
|
|
|
|
This is the identifier for this client.
|
2017-02-03 22:14:17 +00:00
|
|
|
The IdP needs this value to determine who the client is that is communicating with it. This setting is _REQUIRED_.
|
2016-06-02 16:07:45 +00:00
|
|
|
|
|
|
|
sslPolicy::
|
|
|
|
This is the SSL policy the adapter will enforce.
|
2016-06-02 20:50:43 +00:00
|
|
|
Valid values are: `ALL`, `EXTERNAL`, and `NONE`.
|
|
|
|
For `ALL`, all requests must come in via HTTPS.
|
|
|
|
For `EXTERNAL`, only non-private IP addresses must come over the wire via HTTPS.
|
|
|
|
For `NONE`, no requests are required to come over via HTTPS.
|
2017-02-03 22:14:17 +00:00
|
|
|
This setting is _OPTIONAL_. Default value is `EXTERNAL`.
|
2016-06-02 16:07:45 +00:00
|
|
|
|
|
|
|
nameIDPolicyFormat::
|
|
|
|
SAML clients can request a specific NameID Subject format.
|
|
|
|
Fill in this value if you want a specific format.
|
2017-02-03 22:14:17 +00:00
|
|
|
It must be a standard SAML format identifier: `urn:oasis:names:tc:SAML:2.0:nameid-format:transient`.
|
2016-06-10 11:02:09 +00:00
|
|
|
This setting is _OPTIONAL_.
|
2016-06-02 16:07:45 +00:00
|
|
|
By default, no special format is requested.
|
|
|
|
|
|
|
|
forceAuthentication::
|
2017-02-03 22:14:17 +00:00
|
|
|
SAML clients can request that a user is re-authenticated even if they are already logged in at the IdP.
|
2016-06-10 11:03:57 +00:00
|
|
|
Set this to `true` to enable. This setting is _OPTIONAL_.
|
2016-06-10 11:01:17 +00:00
|
|
|
Default value is `false`.
|
2016-06-02 16:07:45 +00:00
|
|
|
|
|
|
|
isPassive::
|
2017-02-03 22:14:17 +00:00
|
|
|
SAML clients can request that a user is never asked to authenticate even if they are not logged in at the IdP.
|
2016-06-02 16:07:45 +00:00
|
|
|
Set this to `true` if you want this.
|
2016-06-10 11:02:09 +00:00
|
|
|
Do not use together with `forceAuthentication` as they are opposite. This setting is _OPTIONAL_.
|
2016-06-10 11:01:17 +00:00
|
|
|
Default value is `false`.
|
2016-06-02 16:07:45 +00:00
|
|
|
|
|
|
|
turnOffChangeSessionIdOnLogin::
|
2017-02-03 22:14:17 +00:00
|
|
|
The session ID is changed by default on a successful login on some platforms to plug a security attack vector.
|
2016-06-10 11:04:44 +00:00
|
|
|
Change this to `true` to disable this. It is recommended you do not turn it off.
|
2016-06-10 11:01:17 +00:00
|
|
|
Default value is `false`.
|
2016-06-02 16:07:45 +00:00
|
|
|
|
2017-06-06 14:50:33 +00:00
|
|
|
autodetectBearerOnly::
|
2021-12-22 10:28:04 +00:00
|
|
|
This should be set to __true__ if your application serves both a web application and web services (for example SOAP or REST).
|
|
|
|
It allows you to redirect unauthenticated users of the web application to the {project_name} login page,
|
2017-06-06 14:50:33 +00:00
|
|
|
but send an HTTP `401` status code to unauthenticated SOAP or REST clients instead as they would not understand a redirect to the login page.
|
2021-12-22 10:28:04 +00:00
|
|
|
{project_name} auto-detects SOAP or REST clients based on typical headers like `X-Requested-With`, `SOAPAction` or `Accept`.
|
2017-06-06 14:50:33 +00:00
|
|
|
The default value is _false_.
|
2018-05-30 20:30:34 +00:00
|
|
|
|
|
|
|
logoutPage::
|
|
|
|
This sets the page to display after logout. If the page is a full URL, such as `http://web.example.com/logout.html`,
|
|
|
|
the user is redirected after logout to that page using the HTTP `302` status code. If a link without scheme part is specified,
|
|
|
|
such as `/logout.jsp`, the page is displayed after logout, _regardless of whether it lies in a protected area according
|
|
|
|
to `security-constraint` declarations in web.xml_, and the page is resolved relative to the deployment context root.
|
2019-08-23 09:57:10 +00:00
|
|
|
|
|
|
|
keepDOMAssertion::
|
|
|
|
This attribute should be set to __true__ to make the adapter store the DOM representation of the assertion in its
|
|
|
|
original form inside the `SamlPrincipal` associated to the request. The assertion document can be retrieved using
|
|
|
|
the method `getAssertionDocument` inside the principal. This is specially useful when re-playing a signed assertion.
|
|
|
|
The returned document is the one that was generated parsing the SAML response received by the {project_name} server.
|
|
|
|
This setting is _OPTIONAL_ and its default value is __false__ (the document is not saved inside the principal).
|