dpgaspar / Flask-AppBuilder

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
BSD 3-Clause "New" or "Revised" License
4.71k stars 1.36k forks source link

Support Personal Access Tokens in addition to AUTH_TYPE #2195

Open shohamyamin opened 9 months ago

shohamyamin commented 9 months ago

Hi, is it possible to support access token in addition to oauth/oidc authentication.

so that other applications can communicate with the API of the FAB application.

I am dealing this issue when I want to use datahub to ingest metadata from Superset that is built with FAB and the only way for now is when superset is configured with DB_AUTH or LDAP_AUTH but not OAUTH/OIDC.

If FAB will have access token in regardless of the authentication type this will open new ways to communicate with FAB applications API.

what do you think?

dpgaspar commented 9 months ago

Would be a nice improvement, but you can use OAuth and make authenticated requests to the REST API (ModelRestApi) using DB Auth, you can add a "user" that could be username=access_key and password=secret.