diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-10-07 13:03:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 13:03:52 +0300 |
commit | a02a6266061c230faf0fc1ac171df23aa554fd6a (patch) | |
tree | 959ad47da375726522ce0039afbf363829033865 /tests/Core | |
parent | 049628a3f53f3e5e6fe4111b5e28fa90d1a95dd9 (diff) | |
parent | 1b5d85a4ca6786f2c63a38716347a0bf26f51bed (diff) |
Merge pull request #17411 from kinolaev/fix-oauth2-redirect
Fix oauth client redirect
Diffstat (limited to 'tests/Core')
-rw-r--r-- | tests/Core/Controller/ClientFlowLoginControllerTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Core/Controller/ClientFlowLoginControllerTest.php b/tests/Core/Controller/ClientFlowLoginControllerTest.php index f35b616a68e..50280e18371 100644 --- a/tests/Core/Controller/ClientFlowLoginControllerTest.php +++ b/tests/Core/Controller/ClientFlowLoginControllerTest.php @@ -200,6 +200,7 @@ class ClientFlowLoginControllerTest extends TestCase { ->willReturn('Mac OS X Sync Client'); $client = new Client(); $client->setName('My external service'); + $client->setRedirectUri('https://example.com/redirect.php'); $this->clientMapper ->expects($this->once()) ->method('getByIdentifier') @@ -249,7 +250,7 @@ class ClientFlowLoginControllerTest extends TestCase { 'guest' ); $csp = new Http\ContentSecurityPolicy(); - $csp->addAllowedFormActionDomain('nc://*'); + $csp->addAllowedFormActionDomain('https://example.com/redirect.php'); $expected->setContentSecurityPolicy($csp); $this->assertEquals($expected, $this->clientFlowLoginController->showAuthPickerPage('MyClientIdentifier')); } |