oauthclient

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package oauthclient ...

Package oauthclient ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim

type Claim struct {
	Role  string
	URL   string
	Scope string
}

Claim Claim

type Client

type Client interface {
	Authorize(r *http.Request, c *Claim) bool
}

Client Client

type MockOauthClient

type MockOauthClient struct {
	Manager   m.Manager
	MockValid bool
}

MockOauthClient MockOauthClient

func (*MockOauthClient) Authorize

func (o *MockOauthClient) Authorize(r *http.Request, c *Claim) bool

Authorize Authorize

func (*MockOauthClient) GetNewClient

func (o *MockOauthClient) GetNewClient() Client

GetNewClient GetNewClient

type OauthClient

type OauthClient struct {
	Manager         m.Manager
	TokenCompressed bool
	JwtCompress     cp.JwtCompress
	Log             *lg.Logger
}

OauthClient OauthClient

func (*OauthClient) Authorize

func (o *OauthClient) Authorize(r *http.Request, c *Claim) bool

Authorize Authorize

func (*OauthClient) GetNewClient

func (o *OauthClient) GetNewClient() Client

GetNewClient GetNewClient

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL