azure - Single Sign On With ACS through Multiple Applications -
simple single sign-on question
i have 2 mvc4 applications:
**1**- http://localhost/bikeshop acs relying party: - name: **bikeshop** - return url: **http://localhost/bikeshop** - token format: **saml 2.0** **2**- http://localhost/bikepartsshop acs relying party: - name: **bikepartsshop** - return url: **http://localhost/bikepartsshop** - token format: **saml 2.0**
the scenario have
i access bikeshop , acs login page presented , choose identity.
i can stuff on bikeshop.
then access bikepartsshop , acs login page presented , can choose identity.
the scenario must have
i access bikeshop , acs login page presented , choose identity.
i can stuff on bikeshop.
then access bikepartsshop , acs authorizes same identity used in bikeshop without further user intervention.
has implemented scenario?
best regards, , thank you!
you can use acs management service configure multiple reply addresses same relying party. see this link details on how add rp. linked code sample, register more addresses follows:
relyingparty relyingparty = new relyingparty() { name = "bikeshop", asymmetrictokenencryptionrequired = false, tokentype = "saml_2_0", tokenlifetime = 3600 }; svc.addtorelyingparties(relyingparty); relyingpartyaddress realm = new relyingpartyaddress() { address = "http://localhost/", endpointtype = "realm" }; relyingpartyaddress replyaddress1 = new relyingpartyaddress() { address = "http://localhost/bikeshop", endpointtype = "reply" }; relyingpartyaddress replyaddress2 = new relyingpartyaddress() { address = "http://localhost/bikepartsshop", endpointtype = "reply" }; svc.addrelatedobject(relyingparty, "relyingpartyaddresses", realmaddress); svc.addrelatedobject(relyingparty, "relyingpartyaddresses", replyaddress1); svc.addrelatedobject(relyingparty, "relyingpartyaddresses", replyaddress2); svc.savechanges(savechangesoptions.batch);
Comments
Post a Comment