Lets say i have user within 2 differents organization.
He then log in using one of his organizations and i have a way in my front end that he can switch to another organization with one click.
Is there way that i can get the new access token for a different organization using the first access token, without asking for his password again?
Hi @danillo.mendonca,
You can use silent authentication and pass the second organization’s Organization ID to the authorize endpoint. Example:
GET https://YOUR_DOMAIN/authorize
?response_type=id_token token&
organization=<<ORG_ID>>&
client_id=...&
redirect_uri=...&
state=...&
scope=openid...&
nonce=...&
audience=...&
response_mode=...&
prompt=none
This is assuming the user has membership in the second organization and the connection that the user is in is enabled for the second organization.
Adam
Thanks for helping on this one Adam!
That’s great, i wil l try that out, thank you Adam
Let us know if you have any other questions down the road!