coreos

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

package coreos provides a Provider for OpenID Connect (oidc), backed by the github.com/coreos/go-oidc module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDC

type OIDC struct {
	Issuer       string
	ClientID     string
	ClientSecret string
	Scopes       []string
	HTTPClient   *http.Client // will use http.DefaultClient if let nil
	// contains filtered or unexported fields
}

func (*OIDC) AuthCodeURL

func (o *OIDC) AuthCodeURL(state string) (string, error)

AuthCodeURL returns the Auth-URL to redirect the user to

func (*OIDC) Exchange

func (o *OIDC) Exchange(_state, code string) (token *oauth2.Token, unmarshalUser func(interface{}) error, err error)

Exchange exchanges the code and provides a way to unmarshal the user info

func (*OIDC) SetRedirectURL

func (o *OIDC) SetRedirectURL(url string)

SetRedirectURL sets the local callback URL.

Jump to

Keyboard shortcuts

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