MCPcopy Index your code
hub / github.com/ory/hydra / UserCodeSignature

Method UserCodeSignature

fosite/handler/rfc8628/strategy.go:41–41  ·  view source on GitHub ↗

UserCodeSignature calculates the signature of a user_code

(ctx context.Context, code string)

Source from the content-addressed store, hash-verified

39type UserCodeStrategy interface {
40 // UserCodeSignature calculates the signature of a user_code
41 UserCodeSignature(ctx context.Context, code string) (signature string, err error)
42
43 // GenerateUserCode generates a new user code and signature
44 GenerateUserCode(ctx context.Context) (code string, signature string, err error)

Callers 2

acceptUserCodeRequestMethod · 0.65
TestHMACUserCodeFunction · 0.65

Implementers 3

MockUserCodeStrategyfosite/internal/user_code_strategy.go
MockUserCodeStrategyMockRecorderfosite/internal/user_code_strategy.go
DefaultDeviceStrategyfosite/handler/rfc8628/strategy_hmacsh

Calls

no outgoing calls

Tested by 1

TestHMACUserCodeFunction · 0.52