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

JWT Authentication: Add support for specifying groups in auth.jwt for teamsync #82175

Merged
merged 16 commits into from
Feb 9, 2024

Conversation

Jguer
Copy link
Contributor

@Jguer Jguer commented Feb 8, 2024

What is this feature?

pairing with @mgyongyosi

  • Refactor JWT settings
  • Refactor JWT client
  • Unify same functions across JWT and OAuth in utils
  • Add support for specifying groups in auth.jwt for teamsync

@Jguer Jguer added this to the 10.4.x milestone Feb 8, 2024
@Jguer Jguer requested a review from mgyongyosi February 8, 2024 15:33
@Jguer Jguer self-assigned this Feb 8, 2024
@Jguer Jguer requested review from a team as code owners February 8, 2024 15:33
@Jguer Jguer requested review from zserge, diegommm and mildwonkey and removed request for a team February 8, 2024 15:33
@Jguer Jguer requested a review from torkelo as a code owner February 8, 2024 15:37
Copy link
Contributor

@linoman linoman left a comment

Choose a reason for hiding this comment

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

Great work! I really like the encapsulation of the JSON utils into the utils package!

pkg/setting/setting.go Show resolved Hide resolved
Copy link
Contributor

@kalleep kalleep left a comment

Choose a reason for hiding this comment

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

Great work! Something we may need to add is sync caching, same mechanism we have for auth proxy.

pkg/services/authn/clients/jwt.go Outdated Show resolved Hide resolved
pkg/util/json.go Outdated Show resolved Hide resolved
pkg/util/json.go Outdated Show resolved Hide resolved
@Jguer Jguer merged commit 6f62d97 into main Feb 9, 2024
12 checks passed
@Jguer Jguer deleted the jguer-misi/add-jwt-group-path branch February 9, 2024 15:36
@mgyongyosi mgyongyosi mentioned this pull request Feb 14, 2024
3 tasks
Ukochka pushed a commit that referenced this pull request Feb 14, 2024
… teamsync (#82175)

* merge JSON search logic

* document public methods

* improve test coverage

* use separate JWT setting struct

* correct use of cfg.JWTAuth

* add group tests

* fix DynMap typing

* add settings to default ini

* add groups option to devenv path

* fix test

* lint

* revert jwt-proxy change

* remove redundant check

* fix parallel test
@aangelisc aangelisc modified the milestones: 10.4.x, 10.4.0 Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants