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

url's in saml/metadata wrong? #30

Open
corneliusweiss opened this issue Apr 4, 2023 · 1 comment
Open

url's in saml/metadata wrong? #30

corneliusweiss opened this issue Apr 4, 2023 · 1 comment

Comments

@corneliusweiss
Copy link

corneliusweiss commented Apr 4, 2023

in the metadata (saml/metadata) services are defined:

    <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://localhost:4902/saml/slo" ResponseLocation="http://localhost:4902/saml/slo"></SingleLogoutService>
    <AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://localhost:4902/saml/acs" index="1"></AssertionConsumerService>
    <AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="http://localhost:4902/saml/acs" index="2"></AssertionConsumerService>

but these url's don't work

curl -v http://localhost:4902/saml/acs
*   Trying 127.0.0.1:4902...
* Connected to localhost (127.0.0.1) port 4902 (#0)
> GET /saml/acs HTTP/1.1
> Host: localhost:4902
> User-Agent: curl/7.86.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 403 Forbidden
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Tue, 04 Apr 2023 10:29:24 GMT
< Content-Length: 10
<
Forbidden

where as they are found in saml2 location

curl -v http://localhost:4902/saml2/acs
*   Trying 127.0.0.1:4902...
* Connected to localhost (127.0.0.1) port 4902 (#0)
> GET /saml2/acs HTTP/1.1
> Host: localhost:4902
> User-Agent: curl/7.86.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Location: http://web:4000/sso/saml2/redirect/signon?SAMLRequest=nJLBbtswDIZfxdDdkaw4TS3UBrIGwwJ0W9BkO%2BwmK3QjQKY8kV7X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fqsPf9XMWLPzj0pt6ZAloWhcwl-qnzSl3hWhg2dryxVEOyjyxVrpx7Un7eThJKepjo805KJRgaTZJj5EqerRfQEhtHOr6ezoWmKxXwQoqcA0aI21b-kUnCliBJrQPfoJWIp9LhuZLavDcJbobjBobq6QFycFTbhzlCS1Tphjy99eD_kvSbWuKsOq7v-kcgkHDGrCrafS2CKjPjH2Fmb8eH3I_K1RC6cbcXjPs0BcoFvOECRpc7oPtTso9U-y2LzvGSvRl9oqtYmo1_2--M5Lw; Path=/saml/acs; Max-Age=90; HttpOnly
< Date: Tue, 04 Apr 2023 10:29:20 GMT
< Content-Length: 0
@BeryJu
Copy link
Owner

BeryJu commented Apr 4, 2023

The URL in the metadata should correct, but since it's the url for the ACS it requires a SAML payload, and when calling it with the curl command above that is not the case.

The reason the other URL works is because all other URLs "require login", hence any other URL will redirect to the SAML Login process

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

No branches or pull requests

2 participants