IDToken: Reuse claims from authlib (#87437)
* bump authlib version * Reuse claims from authlib
This commit is contained in:
@@ -3,7 +3,7 @@ package auth
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-jose/go-jose/v3/jwt"
|
||||
authnlib "github.com/grafana/authlib/authn"
|
||||
|
||||
"github.com/grafana/grafana/pkg/services/auth/identity"
|
||||
)
|
||||
@@ -20,10 +20,4 @@ type IDSigner interface {
|
||||
SignIDToken(ctx context.Context, claims *IDClaims) (string, error)
|
||||
}
|
||||
|
||||
type IDClaims struct {
|
||||
jwt.Claims
|
||||
Email string `json:"email"`
|
||||
EmailVerified bool `json:"email_verified"`
|
||||
Namespace string `json:"namespace,omitempty"`
|
||||
AuthenticatedBy string `json:"authenticatedBy,omitempty"`
|
||||
}
|
||||
type IDClaims = authnlib.Claims[authnlib.IDTokenClaims]
|
||||
|
||||
Reference in New Issue
Block a user