smarber
smarber

Reputation: 5074

Rest api authentication: how to get the token the first time

Thanks to this page api_key_authentication I have an authentication system which works well. So, basically every user has his own api_key field (stored into the fos_user table), when I perform a request with any api_key from fos_user I see in the response that the user is recognized.

The question is: What does an API user do to retrieve his api_key?

Upvotes: 1

Views: 517

Answers (1)

Koovvall
Koovvall

Reputation: 131

You can generate api key and send it to the user (somehow) or make auth api where user send you his login and password and then you generate and send him his api key (this is the most known way).

Upvotes: 2

Related Questions