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

Open
wants to merge 1 commit 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

@NeonDaniel NeonDaniel marked this pull request as ready for review October 17, 2024 16:46
@NeonDaniel NeonDaniel requested a review from mikejgray October 17, 2024 16:48
@NeonDaniel NeonDaniel marked this pull request as draft October 29, 2024 22:53
@NeonDaniel NeonDaniel force-pushed the FEAT_AddPermissionsEndpoint branch from 6ce3c6c to a1354dc Compare December 28, 2024 02:14
@NeonDaniel NeonDaniel marked this pull request as ready for review December 28, 2024 02:20
@NeonDaniel
Copy link
Member Author

Deployed to alpha

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