Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Allow to easily find out REST auth token #240

Open
nemesifier opened this issue Apr 20, 2021 · 0 comments
Open

[feature] Allow to easily find out REST auth token #240

nemesifier opened this issue Apr 20, 2021 · 0 comments

Comments

@nemesifier
Copy link
Member

nemesifier commented Apr 20, 2021

We should add a way to easily find out the REST framework auth token of the user logged in the admin and document this.

I think we can do so by adding a menu item in the menu on the upper right corner which opens up when clicking on the username/name of the user, the menu item can be called "API auth token" and need to link to a new view which we are going to add.

The new view will create the rest auth token if the logged in user does not have one yet. The template will show this token in the UI in a text field which is easily copyable (ideally we would reuse the copyable JS logic in openwisp-utils).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do (Python & Django)
Development

No branches or pull requests

1 participant