Skip to content

Commit

Permalink
refactor: change route of reliefweb_entraid to avoid conflict with oc…
Browse files Browse the repository at this point in the history
…ha_entraid module

Refs: OPS-10828
  • Loading branch information
orakili committed Dec 2, 2024
1 parent f6c3b18 commit 122f54d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion html/modules/custom/reliefweb_entraid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Reliefweb Entra ID

This module provides user authentication tweaks for Entra ID

* Provide a `/user/login/entraid` callback to redirect to the Entra ID login workflow.
* Provide a `/user/login/reliefweb-entraid-direct` callback to redirect to the Entra ID login workflow.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
reliefweb_entraid.login:
path: '/user/login/entraid'
path: '/user/login/reliefweb-entraid-direct'
defaults:
_controller: '\Drupal\reliefweb_entraid\Controller\AuthController::redirectLogin'
_title: 'Login with Unite ID'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testRedirectLogin() {

// The incomplete config will results in an exception and 404 response
// will be returned.
$this->drupalGet('/user/login/entraid');
$this->drupalGet('/user/login/reliefweb-entraid-direct');
$this->assertSession()->statusCodeEquals(404);

// Set the endpoints. We just point at the robots.txt as we know it exists
Expand All @@ -75,7 +75,7 @@ public function testRedirectLogin() {
$entraid_config->setData($data)->save();

// If the redirection works, a 200 will be returned.
$this->drupalGet('/user/login/entraid');
$this->drupalGet('/user/login/reliefweb-entraid-direct');
$this->assertSession()->statusCodeEquals(200);
$this->assertStringContainsString('Disallow:', $this->getSession()->getPage()->getContent());
}
Expand Down

0 comments on commit 122f54d

Please sign in to comment.