MCPcopy Create free account
hub / github.com/zitadel/oidc / CreateTokenExchangeRequest

Method CreateTokenExchangeRequest

example/server/storage/storage.go:731–733  ·  view source on GitHub ↗

ValidateTokenExchangeRequest implements the op.TokenExchangeStorage interface Common use case is to store request for audit purposes. For this example we skip the storing.

(ctx context.Context, request op.TokenExchangeRequest)

Source from the content-addressed store, hash-verified

729// ValidateTokenExchangeRequest implements the op.TokenExchangeStorage interface
730// Common use case is to store request for audit purposes. For this example we skip the storing.
731func (s *Storage) CreateTokenExchangeRequest(ctx context.Context, request op.TokenExchangeRequest) error {
732 return nil
733}
734
735// GetPrivateClaimsFromScopesForTokenExchange implements the op.TokenExchangeStorage interface
736// it will be called for the creation of an exchanged JWT access token to assert claims for custom scopes

Callers

nothing calls this directly

Implementers 7

Storageexample/server/storage/storage.go
multiStorageexample/server/storage/storage_dynamic
UnimplementedServerpkg/op/server.go
LegacyServerpkg/op/server_legacy.go
Sigpkg/op/mock/authorizer.mock.impl.go
MockStoragepkg/op/mock/storage.mock.go
MockStorageMockRecorderpkg/op/mock/storage.mock.go

Calls

no outgoing calls

Tested by

no test coverage detected