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 configurable post_logout_redirect_uri #90

Merged
merged 1 commit into from
Jul 28, 2020
Merged

Add configurable post_logout_redirect_uri #90

merged 1 commit into from
Jul 28, 2020

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Jul 27, 2020

Description

Add postlogout redirect URI

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@VicDeo VicDeo requested a review from DeepDiver1975 as a code owner July 27, 2020 14:56
@VicDeo VicDeo self-assigned this Jul 27, 2020
@codecov
Copy link

codecov bot commented Jul 27, 2020

Codecov Report

Merging #90 into master will increase coverage by 2.32%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #90      +/-   ##
============================================
+ Coverage     91.32%   93.65%   +2.32%     
  Complexity      113      113              
============================================
  Files            10       10              
  Lines           392      394       +2     
============================================
+ Hits            358      369      +11     
+ Misses           34       25       -9     
Impacted Files Coverage Δ Complexity Δ
lib/SessionVerifier.php 84.61% <100.00%> (+10.45%) 19.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 013e0ba...d5c733e. Read the comment docs.

@@ -145,7 +145,9 @@ public function afterLogout($accessToken, $idToken): void {
$this->session->remove('oca.openid-connect.refresh-token');
$this->session->remove('oca.openid-connect.id-token');
$this->logger->debug('OIDC Logout: ending session ' . $accessToken . ' id: ' . $idToken);
$this->client->signOut($idToken, null);
$openIdConfig = $this->client->getOpenIdConfig();
$redirectUri = $openIdConfig['post_logout_redirect_uri'] ?? null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isset ? the key might be completly missing - right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@VicDeo VicDeo merged commit 0a75235 into master Jul 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the bugfix/e3792 branch July 28, 2020 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants