Skip to content
New issue

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

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

Already on GitHub? # to your account

Metadata not found #25

Open
jmls opened this issue Sep 10, 2020 · 2 comments
Open

Metadata not found #25

jmls opened this issue Sep 10, 2020 · 2 comments

Comments

@jmls
Copy link

jmls commented Sep 10, 2020

I'm getting a Metadata not found when trying to log in using saml

Metadata not found
Unable to locate metadata for 'http://dev.localhost/v1/saml/f789766c-e073-4ee5-8fb3-d3258223cd20/metadata.xml'
This is most likely a configuration problem on either the service provider or identity provider.

however, if I take the url specified above, and docker exec into the container, using curl from the shell gives me

jmls@jmls-Z390-AORUS-PRO:~$ docker exec -it testsamlidp sh
# curl http://dev.localhost/v1/saml/f789766c-e073-4ee5-8fb3-d3258223cd20/metadata.xml
<?xml version="1.0"?><md:EntityDescriptor xmlns:md="urn:oasis ... [snipped]

what have I misconfigured ? I used docker run --add-host=dev.localhost:172.17.0.1 --name=testsamlidp -p 8081:8080 to start the container

@Navds
Copy link

Navds commented Mar 19, 2021

I know it's an old issue but have you found the source of this problem ?

@dolan-a
Copy link

dolan-a commented Mar 27, 2021

I ran into this, and eventually realized my entity IDs did not match. In the docker run example from this project's README, the entity ID is set to "http://app.example.com":

docker run --name=testsamlidp_idp \
    -p 8080:8080 \
    -p 8443:8443 \
    -e SIMPLESAMLPHP_SP_ENTITY_ID=http://app.example.com \
    -e SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE=http://localhost/simplesaml/module.php/saml/sp/saml2-acs.php/test-sp \
    -e SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE=http://localhost/simplesaml/module.php/saml/sp/saml2-logout.php/test-sp \
    -d kristophjunge/test-saml-idp

In your application, which does NOT need to run at http://app.example.com, you just need to specify your entity ID to this same value.

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

No branches or pull requests

3 participants