Reputation: 2919
I want usernames (created using an algorithm) to be automatically assigned to users and want to allow login using both this username and email address. How do I do that in Keycloak?
Upvotes: 1
Views: 1201
Reputation: 1192
You can use rest api to create user. This way you can use alghoritm to generate username. Documentation is here: https://www.keycloak.org/docs-api/10.0/rest-api/index.html#_users_resource
In the realm settings go to Login tab and enable Login with email
Upvotes: 3