FastUI icon indicating copy to clipboard operation
FastUI copied to clipboard

Could we have an OAuth2 compliant auth event ?

Open tim-x-y-z opened this issue 1 year ago • 1 comments

I was wondering if it would make sense to create another type of auth even than AuthEvent such that it would respect the OAuth2 specifications, and "best practices" (such as having the token be named bearer etc.).

I think this would be useful to leverage already existing library to do login and auth.

but maybe i am missing something as i see this comment: https://github.com/pydantic/FastUI/blob/cec25c61a7cc5a716d05d21039f95be3e8dac0e8/src/npm-fastui/src/tools.ts#L101

tim-x-y-z avatar Jan 25 '24 14:01 tim-x-y-z

I don't really think it makes sense for the frontend to authenticate with the backend using OAuth2.

If you have more concrete details, happy to review.

samuelcolvin avatar Feb 09 '24 07:02 samuelcolvin