oidc

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package oidc provides functionality related to OpenID Connect.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConfig

func NewClientConfig(name, issuer, clientID string, clientSecret sstring.SensitiveString, deviceClientID string, deviceClientSecret sstring.SensitiveString, redirectURL, deviceAuthorizationEndpoint string, scopes []string, disabled bool) (*provider.ClientConfig, error)

NewClientConfig creates a new ClientConfig and also performs discovery.

Types

type OpenIDError

type OpenIDError struct {
	Error        string
	ErrorMessage string
}

OpenIDError represents a typical OIDC error response.

func (OpenIDError) CombineMessage

func (e OpenIDError) CombineMessage() string

CombineMessage combines the (optional) more detailed error message in an OpenIDError with the error cause into one error message string.

Directories

Path Synopsis
Package oidcstrings provides constant strings used with OpenID Connect.
Package oidcstrings provides constant strings used with OpenID Connect.

Jump to

Keyboard shortcuts

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