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

refactor(authentication) - create stackable middleware to be able to implement alternative auth methods #372

Open
2 tasks
michalkrzyz opened this issue Nov 12, 2024 · 1 comment
Assignees

Comments

@michalkrzyz
Copy link
Collaborator

refactor

Task Description
Currently we are able to use token_auth middleware to authenticate user/scanner. Provide abstraction layer to have stackable alternative way to authenticate (user via oidc and scanner via JWT token)

Acceptance Criteria:

  • AC 1 Developer should be able to use more interfaces to create own alternative authentication
  • AC 2 Current JWT token authentication should work the same way, the tests shall be copied and passed

Expected Test:
No new tests are expected

@michalkrzyz michalkrzyz self-assigned this Nov 12, 2024
michalkrzyz added a commit that referenced this issue Nov 19, 2024
Redesign JWT token authentication middleware to support
additional/alternative authentication method
michalkrzyz added a commit that referenced this issue Nov 19, 2024
Redesign JWT token authentication middleware to support
additional/alternative authentication method
michalkrzyz added a commit that referenced this issue Nov 19, 2024
Redesign JWT token authentication middleware to support
additional/alternative authentication method
michalkrzyz added a commit that referenced this issue Nov 19, 2024
Redesign JWT token authentication middleware to support
additional/alternative authentication method
michalkrzyz added a commit that referenced this issue Nov 22, 2024
Split verify function for JWT token auth to make it more readable
michalkrzyz added a commit that referenced this issue Nov 22, 2024
Split verify function for JWT token auth to make it more readable
michalkrzyz added a commit that referenced this issue Dec 3, 2024
Redesign JWT token authentication middleware to support
additional/alternative authentication method
michalkrzyz added a commit that referenced this issue Dec 3, 2024
Split verify function for JWT token auth to make it more readable
michalkrzyz added a commit that referenced this issue Dec 12, 2024
Redesign JWT token authentication middleware to support
additional/alternative authentication method
michalkrzyz added a commit that referenced this issue Dec 12, 2024
Split verify function for JWT token auth to make it more readable
@lolaapenna
Copy link
Collaborator

This is also pending @drochow review

drochow added a commit that referenced this issue Dec 19, 2024
* feat(authN): Redesign JWT token auth #372

Redesign JWT token authentication middleware to support
additional/alternative authentication method

* claimsfeat(authN): Redesign JWT token auth #372

Split verify function for JWT token auth to make it more readable

---------

Co-authored-by: David Rochow <[email protected]>
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

No branches or pull requests

2 participants