I wanted to know if we can return user attributes in Authenticate API response.
See sample response, added new in yellow.
{
"flowState": "xxxx",
"userName": "xxxxxxxx",|
"nextaction": "PASSWORD_AUTH",
"currentFactors": [
"PASSWORD"
],
"additional": {
"userName": "xxxxxxxx",
"idpName": "ExampleDirectory",
"idpGuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"idpType": "ldap",
"currentFactorLevel": 1,
"predicatesForCurrentFactors": [
{
"factor": "PASSWORD",
"predicate": "ExampleDirectory",
"providerAmr": "PWD"
}
],
"userLoginIdInputValue": "[email protected]",
“newAttribute1FromLDAP”: “value”,
“newAttribute2FromLDAP”: “value”,
"identityProviders": []
}
}
IDSP 3.4.x
There are established, standards-based mechanisms for returning user attributes with appropriate access controls. We should be careful not to bypass these controls, particularly since the /authenticate endpoint is accessible by a public client.
For reference, the following supported approaches can be used to retrieve user data: