Versions in this module Expand all Collapse all v1 v1.0.1 Aug 25, 2022 v1.0.0 Jul 28, 2022 Changes in this version + var Config oauthmodel.Config + var Now = time.Now + var UserRepository oauthmodel.UserRepository + func Authenticate(tokenString string) (oauthmodel.Authentication, oauthmodel.Identity, error) + func Authorise(tokenString string, queryPt *AuthoriseQuery) (*oauthmodel.Claims, error) + func IsInvalidTokenError(err error) bool + func IsNotPreregisteredError(err error) bool + type AuthoriseQuery struct + Owners map[string]string + Scopes []string + func NewAuthoriseQuery(scopes ...string) *AuthoriseQuery + func (q *AuthoriseQuery) WithOwner(owner string, permission string) *AuthoriseQuery