Skip to content

Commit

Permalink
set saml entityid property (#76)
Browse files Browse the repository at this point in the history
* update saml settings to include entityid

* rename entity_id

* Update __init__.py
  • Loading branch information
diegocepedaw authored Dec 13, 2022
1 parent a753234 commit 60441ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/config.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,4 @@ saml:
idp: 'https://www.metadata.com'
acs_format: 'http://host:16648/saml/sso/%s'
https_acs_format: 'https://host/saml/sso/%s'
entity_id: "http://host/idp"
2 changes: 1 addition & 1 deletion src/iris_relay/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
# See LICENSE in the project root for license information.

__version__ = '1.3.0'
__version__ = '1.3.1'
2 changes: 2 additions & 0 deletions src/iris_relay/saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(self, config):
self.metadata = config.get('metadata', {})
self.acs_format = config['acs_format']
self.https_acs_format = config['https_acs_format']
self.entity_id = config.get('entity_id', '')

def saml_client_for(self, idp_name=None):
'''
Expand All @@ -36,6 +37,7 @@ def saml_client_for(self, idp_name=None):
metadata = self.metadata[idp_name]

settings = {
'entityid': self.entity_id,
'metadata': {
'inline': [metadata],
},
Expand Down

0 comments on commit 60441ef

Please sign in to comment.