PORTAL_TIB_ENABLED
variable to the portal .env file:
UserGroupMapping
object contains keys that refer to group IDs in your IDP, and the corresponding values are team IDs in the portal.
When the Tyk Identity Broker authorizes a user, it searches for a key that matches the user’s group ID in the IDP.
If TIB can’t find a matching group ID, it logs the user in to the team with an ID equal to DefaultUserGroupID
in the portal (if DefaultUserGroupID
is defined).
We recommend always defining DefaultUserGroupID
and ensuring it refers to a valid team ID in your portal instance. The portal will refuse login attempts if DefaultUserGroupID
is defined but refers to an invalid team ID.
If no matching group ID is found in the UserGroupMapping
object and DefaultUserGroupID
isn’t defined, the portal logs in the user to the “Default organization | All users” team with an ID of 1.
GenerateOrLoginUserProfile
and the OrgID is equal to “0.”OrgID
must be "0"
for being accepted as a provider-adminActionType
must be equal to "GenerateOrLoginUserProfile"
host
and port
in the fields CallbackBaseURL
, FailureRedirect
and ReturnURL
with the actual host and port on which your portal instance is running. Also, replace http
with https
for the respective fields if you use https for your portal instancehost
and port
in the field DiscoverURL
with the actual host and port on which your IDP instance is running. Also, replace http
with https
accordingly"ID"
field, specify an ID of this TIB profile. You can select any value for this field that consists of digits, letters, and special signs, no spaces allowed. It is better to pick a human-readable ID for your profile for better maintainability of the configurationPORTAL_API_SECRET
variable to the portal .env file:
PORTAL_API_SECRET
to extraEnvs:
PortalAPISecret
in the configuration file of the Developer portal.OrgID
must be "0"
for being accepted as a provider-admin or super-admin
ActionType
must be equal to "GenerateOrLoginUserProfile"
IdentityHandlerConfig.DashboardCredential
must be equal to the PortalAPISecret
field in the configuration file of the portal
{portal host}
and {portal port}
with the actual host and port on which your portal instance is running. Also, replace http
with https
for the respective fields if you use https for your portal instance
{TIB host}
and {TIB port}
with the actual host and port on which your TIB instance is running. Also, replace http
with https
for the respective fields if you use https for your TIB instance
"ID"
field, specify an ID of this TIB profile. You can select any value for this field that consists of digits, letters, and special signs, no spaces allowed. It is better to pick a human-readable ID for your profile for better maintainability of the configuration
UserGroupMapping
object contains keys that refer to group IDs in your IDP, and the corresponding values are team IDs in the portal.
When the Tyk Identity Broker authorizes a user, it searches for a key that matches the user’s group ID in the IDP.
If TIB can’t find a matching group ID, it logs the user in to the team with an ID equal to DefaultUserGroupID
in the portal (if DefaultUserGroupID
is defined).
We recommend always defining DefaultUserGroupID
and ensuring that it refers to a valid team ID in your portal instance. If DefaultUserGroupID
is defined but refers to an invalid team ID, the portal will refuse login attempts.
If no matching group ID is found in the UserGroupMapping
object and DefaultUserGroupID
isn’t defined, the portal logs in the user to the “Default organization | All users” team with an ID of 1.
To determine whether a developer should be allowed to log in and which team they should be logged into, the portal uses the following algorithm:
OrgID
could be anything as its value is ignored;
ActionType
must be equal to "GenerateOrLoginDeveloperProfile"
IdentityHandlerConfig.DashboardCredential
must be equal to the PortalAPISecret
field in the configuration file of the portal
{portal host}
and {portal port}
with the actual host and port on which your portal instance is running. Also, replace http
with https
for the respective fields if you use https for your portal instance
{TIB host}
and {TIB port}
with the actual host and port on which your TIB instance is running. Also, replace http
with https
for the respective fields if you use https for your TIB instance
"ID"
field, specify an ID of this TIB profile. You can select any value for this field that consists of digits, letters, and special signs, no spaces allowed. It is better to pick a human-readable ID for your profile for better maintainability of the configuration
CustomUserGroupField
must be equal to the JWT claim name that refers to the user group in your IDP
UserGroupMapping
an object that defines relationship between user groups in the IDP and teams in the portal. The optional parameter, if not specified, will cause the portal to rely on the DefaultUserGroupID
field to determine which team a developer should log in to. Please refer to the User group mapping section for guidance
DefaultUserGroupID
is the default organization that the portal will use to determine which team a developer should be logged in to if it is not able to find a UserGroupMapping for that developer