fief-dev / fief

Users and authentication management SaaS
https://www.fief.dev
Other
486 stars 42 forks source link

Verify without LoginForm #373

Closed meteoDaniel closed 1 month ago

meteoDaniel commented 1 month ago

Dear fief-Team,

I really like your porject and I started to dig deeper into it because I really need a User Management tool for our applications based upon FastAPI.

As far as I understand, Login is only possible via the LoginForm in the Browser.

https://github.com/fief-dev/fief/blob/9c7e72e4d37c078c722a5445bc12a6c1e159b274/fief/apps/auth/routers/auth.py#L154

So for me it would be very helpful to have one of the two options:

  1. Login made available via query/header/cookies by passing E-Mail and Password to retrieve a Token
  2. User can generate an Access Token in its User Profil similar to the way it works in the admin dashboard for the admin.

A possible solution can look like this: https://fastapi.tiangolo.com/tutorial/security/simple-oauth2/

If you can tell me where to add a first guess, I can open-up a PR to support the dev of the feature.

meteoDaniel commented 1 month ago

PS: I have found a work around that will work for me so far. But really looking forward to have such feature in fief :)