mirror of
https://github.com/OpenBankProject/API-Manager.git
synced 2026-02-06 15:06:48 +00:00
feature/Enhance function api_usernamre in order to handle Azure as Identity Provider
This commit is contained in:
parent
a66192c8a6
commit
2efa5913ac
@ -59,6 +59,8 @@ def api_username(request):
|
||||
nametodisplay = email
|
||||
elif "yahoo" in provider:
|
||||
nametodisplay = email
|
||||
elif "microsoft" in provider:
|
||||
nametodisplay = email
|
||||
else:
|
||||
nametodisplay = username
|
||||
apicaches=cache.set(cache_key, {'API_USERNAME': nametodisplay})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user