Identity: remove GetIDClaims (#91901)

remove GetIDClaims
This commit is contained in:
Karl Persson
2024-08-15 11:39:13 +02:00
committed by GitHub
parent 2ac247be88
commit 5105fb7f3a
3 changed files with 0 additions and 11 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"strconv"
authnlib "github.com/grafana/authlib/authn"
"github.com/grafana/authlib/claims"
"k8s.io/apiserver/pkg/authentication/user"
)
@@ -76,8 +75,6 @@ type Requester interface {
// GetIDToken returns a signed token representing the identity that can be forwarded to plugins and external services.
// Will only be set when featuremgmt.FlagIdForwarding is enabled.
GetIDToken() string
// GetIDClaims returns the claims of the ID token.
GetIDClaims() *authnlib.Claims[authnlib.IDTokenClaims]
}
// IntIdentifier converts a typeID to an int64.

View File

@@ -175,10 +175,6 @@ func (i *Identity) GetIDToken() string {
return i.IDToken
}
func (i *Identity) GetIDClaims() *authn.Claims[authn.IDTokenClaims] {
return i.IDTokenClaims
}
func (i *Identity) GetIsGrafanaAdmin() bool {
return i.IsGrafanaAdmin != nil && *i.IsGrafanaAdmin
}

View File

@@ -323,7 +323,3 @@ func (u *SignedInUser) GetDisplayName() string {
func (u *SignedInUser) GetIDToken() string {
return u.IDToken
}
func (u *SignedInUser) GetIDClaims() *authnlib.Claims[authnlib.IDTokenClaims] {
return u.IDTokenClaims
}