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

Allow sub-selecting role scopes when generating API tokens #5719

Open
jc-harrison opened this issue Dec 22, 2022 · 0 comments
Open

Allow sub-selecting role scopes when generating API tokens #5719

jc-harrison opened this issue Dec 22, 2022 · 0 comments
Labels
FlowAuth Issues related to FlowAuth

Comments

@jc-harrison
Copy link
Member

In the new permissions system (#5163), permission scopes are granted to roles, and roles are assigned to users, and a user can select which roles to include scopes from when generating an API token.

There are times when it may be useful to sub-select a role's scopes, e.g. when generating a token to be used for running one specific query. This is not currently possible via the FlowAuth frontend/API - it would be useful (although not essential) to enable this.

By the same reasoning, it would also be useful to be able to explicitly set a token's expiry to be earlier than the latest expiry allowed by the selected roles. This is slightly tricky to handle in the UI, because the default (i.e. latest permitted) expiry depends on the selected roles.

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

No branches or pull requests

1 participant