Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
a0178df1
Commit
a0178df1
authored
5 years ago
by
Brendan Abolivier
Browse files
Options
Downloads
Patches
Plain Diff
Fix wrong handler being used in SAML handler
parent
6f67a8b5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/saml_handler.py
+2
-3
2 additions, 3 deletions
synapse/handlers/saml_handler.py
with
2 additions
and
3 deletions
synapse/handlers/saml_handler.py
+
2
−
3
View file @
a0178df1
...
...
@@ -25,7 +25,6 @@ from synapse.api.errors import SynapseError
from
synapse.config
import
ConfigError
from
synapse.http.servlet
import
parse_string
from
synapse.module_api
import
ModuleApi
from
synapse.rest.client.v1.login
import
SSOAuthHandler
from
synapse.types
import
(
UserID
,
map_username_to_mxid_localpart
,
...
...
@@ -48,7 +47,7 @@ class Saml2SessionData:
class
SamlHandler
:
def
__init__
(
self
,
hs
):
self
.
_saml_client
=
Saml2Client
(
hs
.
config
.
saml2_sp_config
)
self
.
_
sso_
auth_handler
=
SSOA
uth
H
andler
(
hs
)
self
.
_auth_handler
=
hs
.
get_a
uth
_h
andler
()
self
.
_registration_handler
=
hs
.
get_registration_handler
()
self
.
_clock
=
hs
.
get_clock
()
...
...
@@ -116,7 +115,7 @@ class SamlHandler:
self
.
expire_sessions
()
user_id
=
await
self
.
_map_saml_response_to_user
(
resp_bytes
,
relay_state
)
self
.
_
sso_
auth_handler
.
complete_sso_login
(
user_id
,
request
,
relay_state
)
self
.
_auth_handler
.
complete_sso_login
(
user_id
,
request
,
relay_state
)
async
def
_map_saml_response_to_user
(
self
,
resp_bytes
,
client_redirect_url
):
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment