Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer[TUser user.Model, TAccount account.Model] struct { // contains filtered or unexported fields }
func NewAuthorizer ¶
func NewAuthorizer[TUser user.Model, TAccount account.Model]( provider fosite.OAuth2Provider, accounts account.SessionRepository[TUser, TAccount], ) *Authorizer[TUser, TAccount]
func (*Authorizer[TUser, TAccount]) Authorize ¶
func (au *Authorizer[TUser, TAccount]) Authorize(w http.ResponseWriter, r *http.Request) (string, TUser, TAccount, error)
func (*Authorizer[TUser, TAccount]) AuthorizerCode ¶
func (au *Authorizer[TUser, TAccount]) AuthorizerCode() string
Click to show internal directories.
Click to hide internal directories.