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

feat(authN): Redesign JWT token auth #394

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

michalkrzyz
Copy link
Collaborator

@michalkrzyz michalkrzyz commented Nov 19, 2024

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

Description

Implementation of the capability of having multiple auth mechanisms in place.
To register new auth method (JWT or oidc), function with Verify(c *gin.Context) error has to be implemented.
Currently only JWT token based authentication is used, oidc implementation with it's Verify method will be implemented in separate issue/PR.

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

  • Related Issue # (issue)
  • Closes # (issue)
  • Fixes # (issue)

Remove if not applicable

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@michalkrzyz michalkrzyz force-pushed the mikrzyz/issue-239 branch 3 times, most recently from 7240fe3 to 6a63744 Compare November 19, 2024 13:38
Copy link
Collaborator

@drochow drochow left a comment

Choose a reason for hiding this comment

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

Good Job!

LGTM --> i would just like to have some specific comments to the verify function that make clear that we left out certain enforcements/verifications intentionally

@dorneanu
Copy link
Collaborator

In the description I cannot see the "related issues" nor the ones which the PR should close.

Copy link
Collaborator

@dorneanu dorneanu left a comment

Choose a reason for hiding this comment

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

Muy bien

@michalkrzyz michalkrzyz changed the title feat(authN): Redesign JWT token auth #372 feat(authN): Redesign JWT token auth Dec 2, 2024
Redesign JWT token authentication middleware to support
additional/alternative authentication method
Split verify function for JWT token auth to make it more readable
@michalkrzyz michalkrzyz requested a review from drochow December 10, 2024 13:07
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.

4 participants