Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a SAML example using ssoMetadataURL #71

Open
nwneisen opened this issue Jul 30, 2024 · 2 comments
Open

Add a SAML example using ssoMetadataURL #71

nwneisen opened this issue Jul 30, 2024 · 2 comments
Assignees
Labels
auth Relates to authentication

Comments

@nwneisen
Copy link
Collaborator

An example should be added to the SAML docs that shows users how to use ssoMetadataURL.

This field was added to mirror the current SAML config in MKE3. When this field is used, none of the other SAML fields are needed. MKE4 will make a request to the URL and pull all of the other SAML fields from the URL.

@nwneisen nwneisen added the auth Relates to authentication label Jul 30, 2024
@KoryKessel-Mirantis
Copy link
Collaborator

@nwneisen, can you provide a good example or point me to someone who can?

@KoryKessel-Mirantis KoryKessel-Mirantis self-assigned this Aug 29, 2024
@nwneisen
Copy link
Collaborator Author

nwneisen commented Aug 29, 2024

This is what the URL for my Okta SAML metadata url looks like

ssoMetadataURL: https://dev-64105006.okta.com/app/exk75pi5do2MzU1t95r7/sso/saml/metadata

And the output when visiting the URL

<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="http://www.okta.com/exk75pi5do2MzU1t95r7">
<md:IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:KeyDescriptor use="signing">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data>
<ds:X509Certificate>MIIDqDCCApCgAwIBAgIGAYRZVRraMA0GCSqGSIb3DQEBCwUAMIGUMQswCQYDVQQGEwJVUzETMBEG A1UECAwKQ2FsaWZvcm5pYTeWMBQGA1UEBwwNU2FuIEZyYW5jaXNjszENMAsGA1UECgwET2t0YTEU MBIGA1UECwwLU1NPUHJvdmlkZXIxFTATBgNVBAMMDGRldi02NDEwNTAwNjEcMBoGCSqG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
</md:KeyDescriptor>
<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat>
<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat>
<md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://dev-64105006.okta.com/app/dev-63105106_mke_2/exk75pi5do2MzU1t95r7/sso/saml"/>
<md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://dev-63105106.okta.com/app/dev-63105106_mke_2/exk75pi5do2MzU1t95r7/sso/saml"/>
</md:IDPSSODescriptor>
</md:EntityDescriptor>

All values have been modified from originals so they are no longer valid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Relates to authentication
Projects
None yet
Development

No branches or pull requests

2 participants