Skip to content

Commit

Permalink
Add users API to get and delete users (#223)
Browse files Browse the repository at this point in the history
* Add users API to get and delete users

* Allow browser login for users api
  • Loading branch information
reesercollins authored and cccs-RyanK committed Apr 20, 2023
1 parent 18502f5 commit beb30cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion superset/initialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def init_views(self) -> None:
from superset.queries.saved_queries.api import SavedQueryRestApi
from superset.reports.api import ReportScheduleRestApi
from superset.reports.logs.api import ReportExecutionLogRestApi
from superset.security.api import SecurityRestApi
from superset.security.api import SecurityRestApi, UsersApi
from superset.sqllab.api import SqlLabRestApi
from superset.views.access_requests import AccessRequestsModelView
from superset.views.alerts import AlertView, ReportView
Expand Down Expand Up @@ -223,6 +223,7 @@ def init_views(self) -> None:
appbuilder.add_api(ReportExecutionLogRestApi)
appbuilder.add_api(SavedQueryRestApi)
appbuilder.add_api(SqlLabRestApi)
appbuilder.add_api(UsersApi)
#
# Setup regular views
#
Expand Down
2 changes: 1 addition & 1 deletion superset/security/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from flask import request, Response
from flask_appbuilder import expose
from flask_appbuilder.api import safe
from flask_appbuilder.api import BaseApi, safe
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder.security.decorators import permission_name, protect
from flask_wtf.csrf import generate_csrf
Expand Down

0 comments on commit beb30cf

Please sign in to comment.