Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openid_connect
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
openid_connect
Merge requests
!160
Issue 3291799: Sent logout routing to the route subscriber
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue 3291799: Sent logout routing to the route subscriber
issue/openid_connect-3291799:3291799-route-subscriber
into
3.x
Overview
0
Commits
1
Pipelines
1
Changes
3
Open
Issue 3291799: Sent logout routing to the route subscriber
Anita Viglione
requested to merge
issue/openid_connect-3291799:3291799-route-subscriber
into
3.x
6 months ago
Overview
0
Commits
1
Pipelines
1
Changes
3
Closes
#3291799
Added the route subscriber to the services.yml file.
Removed the override for the user/logout route in the routing.yml file.
Added the requirements and options from the old route to the route override in the route subscriber
Did not include the title setting from the old route (this was suggested to not include in the issue description).
0
0
Merge request reports
Compare
3.x
3.x (base)
and
latest version
latest version
64b06839
1 commit,
6 months ago
3 files
+
17
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
src/Routing/RouteSubscriber.php
+
3
−
0
View file @ 64b06839
Edit in single-file editor
Open in Web IDE
Show full file
@@ -19,6 +19,9 @@ class RouteSubscriber extends RouteSubscriberBase {
// Reroute the default user.logout route.
if
(
$route
=
$collection
->
get
(
'user.logout'
))
{
$route
->
setDefault
(
'_controller'
,
'\Drupal\openid_connect\Controller\OpenIDConnectRedirectController::redirectLogout'
);
$route
->
setRequirement
(
'_user_is_logged_in'
,
TRUE
);
$route
->
setRequirement
(
'_csrf_token'
,
TRUE
);
$route
->
setOption
(
'no_cache'
,
TRUE
);
}
}
Loading