Skip to content

Commit 508ce6f

Browse files
committed
Make idp settings optional
1 parent 992eaa3 commit 508ce6f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/onelogin/saml2/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ def __load_settings_from_dict(self, settings):
201201
if len(errors) == 0:
202202
self.__errors = []
203203
self.__sp = settings['sp']
204-
self.__idp = settings['idp']
204+
205+
if 'idp' in settings:
206+
self.__idp = settings['idp']
205207

206208
if 'strict' in settings:
207209
self.__strict = settings['strict']

0 commit comments

Comments
 (0)