Skip to content

Commit

Permalink
Cover recent MFA Trusted Proxy bugfix in test
Browse files Browse the repository at this point in the history
The behat test configures an sp to authenticat via trusted proxy. It
still sends the correct authncontext class ref back to the IdP.
  • Loading branch information
MKodde committed Sep 16, 2020
1 parent f42b9ba commit 6ade1e7
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Feature:
And no registered Idps
And an Identity Provider named "SSO-IdP"
And a Service Provider named "SSO-SP"
And a Service Provider named "Trusted SP"

Scenario: The configured authn method should be set as AuthnContextClassRef if configured with the IdP configuration mapping
Given the IdP "SSO-IdP" is configured for MFA authn method "http://schemas.microsoft.com/claims/multipleauthn" for SP "SSO-SP"
Expand All @@ -17,6 +18,16 @@ Feature:
Then the url should match "functional-testing/SSO-IdP/sso"
And the AuthnRequest to submit should match xpath '/samlp:AuthnRequest/samlp:RequestedAuthnContext/saml:AuthnContextClassRef[text()="http://schemas.microsoft.com/claims/multipleauthn"]'

Scenario: The configured authn method should be set as AuthnContextClassRef if configured with the IdP configuration mapping for Trusted Proxy
Given the IdP "SSO-IdP" is configured for MFA authn method "http://schemas.microsoft.com/claims/multipleauthn" for SP "SSO-SP"
And SP "Trusted SP" is a trusted proxy
And SP "Trusted SP" signs its requests
And SP "Trusted SP" is authenticating for SP "SSO-SP"
When I log in at "Trusted SP"
And I pass through EngineBlock
Then the url should match "functional-testing/SSO-IdP/sso"
And the AuthnRequest to submit should match xpath '/samlp:AuthnRequest/samlp:RequestedAuthnContext/saml:AuthnContextClassRef[text()="http://schemas.microsoft.com/claims/multipleauthn"]'

Scenario: The configured authn method should not be set as AuthnContextClassRef if not configured in the IdP configuration mapping
When I log in at "SSO-SP"
And I pass through EngineBlock
Expand Down

0 comments on commit 6ade1e7

Please sign in to comment.