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

Add endpoint to get client permissions #32

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

NeonDaniel
Copy link
Member

@NeonDaniel NeonDaniel commented Oct 17, 2024

Description

Implement /auth/permissions endpoint
Change ClientPermissions to extend pydantic class for OpenAPI compat.

Issues

Closes #29

Other Notes

Permissions are managed per-client, so a client must have an established connection before the endpoint returns meaningful information. This allows for setting per-client restrictions in the future.

Deployed to https://hana.neonaialpha.com/docs#

In the future, permissions may be extended to include rate-limiting information and more granular access (i.e. access to specific backend components). This should always be specified through the ClientPermissions dataclass so the permissions endpoint will stay synchronized with actual functionality

Change `ClientPermissions` to extend pydantic class for OpenAPI compat.
Closes #29
…e per-client

Add token dependency to permissions endpoint to avoid abuse
@NeonDaniel NeonDaniel marked this pull request as ready for review October 17, 2024 16:46
@NeonDaniel NeonDaniel marked this pull request as draft October 29, 2024 22:53
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

Successfully merging this pull request may close these issues.

[FEAT] auth endpoint for permissions
1 participant