Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identity Management tutorial - Keyrock user creation fails #34

Open
MNXOnline opened this issue Sep 22, 2020 · 0 comments
Open

Identity Management tutorial - Keyrock user creation fails #34

MNXOnline opened this issue Sep 22, 2020 · 0 comments

Comments

@MNXOnline
Copy link
Contributor

When creating a user with the following postman collecion payload in Keyrock:

{
  "user": {
    "username": "admin2",
    "email": "[email protected]",
    "password": "test",
    **"admin": true**
  }
}

the response received with status 201 Created is:

{
    "user": {
        "id": "f074c4d0-5b72-4155-9d12-34d92e6960b2",
        "image": "default",
        "gravatar": false,
        "enabled": true,
        "starters_tour_ended": false,
        "eidas_id": null,
        "username": "admin2",
        "email": "[email protected]",
        "salt": "2498261557aed56a",
        **"admin": true**,
        "date_password": "2020-09-22T11:49:36.932Z"
    }
}

but it is not stored in database as an sql query shows a 0 on that column:

| id                                   | username | description | website | image   | gravatar | email           | password                                 | date_password       | enabled | admin | extra | scope | starters_tour_ended | eidas_id | salt             |
+--------------------------------------+----------+-------------+---------+---------+----------+-----------------+------------------------------------------+---------------------+---------+-------+-------+-------+---------------------+----------+------------------+
| f074c4d0-5b72-4155-9d12-34d92e6960b2 | admin2   | NULL        | NULL    | default |        0 | [email protected] | 496e9b2dc2983e7496b541aea626e437cf4184d2 | 2020-09-22 11:49:36 |       1 |     0 | NULL  | NULL  |                   0 | NULL     | 2498261557aed56a |
+--------------------------------------+----------+-------------+---------+---------+----------+-----------------+------------------------------------------+---------------------+---------+-------+-------+-------+---------------------+----------+------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant