@@ 29-41 (lines=13) @@ | ||
26 | * Handles a SSO request |
|
27 | * @param Request $request |
|
28 | */ |
|
29 | public function ssoAction(Request $request) |
|
30 | { |
|
31 | // receives the AuthnRequest and sends a SAML response |
|
32 | $authnRequest = $this->receiveSignedAuthnRequestFrom($request); |
|
33 | // Todo: For some reason, the nameId is not transpored even tho it is set on the auhtnrequest.. Figure out whats going on here and fix this. |
|
34 | // now the test will only work with one hard-coded user. |
|
35 | $response = $this->createResponse( |
|
36 | 'https://gateway.stepup.example.com/authentication/consume-assertion', |
|
37 | ['Value' => 'urn:collab:person:stepup.example.com:john_haack', 'Format' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified'], |
|
38 | $authnRequest->getRequestId() |
|
39 | ); |
|
40 | return $this->renderSamlResponse($response); |
|
41 | } |
|
42 | ||
43 | /** |
|
44 | * Handles a GSSP SSO request |
|
@@ 47-59 (lines=13) @@ | ||
44 | * Handles a GSSP SSO request |
|
45 | * @param Request $request |
|
46 | */ |
|
47 | public function gsspSsoAction(Request $request) |
|
48 | { |
|
49 | // receives the AuthnRequest and sends a SAML response |
|
50 | $authnRequest = $this->receiveSignedAuthnRequestFrom($request); |
|
51 | // Todo: For some reason, the nameId is not transpored even tho it is set on the auhtnrequest.. Figure out whats going on here and fix this. |
|
52 | // now the test will only work with one hard-coded user. |
|
53 | $response = $this->createResponse( |
|
54 | $authnRequest->getAssertionConsumerServiceURL(), |
|
55 | ['Value' => 'foobar', 'Format' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified'], |
|
56 | $authnRequest->getRequestId() |
|
57 | ); |
|
58 | return $this->renderSamlResponse($response); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * @param SAMLResponse $response |