From fb9d1b3c4a47e8e0341413d24c23eb5daf7c852f Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Fri, 12 Feb 2021 12:51:22 +0100 Subject: [PATCH] Update example/internal/mock/storage.go Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com> --- example/internal/mock/storage.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/internal/mock/storage.go b/example/internal/mock/storage.go index e04c045..8ce59de 100644 --- a/example/internal/mock/storage.go +++ b/example/internal/mock/storage.go @@ -226,11 +226,11 @@ func (s *AuthStorage) GetPrivateClaimsFromScopes(_ context.Context, _, _ string, return map[string]interface{}{"private_claim": "test"}, nil } -func (s *AuthStorage) SetIntrospectionFromToken(ctx context.Context, userinfo oidc.IntrospectionResponse, tokenID, subject, clientID string) error { - if err := s.SetUserinfoFromScopes(ctx, userinfo, "", "", []string{}); err != nil { +func (s *AuthStorage) SetIntrospectionFromToken(ctx context.Context, introspect oidc.IntrospectionResponse, tokenID, subject, clientID string) error { + if err := s.SetUserinfoFromScopes(ctx, introspect, "", "", []string{}); err != nil { return err } - userinfo.SetClientID(a.ClientID) + introspect.SetClientID(a.ClientID) return nil }