Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit f659692

Browse files
committed
Creating OP specific entity IDs.
1 parent 741ac88 commit f659692

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/oidcrp/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,17 @@ def client_setup(self, iss_id='', user=''):
359359
registration_type = _fe.registration_type
360360

361361
if registration_type == 'automatic':
362-
_sc.client_id = client.client_id = _fe.entity_id
363362
_redirect_uris = _sc.behaviour.get("redirect_uris")
364363
if _redirect_uris:
365364
_sc.redirect_uris = _redirect_uris
365+
_sc.client_id = client.client_id = add_path(_fe.entity_id, iss_id)
366366
else:
367367
_callbacks = self.create_callbacks(_sc.provider_info['issuer'])
368368
_sc.redirect_uris = [
369369
v for k, v in _callbacks.items() if not k.startswith('__')]
370370
_sc.callbacks = _callbacks
371-
else: # explicit
371+
_sc.client_id = client.client_id = add_path(_fe.entity_id, _callbacks['__hex'])
372+
else: # explicit
372373
logger.debug("Do client registration")
373374
self.do_client_registration(client, iss_id)
374375

0 commit comments

Comments
 (0)