-
Notifications
You must be signed in to change notification settings - Fork 17
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
multiple applications on SP #8
Comments
Your info "Based on what I learned from my own online searches, it appears that I need to update the sp metadata and make the same available to the idp." is correct. You need to run the two different docker containers to host two SP apps.
|
Thank you for your help. Just to be clear.
Are the above what you meant by minor revisions? Are there more (files and changes) that you can think of? |
Yes.
Yes.
change the ID for sp2: Yes. Just leaving sp1 with the original
Yes.
Just download sp2 metadata from the link "https://sp2.example.org:2443/Shibboleth.sso/Metadata"
Yes. You can leave the original sp alone that is not to rename it sp1. |
Thank you very much for your prompt response. when I was asking "How to change the ID for sp2", I was referring to the following ID in the sp-example.org.xml (and NOT the entityID): " <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" ID="_2bfe46fbf65e268f30b921e7abdcc9ba1f1cdcea" ......." Thanks |
This ID is the random ID automatically generated by SAML SP. You can NOT change it, and You do NOT need to change it. Note that this random ID is NOT mandatory for SP metadata. For example, Office365 SP metadata or Shibboleth SP metadata has this random ID, but Amazon AWS SP metadata does NOT has this random ID. |
Thanks for all your help. |
Hi, |
You do NOT need to "exercise a particular utility to generate the sp metadata", just download sp2 metadata from the link "https://sp2.example.org:2443/Shibboleth.sso/Metadata" and save it as sp2-example-org.xml. Then you can find that this ID was automatically generated by Shibboleth SP in the sp2-example-org.xml Note that
Quote "OpenSAML is a set of open source C++ & Java libraries used in support of the Shibboleth Project's implementation of the Security Assertion Markup Language (SAML)." https://shibboleth.atlassian.net/wiki/spaces/OS30/overview
In summary, follow README to run Shibboleth SP app2 and then download sp2 metadata from the link "https://sp2.example.org:2443/Shibboleth.sso/Metadata" and save it as sp2-example-org.xml. |
Hi, After creating and running the container for sp1.example.org. I downloaded the Metadata using https://sp1.example.org:2443/Shibboleth.sso/Metadata. I copied the Metadata to sp2-example-org.xml (given below). I copied the sp2-example-org.xml to ext-conf/metadata folder on idp (is there a way to upload the file to idp similiar to the downloading on the sp?). I navigated to the sp1 login page successfully. When I clicked the login link), the idp did not provide the login page but it errors stating " The application you have accessed is not registered for use with this service." The idp-wan.log in the /opt/shibboleth-idp/logs on idp displays the following: 2022-04-20 23:21:29,514 - WARN [net.shibboleth.idp.profile.impl.SelectProfileConfiguration:117] - Profile Action SelectProfileConfiguration: Profile http://shibboleth.net/ns/profiles/saml2/sso/browser is not available for RP configuration shibboleth.UnverifiedRelyingParty (RPID https://sp1.example.org:2443/Shibboleth.sso/Metadata) I appreciate your help. <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" ID="_6adf0a8594a70d9c9b59b072df3907fde63b6447" entityID="https://sp1.example.org:2443/Shibboleth.sso/Metadata"> <md:Extensions xmlns:alg="urn:oasis:names:tc:SAML:metadata:algsupport"> <md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:1.0:protocol"> </md:EntityDescriptor> |
Quote " I downloaded the Metadata using https://sp1.example.org:2443/Shibboleth.sso/Metadata. I copied the Metadata to sp2-example-org.xml (given below). I copied the sp2-example-org.xml to ext-conf/metadata folder on idp (is there a way to upload the file to idp similiar to the downloading on the sp?). I navigated to the sp1 login page successfully. When I clicked the login link), the idp did not provide the login page but it errors stating " The application you have accessed is not registered for use with this service." Probably a typo: (it is sp2, NOT sp1) You need to register sp2 with Shibboleth IdP (see Steps 4 and 5 below).
Note that if you use sp1 instead of sp, you need to repeat the above procedure again to register sp1 with Shibboleth IdP. |
Hi, |
Just keep sp app unchanged. Only modify the ports of sp1 (i.e., from 2080 to 3080, from 2443 to 3443).
https://github.com/winstonhong/Shibboleth-SAML-IdP-and-SP/blob/master/shibboleth-sp-testapp/run.sh Then execute the following steps to update the configuration of Shibboleth IdP for sp1 app.
Finally execute the following steps to test sp1 app.
|
Hi, I have another question. When I downloaded the metadata of sp1, the metadata file did not include the md:KeyDescriptor section including the x509certificate. How did you force your sp metadata to include that section? I understand that that section is not always required. Thanks |
It seems that you re-use sp.example.org.key and sp.example.org.crt as sp1.example.org.key and sp1.example.org.crt. Note that SUBJECT_NAME of sp1 is different from SUBJECT_NAME of sp.
https://shibboleth.atlassian.net/wiki/spaces/CONCEPT/pages/948470554/SAMLKeysAndCertificates
|
Thanks. |
Then you can discover that the sp1 metadata file includes the md:KeyDescriptor section including the x509certificate. |
Hello,
I am trying to extend your project to support multiple applications on the SP. I was successful in adding a second virtual host to the ssl.conf file pointing to the crt and key files I created using openssl. The second app index.html and secure/index.html are placed in /var/www/html/second/ folder.
With the above configuration I was able to demonstrate sso. That is, once I was authenticated starting with the second app, I was able to access the first app (yours) without being required to authenticate again. The problem I have is that once I was authenticated using the second app, I was redirected to the logout page of the first app in /var/www/html/secure/. rather than the logout page of the second app in /var/www/html/second/secure/.
Based on what I learned from my own online searches, it appears that I need to update the sp metadata and make the same available to the idp. I would appreciate your help and guidance in getting the above to work correctly. That is, what configurations do I need to apply (and in which files) on the sp and idp.
I know that the above is not an issue with your project but I have no way of contacting you directly.
Best,
Emil
The text was updated successfully, but these errors were encountered: