MCPcopy Create free account
hub / github.com/authorizerdev/authorizer / GetAndRemoveState

Method GetAndRemoveState

internal/memory_store/provider.go:69–69  ·  view source on GitHub ↗

GetAndRemoveState atomically retrieves and deletes the state entry. Returns the state value and removes it in a single operation to prevent authorization code replay (RFC 6749 §4.1.2).

(key string)

Source from the content-addressed store, hash-verified

67 // Returns the state value and removes it in a single operation to
68 // prevent authorization code replay (RFC 6749 §4.1.2).
69 GetAndRemoveState(key string) (string, error)
70
71 // SetCache stores a key-value pair with a TTL in seconds.
72 // Used by the authorization engine for permission evaluation caching.

Callers 2

consumeAuthorizeStateMethod · 0.65
TokenHandlerMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected