oauth2

package
v0.0.0-...-2754675 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a limited implementation of OAuth 2.0 Authorization Framework standard (RFC 6749)

func NewServer

func NewServer(
	basePath string,
	iamServerCore *iamserver.Core,
	signInURL string,
) (*Server, error)

New instantiates an Server.

func (*Server) RESTRequestContext

func (restSrv *Server) RESTRequestContext(req *http.Request) (*iam.RESTRequestContext, error)

func (*Server) RestfulWebService

func (restSrv *Server) RestfulWebService() *restful.WebService

RestfulWebService is used to obtain restful WebService with all endpoints set up.

Jump to

Keyboard shortcuts

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