Skip to content

Commit b2fb289

Browse files
Copilotsandhose
andcommitted
Add complete Shibboleth metadata file example
Co-authored-by: sandhose <1549952+sandhose@users.noreply.github.com>
1 parent af15767 commit b2fb289

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

docs/setup/sso.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -607,13 +607,34 @@ These instructions assume you have a running Shibboleth instance with the OIDC p
607607

608608
Register MAS as a relying party in Shibboleth:
609609

610-
1. Add a metadata file to `%{idp.home}/metadata/` (see the [Shibboleth documentation](https://shibboleth.atlassian.net/wiki/spaces/SC/pages/1912406916/OAuthRPMetadataProfile) for the template).
611-
612-
Adjust the following in the metadata file:
613-
- Client ID: `entityID="<client-id>"`
614-
- Client Secret: `<oidcmd:ClientSecret><client-secret></oidcmd:ClientSecret>`
615-
- Redirect URI: `Location="https://<auth-service-domain>/upstream/callback/<id>"`
616-
- Scope: `scopes="openid profile email"`
610+
1. Add a metadata file (e.g. `mas-metadata.xml`) to `%{idp.home}/metadata/` with the following content:
611+
612+
```xml
613+
<?xml version="1.0" encoding="UTF-8"?>
614+
<EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
615+
xmlns:oidcmd="urn:mace:shibboleth:metadata:oidc:1.0"
616+
entityID="<client-id>">
617+
<Extensions>
618+
<oidcmd:ClientInformation>
619+
<oidcmd:ClientSecret><client-secret></oidcmd:ClientSecret>
620+
</oidcmd:ClientInformation>
621+
</Extensions>
622+
<SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
623+
<Extensions>
624+
<oidcmd:OIDCClientInformation scopes="openid profile email"
625+
token_endpoint_auth_method="client_secret_basic">
626+
<oidcmd:GrantType>authorization_code</oidcmd:GrantType>
627+
<oidcmd:ResponseType>code</oidcmd:ResponseType>
628+
</oidcmd:OIDCClientInformation>
629+
</Extensions>
630+
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
631+
Location="https://<auth-service-domain>/upstream/callback/<id>"
632+
index="1"/>
633+
</SPSSODescriptor>
634+
</EntityDescriptor>
635+
```
636+
637+
Replace `<client-id>`, `<client-secret>`, `<auth-service-domain>`, and `<id>` with your values.
617638

618639
2. Reference the metadata file in `%{idp.home}/conf/metadata-providers.xml` and reload services.
619640

0 commit comments

Comments
 (0)