You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -126,9 +126,35 @@ class SamlController < ApplicationController
126
126
end
127
127
end
128
128
```
129
+
## Metadata Based Configuration
129
130
131
+
The method above requires a little extra work to manually specify attributes about the IdP. (And your SP application) There's an easier method -- use a metadata exchange. Metadata is just an XML file that defines the capabilities of both the IdP and the SP application. It also contains the X.509 public
132
+
key certificates which add to the trusted relationship. The IdP administrator can also configure custom settings for an SP based on the metadata.
130
133
131
-
If are using saml:AttributeStatement to transfare metadata, like the user name, you can access all the attributes through `response.attributes`. It contains all the saml:AttributeStatement with its 'Name' as a indifferent key and the one saml:AttributeValue as value.
134
+
Using ```idp_metadata_parser.parse_remote``` IdP metadata will be added to the settings withouth further ado.
If are using saml:AttributeStatement to transfer metadata, like the user name, you can access all the attributes through `response.attributes`. It contains all the saml:AttributeStatement with its 'Name' as a indifferent key and the one saml:AttributeValue as value.
The saml:AuthnContextClassRef of the AuthNRequest can be provided by `settings.authn_context` , possible values are described at [SAMLAuthnCxt]. The comparison method can be set using the parameter `settings.authn_context_comparison` (the possible values are: 'exact', 'better', 'maximum' and 'minimum'), 'exact' is the default value.
141
-
If we want to add a saml:AuthnContextDeclRef, define a `settings.authn_context_decl_ref`.
The saml:AuthnContextClassRef of the AuthNRequest can be provided by `settings.authn_context` , possible values are described at [SAMLAuthnCxt]. The comparison method can be set using the parameter `settings.authn_context_comparison` (the possible values are: 'exact', 'better', 'maximum' and 'minimum'), 'exact' is the default value.
267
+
+If we want to add a saml:AuthnContextDeclRef, define a `settings.authn_context_decl_ref`.
0 commit comments