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

Adding RequestedAuthnContext to the AuthnRequest #72

Open
salahm opened this issue Jul 12, 2018 · 2 comments
Open

Adding RequestedAuthnContext to the AuthnRequest #72

salahm opened this issue Jul 12, 2018 · 2 comments

Comments

@salahm
Copy link

salahm commented Jul 12, 2018

Hi !

I struggling in adding an RequestedAuthnContext node to an AuthnRequest xml request

expected result

<?xml version="1.0" encoding="UTF-8"?>
<samlp:AuthnRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="ONELOGIN_3032e287176d383ac6efa999f8e58775222efff3" Version="2.0" IssueInstant="2018-05-24T15:12:48Z" Destination="https://example.comsaml2sso" ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" AssertionConsumerServiceURL="http://example.com/?acs">
   <saml:Issuer>example.com</saml:Issuer>
   <samlp:NameIDPolicy Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" AllowCreate="true" />
   <samlp:RequestedAuthnContext Comparison="Minimum">
      <saml:AuthnContextClassRef>urn:example:saml:auth-level:1.0:low</saml:AuthnContextClassRef>
   </samlp:RequestedAuthnContext>
</samlp:AuthnRequest>

is there a proper way to achieve this ?

I can't find any way to handle it without creating a new LightSaml\Model\Protocol\SamlMessage, overriding the whole workflow which creates LightSaml\Model\Protocol\AuthnRequest and add my freshly created node.

Thanks in advance

PS : Sorry if the issue is not in the right repository.

@ahmad-shawky
Copy link

@salahm Did you solved this ?

@ahmad-shawky
Copy link

Any update regarding this issue ?

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