Is fief the right tool for me? #372
Replies: 2 comments 1 reply
-
Hail, @meteoDaniel 👋 Welcome to Fief's kingdom! Our team will get back to you very soon to help. In the meantime, take a minute to star our repository ⭐️ Want to support us?Subscribe to one of our paid plan to help us continue our work and receive exclusive information and benefits! Starts at $5/month 🪙 Farewell! |
Beta Was this translation helpful? Give feedback.
-
Hi @meteoDaniel 👋 If I understand correctly, what you need is a way to issue a token so your users can query their data programmatically from your API, right? Fief can help if you want to opt for the OAuth2 protocol. It's a bit more involved for your users since you'll have to generate a Client for them, and then they'll have to go through the OAuth2 authorization mechanism to get an access token. As you mentioned, this token has a short lifespan, but Fief supports refresh tokens which allows to regenerate a fresh access token without reauthorizing again. This kind of setup works well for an application (e.g. a web frontend or mobile app) or if your users want to actually integrate your app into theirs. If your need is "just" to allow your users to make queries quickly with a token generated once (commonly called a Personal Access Token), then you'll have to come with your own solution. It can be quite simple: for example, those tokens can be stored in your database. When a request comes in, you can check in the headers if it's there and if it matches a token in your DB. |
Beta Was this translation helpful? Give feedback.
-
Dear Fief-Team,
I really like your tool so far, but I am still asking myself whether it is the right tool or not. So I hope you can answer my questions.
Before I want to say, that I have very limited knowledge in State-Of-The-Art User management.
Current:
I have a FastAPI as a REST interface to customer data. So a very common setup. Currently I am using AWS-Lambda + API Gateway for managing Access Tokens.
Questions:
These are my questions so far. Really looking forward to your answers.
Thanks
Daniel
Beta Was this translation helpful? Give feedback.
All reactions