Align provisioned identities with OIDC subjects
This commit is contained in:
parent
cbbd66697f
commit
2a2d8ba055
3 changed files with 16 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ import os
|
|||
from urllib.parse import parse_qs, urlsplit
|
||||
import secrets
|
||||
|
||||
from provisioner import LLDAPProvisioner, dispatch
|
||||
from provisioner import LLDAPProvisioner, _directory_username, dispatch
|
||||
from password_setup import LLDAPPasswordSetter, PasswordSetupGrants
|
||||
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||
response = asdict(result)
|
||||
if path == "/v1/identities/provision" and result.status == "password_setup_required":
|
||||
response["password_setup_url"] = self.password_setups.issue(
|
||||
result.external_subject
|
||||
_directory_username(result.external_subject)
|
||||
)
|
||||
self._send(200, response)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue