hashicorp / hashicorp/vault-plugin-auth-jwt

Feature request: Add option for getting additional claims from /userinfo endpoint for JWT authentication

Open
#242 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
107
Forks
73
Avg merge
13h 49m
Merged PRs (30d)
7

Description

Currently additional claims are automatically retrieved from /userinfo endpoint and merged to tokens when login to Vault via OIDC but not for login via JWT access token. Adding an option for getting additional claims from /userinfo endpoint for JWT authentication could help:
- Better compatibility between login via OIDC (for using GUI) and via JWT access token (for automation) from the same OIDC provider,
- Additional claims could enable better group mapping,
- Better security as the token will be validated at /userinfo endpoint again (e.g. detecting if the token is revoked, that cannot be validated locally),
- Finally, getting additional claims is optional for JWT auth so it will not break current working JWT authentication, only help.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the JWT authentication flow and the existing /userinfo claim retrieval used during OIDC login. Determine where an optional JWT-authentication setting belongs and verify that enabling it retrieves and merges additional claims while leaving the current default behavior unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.