Skip to content

Commit

Permalink
Fixed logout for user with no IDP account
Browse files Browse the repository at this point in the history
  • Loading branch information
wluyima committed Jun 12, 2024
1 parent 7e817fa commit b7e96b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth_oidc/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ def logout(self, redirect="/web/login"):
r = request.env['ir.config_parameter'].sudo().get_param('web.base.url') + redirect
logout_url = p.logout_endpoint + "?client_id=" + p.client_id + "&post_logout_redirect_uri=" + r
return super().logout(redirect=logout_url)

Check warning on line 66 in auth_oidc/controllers/main.py

View check run for this annotation

Codecov / codecov/patch

auth_oidc/controllers/main.py#L64-L66

Added lines #L64 - L66 were not covered by tests
# User has no account with any provider or no logout URL is configured for the provider
return super().logout(redirect=redirect)
# User has no account with any provider or no logout URL is configured for the provider
return super().logout(redirect=redirect)

0 comments on commit b7e96b9

Please sign in to comment.