12
Login as arbitrary user when acting as admin
Source: directus/directus#19531 · opened by @ryami333
Summary We would like a mechanism for logging in an arbitrary user using an admin's access_token (without knowing the users password). This would enable us to custom-build "magic link" login user-flows. Currently, it's only possible to programmatically login a user with the /auth/login endpoint, but the user's password is a required field, so it must be known. Eg. We would like to be able to circumvent the password field by passing an Admin API token (using the typical authentication strategy: passing an access_token in the query-string, or by passing an Authorization header). Eg. Alternatively, this could be a new endpoint altogether, so that the signature of the existing /auth/login endpoint would remain the same (password as a "required" field). Basic Example Given above. _No response_ Motivation This has at least two utilities, which would be of value to us. 1. Custom Authentication Mechanisms We could imp…
No pledges yet. Be the first to back this.
Comments
Similar requests
Compare and Diff arbitrary items from the same collection
3 votes · 0 comments
Ability to login to directus using access token of a configured provider.
2 votes · 0 comments
Allow logging-in to same account via multiple auth providers
11 votes · 0 comments
Select language before user registration
1 vote · 0 comments
Implement `onbeforeunload` to notify user when leaving Directus App with unsaved content.
2 votes · 0 comments
No comments yet.