Documentation
¶
Index ¶
- Constants
- func GrantID(info *auth.TokenInfo) (int64, bool)
- func GrantName(info *auth.TokenInfo) string
- func HashToken(token string) string
- func NewStaticToken() (string, error)
- func ValidateGrantName(name string) error
- func Verifier(st *store.Store, clk clock.Clock) auth.TokenVerifier
- type Deps
- type GrantEvents
- type Server
Constants ¶
View Source
const ( ProtectedResourcePath = "/.well-known/oauth-protected-resource" AuthorizationServerPath = "/.well-known/oauth-authorization-server" RegisterPath = "/oauth/register" AuthorizePath = "/oauth/authorize" TokenPath = "/oauth/token" RevokePath = "/oauth/revoke" ResourcePath = "/mcp" Scope = "whatsapp" )
View Source
const ( StaticTokenPrefix = "wmcp_" GrantNameExtra = "grant_name" )
Variables ¶
This section is empty.
Functions ¶
func NewStaticToken ¶
func ValidateGrantName ¶
Types ¶
type GrantEvents ¶
type GrantEvents interface {
GrantRevoked(grantID int64)
}
Click to show internal directories.
Click to hide internal directories.