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

Token user override #886

Open
peterthomassen opened this issue Feb 6, 2024 · 0 comments
Open

Token user override #886

peterthomassen opened this issue Feb 6, 2024 · 0 comments

Comments

@peterthomassen
Copy link
Member

peterthomassen commented Feb 6, 2024

Functionality to have a token act in another user's name:

  1. Add a read-only nullable attribute to tokens called user_override or something (default: None)
  2. Rename the user attribute to owner
  3. Add generated column user which is computed as COALESCE(user_override, owner)

... and adjust FKs and token management code appropriately.

The attribute can only be set with the token owner's consent and when manage_tokens == False. Allow users to see who holds an override token for their account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant