{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/639","repository_url":"https://api.github.com/repos/cloudfoundry/uaa","labels_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/639/comments","events_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/639/events","html_url":"https://github.com/cloudfoundry/uaa/pull/639","id":236488495,"number":639,"title":"When acting as a SAML SP allow configuration of RequestedAuthnContext","user":{"login":"cnelson","id":604163,"avatar_url":"https://avatars0.githubusercontent.com/u/604163?v=3","gravatar_id":"","url":"https://api.github.com/users/cnelson","html_url":"https://github.com/cnelson","followers_url":"https://api.github.com/users/cnelson/followers","following_url":"https://api.github.com/users/cnelson/following{/other_user}","gists_url":"https://api.github.com/users/cnelson/gists{/gist_id}","starred_url":"https://api.github.com/users/cnelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnelson/subscriptions","organizations_url":"https://api.github.com/users/cnelson/orgs","repos_url":"https://api.github.com/users/cnelson/repos","events_url":"https://api.github.com/users/cnelson/events{/privacy}","received_events_url":"https://api.github.com/users/cnelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-16T13:49:15Z","updated_at":"2017-06-16T13:49:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/uaa/pulls/639","html_url":"https://github.com/cloudfoundry/uaa/pull/639","diff_url":"https://github.com/cloudfoundry/uaa/pull/639.diff","patch_url":"https://github.com/cloudfoundry/uaa/pull/639.patch"},"body":"This PR allows for setting a `RequestedAuthnContext` in the SAMLRequest generated when UAA is operating as a SAML SP.  This is accomplished by adding a new property to `login.saml.providers` named `authnContext`.\r\n\r\nFor example:\r\n```yaml\r\nlogin:\r\n  saml:\r\n    providers:\r\n      cloud.gov:\r\n        authnContext:\r\n        - foo\r\n        - bar\r\n        - baz\r\n        idpMetadata: |\r\n           ...\r\n```\r\nWould produce a SAMLRequest with this `RequestedAuthnContext`:\r\n```xml\r\n<saml2p:RequestedAuthnContext Comparison=\"exact\">\r\n\t<saml2:AuthnContextClassRef xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\">foo</saml2:AuthnContextClassRef>\r\n\t<saml2:AuthnContextClassRef xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\">bar</saml2:AuthnContextClassRef>\r\n\t<saml2:AuthnContextClassRef xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\">baz</saml2:AuthnContextClassRef>\r\n</saml2p:RequestedAuthnContext>\r\n```\r\nIf this value is not provided, the previous default behavior of not including any `RequestedAuthnContext` in the request is preserved.\r\n\r\n\r\nI'm not an expert in Java or the UAA codebase so feedback is appreciated 😁 \r\n"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/comments/309030874","html_url":"https://github.com/cloudfoundry/uaa/pull/639#issuecomment-309030874","issue_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/639","id":309030874,"user":{"login":"cfdreddbot","id":5149451,"avatar_url":"https://avatars3.githubusercontent.com/u/5149451?v=3","gravatar_id":"","url":"https://api.github.com/users/cfdreddbot","html_url":"https://github.com/cfdreddbot","followers_url":"https://api.github.com/users/cfdreddbot/followers","following_url":"https://api.github.com/users/cfdreddbot/following{/other_user}","gists_url":"https://api.github.com/users/cfdreddbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cfdreddbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfdreddbot/subscriptions","organizations_url":"https://api.github.com/users/cfdreddbot/orgs","repos_url":"https://api.github.com/users/cfdreddbot/repos","events_url":"https://api.github.com/users/cfdreddbot/events{/privacy}","received_events_url":"https://api.github.com/users/cfdreddbot/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T13:49:17Z","updated_at":"2017-06-16T13:49:17Z","body":"Hey cnelson!\n\nThanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.\n"}}
{"actor":{"display_login":"cfdreddbot"}}