I have setup a FusionAuth server. I am using it to register and login users.
On the application I am doing, I want to expose a REST API for sers. On the API request, I want to have a key that is generated on user registration and it will last until user renew it manually.
The key will be used for user-authentication and user-authorization to access the application and each of the methods exposed.
On the documentation I can read about JTW, but all of them have expiration date. Checking the tutorials, I cannot find a similar example of "something" that uses
I might be confusing some of the terms and I do not know how to do this:
- User registration using default form --> Done
- Struggling with --> Create user-key to control access to MY APP.
The workflow I can think of is something similar to:
- User send REST API request with "user-key" in the headers.
- my-application authenticate the key with FA Login API.
- my-application verify key has access to my-resource.
- If all goes well, user gets his/her data.
How can I achieve this? Does not seems like a "complex" use case...