oidc

package
v0.2024.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package oidc provides access to remote OpenID Connect configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	JWKSURI               string `json:"jwks_uri"`
	TokenEndpoint         string `json:"token_endpoint"`
	AuthorizationEndpoint string `json:"authorization_endpoint"`
}

Config represents an OpenID Connect configuration document. It only contains the properties that we need to function, for now.

func FetchConfig

func FetchConfig(ctx context.Context, issuer string) (Config, error)

FetchConfig retrieves OIDC Config from the given issuer URL prefix using the `.well-known/openid-configuration` suffix.

Jump to

Keyboard shortcuts

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