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

Can the Bindings be changed through configuration options? #1485

Open
Ehryk opened this issue Jan 23, 2025 · 0 comments
Open

Can the Bindings be changed through configuration options? #1485

Ehryk opened this issue Jan 23, 2025 · 0 comments

Comments

@Ehryk
Copy link

Ehryk commented Jan 23, 2025

I am using Sustainsys.Saml2.AspNetCore2 as a NuGet package, and in looking through the documentation I don't see how I could adjust the bindings on the resulting metadata.

I'm getting asked by our Identity Provider to change our SingleLogoutService binding to HTTP-POST and only have a single AssertionConsumerService Binding of HTTP-POST.

Current Output:

<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="<site>/Saml2/Logout"/>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="<site>/Saml2/Acs" isDefault="true" index="0"/>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="<site>/Saml2/Acs" isDefault="false" index="1"/>

Desired Output:

<SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="<site>/Saml2/Logout"/>
<AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="<site>/Saml2/Acs" isDefault="true" index="0"/>

Obviously I can just edit the XML to change these values, but is there a way to configure this to be what is output from the /Saml2 endpoint?

@Ehryk Ehryk added the question label Jan 23, 2025
@Ehryk Ehryk changed the title Can the Bindings be changed through configur Can the Bindings be changed through configuration options? Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant