Skip to content

Request authentication and authorisation#30

Merged
zefir-git merged 25 commits into
mainfrom
auth
Mar 31, 2025
Merged

Request authentication and authorisation#30
zefir-git merged 25 commits into
mainfrom
auth

Conversation

@zefir-git
Copy link
Copy Markdown
Member

Authenticators are registered on the Server. When auth is necessary, routes can call the auth methods on the Request, which will then perform auth with the registered Authenticators on the Server.

The Authorisation class holds Permissions. Permissions can be used as API scopes. It can also hold additional data, e.g. user id/object, etc., which is fully typed and customisable.

The Server class picks up the Authorisation additional data type from the configured Authenticators. This type is then passed onto requests, responses, etc., thus retaining the correct type for the data.

@zefir-git zefir-git self-assigned this Mar 18, 2025
@zefir-git zefir-git requested a review from a team as a code owner March 18, 2025 09:19
@zefir-git zefir-git added priority:2 Valuable but not time-sensitive. Improves functionality, performance, or usability. and removed feature labels Mar 18, 2025
@zefir-git

This comment was marked as resolved.

@zefir-git zefir-git marked this pull request as draft March 19, 2025 04:59
@zefir-git zefir-git added priority:1 Required ASAP. May block another project, be for an upcoming release, or cause major issues. and removed priority:2 Valuable but not time-sensitive. Improves functionality, performance, or usability. labels Mar 23, 2025
@zefir-git zefir-git marked this pull request as ready for review March 30, 2025 21:42
@zefir-git zefir-git enabled auto-merge March 31, 2025 06:35
@zefir-git zefir-git merged commit a83ef31 into main Mar 31, 2025
6 checks passed
@zefir-git zefir-git deleted the auth branch March 31, 2025 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:1 Required ASAP. May block another project, be for an upcoming release, or cause major issues.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants