oauth2provider

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider fosite.OAuth2Provider

type Wrapper

type Wrapper struct {
	// contains filtered or unexported fields
}

func Wrap

func Wrap(provider Provider, tracer trace.Tracer) *Wrapper

func (*Wrapper) IntrospectToken

func (w *Wrapper) IntrospectToken(ctx context.Context, token string, tokenUse fosite.TokenUse, session fosite.Session, scope ...string) (fosite.TokenUse, fosite.AccessRequester, error)

func (*Wrapper) NewAccessRequest

func (w *Wrapper) NewAccessRequest(ctx context.Context, req *http.Request, session fosite.Session) (fosite.AccessRequester, error)

func (*Wrapper) NewAccessResponse

func (w *Wrapper) NewAccessResponse(ctx context.Context, requester fosite.AccessRequester) (fosite.AccessResponder, error)

func (*Wrapper) NewAuthorizeRequest

func (w *Wrapper) NewAuthorizeRequest(ctx context.Context, req *http.Request) (fosite.AuthorizeRequester, error)

func (*Wrapper) NewAuthorizeResponse

func (w *Wrapper) NewAuthorizeResponse(ctx context.Context, requester fosite.AuthorizeRequester, session fosite.Session) (fosite.AuthorizeResponder, error)

func (*Wrapper) NewIntrospectionRequest

func (w *Wrapper) NewIntrospectionRequest(ctx context.Context, r *http.Request, session fosite.Session) (fosite.IntrospectionResponder, error)

func (*Wrapper) NewPushedAuthorizeRequest

func (w *Wrapper) NewPushedAuthorizeRequest(ctx context.Context, r *http.Request) (fosite.AuthorizeRequester, error)

func (*Wrapper) NewPushedAuthorizeResponse

func (w *Wrapper) NewPushedAuthorizeResponse(ctx context.Context, ar fosite.AuthorizeRequester, session fosite.Session) (fosite.PushedAuthorizeResponder, error)

func (*Wrapper) NewRevocationRequest

func (w *Wrapper) NewRevocationRequest(ctx context.Context, r *http.Request) error

func (*Wrapper) WriteAccessError

func (w *Wrapper) WriteAccessError(ctx context.Context, rw http.ResponseWriter, requester fosite.AccessRequester, err error)

func (*Wrapper) WriteAccessResponse

func (w *Wrapper) WriteAccessResponse(ctx context.Context, rw http.ResponseWriter, requester fosite.AccessRequester, responder fosite.AccessResponder)

func (*Wrapper) WriteAuthorizeError

func (w *Wrapper) WriteAuthorizeError(ctx context.Context, rw http.ResponseWriter, requester fosite.AuthorizeRequester, err error)

func (*Wrapper) WriteAuthorizeResponse

func (w *Wrapper) WriteAuthorizeResponse(ctx context.Context, rw http.ResponseWriter, requester fosite.AuthorizeRequester, responder fosite.AuthorizeResponder)

func (*Wrapper) WriteIntrospectionError

func (w *Wrapper) WriteIntrospectionError(ctx context.Context, rw http.ResponseWriter, err error)

func (*Wrapper) WriteIntrospectionResponse

func (w *Wrapper) WriteIntrospectionResponse(ctx context.Context, rw http.ResponseWriter, r fosite.IntrospectionResponder)

func (*Wrapper) WritePushedAuthorizeError

func (w *Wrapper) WritePushedAuthorizeError(ctx context.Context, rw http.ResponseWriter, ar fosite.AuthorizeRequester, err error)

func (*Wrapper) WritePushedAuthorizeResponse

func (w *Wrapper) WritePushedAuthorizeResponse(ctx context.Context, rw http.ResponseWriter, ar fosite.AuthorizeRequester, resp fosite.PushedAuthorizeResponder)

func (*Wrapper) WriteRevocationResponse

func (w *Wrapper) WriteRevocationResponse(ctx context.Context, rw http.ResponseWriter, err error)

Jump to

Keyboard shortcuts

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