Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ Then update your schema.

#### Change used user provider

In your security, change your provider to the service `uecode.api_key.provider.user_provider`
In your security, change your provider to the service `uecode.api_key.provider.user_provider` or
`uecode.api_key.provider.email_user_provider` if you use logging in by email instead of username
ie. using fos_user.user_provider.username_email instead of fos_user.user_provider.username
(see https://symfony.com/doc/current/bundles/FOSUserBundle/logging_by_username_or_email.html)

```yml
security:
providers:
db:
id: uecode.api_key.provider.user_provider
# Or id: uecode.api_key.provider.user_email_provider

# Or

Expand All @@ -71,6 +75,7 @@ security:
memory: # .....
db:
id: uecode.api_key.provider.user_provider
# Or id: uecode.api_key.provider.user_email_provider
```


Expand Down