You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new Core Authorization support is sending a list of Role objects when assigning roles to a User via the UserEntity. The API is expecting a list of Strings.
Prerequisites
I have checked the documentation for this library in the README.
I am reporting this to the correct repository [Add links to other related].
Environment
Version of this library used: 1.13.0
Version of Java used: jdk1.8.0_102
Additional libraries that might be affecting your instance: N/A
Reproduction
Calling the addRoles or removeRoles endpoints via the UsersEntity, as below, returns a 400 error:
// in this example, role is of type com.auth0.json.mgmt.RolegetManagementAPI().users().addRoles("userId", Collections.singletonList(role)).execute()
{
"statusCode": 400,
"error": "Bad Request",
"message": "Payload validation error: \u0027Expected type string but found type object\u0027 on property roles[0].",
"errorCode": "invalid_body"
}
The text was updated successfully, but these errors were encountered:
jakbutler
pushed a commit
to jakbutler/auth0-java
that referenced
this issue
Apr 25, 2019
Description
The new Core Authorization support is sending a list of
Role
objects when assigning roles to aUser
via theUserEntity
. The API is expecting a list of Strings.Prerequisites
Environment
Reproduction
Calling the
addRoles
orremoveRoles
endpoints via theUsersEntity
, as below, returns a 400 error:The text was updated successfully, but these errors were encountered: