oidc

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for oidc

func New

func New(config *Config) (*Client, error)

New returns client instance

func (*Client) CreateOIDCRequest

func (c *Client) CreateOIDCRequest(state, scope string) (string, error)

CreateOIDCRequest create oidc request

func (*Client) HandleOIDCCallback

func (c *Client) HandleOIDCCallback(reqContext context.Context, code string) ([]byte, error)

HandleOIDCCallback handle oidc callback

type Config

type Config struct {
	TLSConfig        *tls.Config
	OIDCProviderURL  string
	OIDCClientID     string
	OIDCClientSecret string
	OIDCCallbackURL  string
}

Config defines configuration for oidc client

Jump to

Keyboard shortcuts

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