Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the /eulogin route as a separate instance that doesn't replace the default route #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions oe_authentication.routing.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
oe_authentication.login:
path: '/eulogin'
defaults:
_controller: '\Drupal\cas\Controller\ForceLoginController::forceLogin'
requirements:
_access: 'TRUE'
options:
_maintenance_access: TRUE
oe_authentication.settings:
path: '/admin/config/system/oe_authentication'
defaults:
Expand Down
5 changes: 0 additions & 5 deletions src/Routing/RouteSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ protected function alterRoutes(RouteCollection $collection): void {
]);
}

// Replace default cas login route with eulogin one.
if ($route = $collection->get('cas.login')) {
$route->setPath('/eulogin');
}

// Replace route title for the Bulk Add CAS Users route.
if ($route = $collection->get('cas.bulk_add_cas_users')) {
$route->setDefault('_title', 'Bulk Add EU Login Users');
Expand Down