diff --git a/pkg/apimachinery/identity/requester.go b/pkg/apimachinery/identity/requester.go index 318fc0befed..ac44d236b29 100644 --- a/pkg/apimachinery/identity/requester.go +++ b/pkg/apimachinery/identity/requester.go @@ -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. diff --git a/pkg/services/authn/identity.go b/pkg/services/authn/identity.go index 776283bf92d..e2afc31647a 100644 --- a/pkg/services/authn/identity.go +++ b/pkg/services/authn/identity.go @@ -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 } diff --git a/pkg/services/user/identity.go b/pkg/services/user/identity.go index ece7ed08d3c..83a303b28c8 100644 --- a/pkg/services/user/identity.go +++ b/pkg/services/user/identity.go @@ -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 -}