Skip to content

Conversation

@G8XSU
Copy link
Contributor

@G8XSU G8XSU commented Jul 25, 2024

  • Add support for pluggable Authorizer, default to NoopAuthorizer

Different authorizers can act upon headers to return userToken or throw AuthException if auth fails.

We can later implement JWTAuthorizer or others.

If hosting providers, want to supply some other variant or add additional checks, they can just implement this interface.

Based on #30.

@G8XSU G8XSU force-pushed the authorizer branch 2 times, most recently from 3d86906 to 07d47d1 Compare July 29, 2024 19:16
@G8XSU G8XSU requested a review from jkczyz July 29, 2024 19:16
Copy link
Contributor

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some nits. Otherwise, LGTM.

Different authorizers can act upon headers to return userToken
or throw AuthException if auth fails. If hosting providers,
want to support alternative auths or add additional checks in auth,
they can just implement this interface.
@G8XSU G8XSU requested a review from jkczyz July 30, 2024 22:06
@G8XSU G8XSU merged commit c21fd71 into lightningdevkit:main Jul 31, 2024
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.

2 participants