Update example/internal/mock/storage.go

Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
This commit is contained in:
Livio Amstutz 2021-02-12 12:51:22 +01:00 committed by GitHub
parent 0c7b2605bd
commit fb9d1b3c4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}