Skip to content

Commit 59507b9

Browse files
committed
Decorate context with backend metadata
1 parent bbb30dc commit 59507b9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/satosa/backends/saml2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def authn_response(self, context, binding):
229229
"State did not match relay state for state", context.state)
230230
raise SATOSAAuthenticationError(context.state, "State did not match relay state")
231231

232+
context.decorate(Context.KEY_BACKEND_METADATA_STORE, self.sp.metadata)
233+
232234
del context.state[self.name]
233235
return self.auth_callback_func(context, self._translate_response(authn_response, context.state))
234236

src/satosa/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Context(object):
1515
"""
1616
Holds information about the current request.
1717
"""
18+
KEY_BACKEND_METADATA_STORE = 'metadata_store'
1819
KEY_MIRROR_TARGET_ENTITYID = 'mirror_target_entity_id'
1920

2021
def __init__(self):

0 commit comments

Comments
 (0)