Identity Provider - Multitenancy, Multi company
Identity provider service authorization with Multitenancy and Multi-company.
Terms
Multitenancy
Multitenancy is a reference to the mode of operation of software where multiple independent instances of one or multiple applications operate in a shared environment. The instances (tenants) are logically isolated, but physically integrated. The degree of logical isolation must be complete, but the degree of physical integration will vary.
Multi-company
Multi-Company (knows for some countries as Multimandancy or Mandancy) is ability data separation for multiple organizations.
Key endpoints
- [GET]
https://[HostName]/api/asol/idp/api/v1/UserTenants- Gets all authorized tenants for current user context.
- [POST]
https://[HostName]/api/asol/idp/api/v1/UserTenants/{tenantId}/select- Changed selected tenant for current user context. After this call you must refresh token immediately.
- [GET]
https://[HostName]/api/asol/idp/api/v1/UserOrganizations- Gets all organization for current selected Tenant and current user.
- [POST]
https://[HostName]/api/asol/idp/api/v1/UserOrganizations/{tenantId}/select- Changed selected company for current user context.
How to switch tenant for user account
- Call get token using oidc authorization
https://{stage}.avaplace.com/api/asol/idp/connect/tokenwith user name and password to get access token for user. - Update user selected tenant [POST]
https://[HostName]/api/asol/idp/api/v1/UserTenants/{tenantId}/selecttenantIdparameter possible values you can get by [GET]https://[HostName]/api/asol/idp/api/v1/UserTenants