public function setUp() { parent::setUp(); $this->client_id = '123abc'; $this->google_auth_login_ticket = $this->getMockBuilder('Google_Auth_LoginTicket')->disableOriginalConstructor()->getMock(); $this->google_client = $this->getMockBuilder('Google_Client')->disableOriginalConstructor()->getMock(); }
public function setUp() { parent::setUp(); /* @var SamlDataManagerInterface saml_data_manager */ $this->saml_data_manager = $this->getMockBuilder(SamlDataManagerInterface::class)->disableOriginalConstructor()->setMethods([])->getMock(); $this->sso_response = new SsoResponse($this->saml_data_manager, __DIR__ . '/../Fixtures/saml.crt', __DIR__ . '/../Fixtures/saml.key'); }
public function setUp() { parent::setUp(); $this->authn_request_resolver = new AuthnRequestResolver(__DIR__ . '/../Fixtures/saml.crt'); $this->get = ['SAMLRequest' => 'fZFPb8IwDMXvfIoq95KGltJGpYiNw5CYhqDbYZcpTc3I1CZdnaJ9/IV/EgeEj5af3+/Z2eyvqb0DdKiMnhI2DMgsH2Tz3u71Bn57QOu5CY1T0neaG4EKuRYNILeSb+evKz4aBrztjDXS1MRbLqbkq4Q0TCOIqrQcRZGMRTwOIQ7jSTUpIRHjeJfGQRIGO0a8j6u32+PkiD0sNVqhrWsFLPYZ89m4YAEPE86CT+ItHJTSwp5Ue2tbTmltpKj3Bi1PXFHRKnoYUVW1vnBRQFslhQXirS+gT0pXSn8/TlWeh5C/FMXaX79tC+LNEaE7Wj8bjX0D3Ra6g5Lwvlndh5mcYRjtndBHwGNakmcompqf4nbnC/Nj5zGQuJqT/L6V+8MPSIsZvVmfZ/T2n/ngHw==', 'SigAlg' => 'http://www.w3.org/2000/09/xmldsig#rsa-sha1', 'Signature' => 'HD0lpaP4P6zd0oiGaRfKxV0Be65ClLL7BZ1mm0LVZYm4rwg4wZY1aTlf/aq2vPa1zDJ6e5NLbt7HRde4i6PnTVLpKX0ynab2gQQ2aoYDiwBUXw+01pRXYjnCBexfRfOt57pSBqUatuDuXrxKP6bD9nZ4/9pJAtxqva/5IX6ZqiQ3AEuZ9xcZ4cD+AqRFGvUlGu0I4yZzCNeiYpka4Fr340f69Aqr7q/e8ZRyYZJZPACXCK5Iq6nhRE0hBr5ezNPQESrI2te+SRXtnOTiEufPTQi/6roFfWfvwn/DtKGN1JSbt9shzOmQcbbtEq39U1Vr0OB1Ye8Ck6vCV8cRzlZqAQ==']; }
protected function setUp() { parent::setUp(); $this->saml_utils = new SamlUtils(); $this->raw_saml_response = ['SAMLResponse' => 'PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxzYW1scDpSZXNwb25zZSB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiBJRD0iX2IxOTEwYmIwMzY5NDQ4MDNhNWRlMDllNTQ5ZjA3MmJhYjIwODdiOTVjZiIgVmVyc2lvbj0iMi4wIiBJc3N1ZUluc3RhbnQ9IjIwMTYtMTEtMTVUMDk6NTU6MDVaIiBEZXN0aW5hdGlvbj0iaHR0cDovL2xvY2FsaG9zdDo4ODg3L2FwaS92MS91c2VyLXNlc3Npb24iPjxzYW1sOklzc3VlciB4bWxuczpzYW1sPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YXNzZXJ0aW9uIj5odHRwOi8vbG9jYWxob3N0Ojg4ODcvcHJvamVjdHM8L3NhbWw6SXNzdWVyPjxkczpTaWduYXR1cmUgeG1sbnM6ZHM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPgogIDxkczpTaWduZWRJbmZvPjxkczpDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIi8+CiAgICA8ZHM6U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIi8+CiAgPGRzOlJlZmVyZW5jZSBVUkk9IiNfYjE5MTBiYjAzNjk0NDgwM2E1ZGUwOWU1N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