oidcmethod

package
v0.0.0-...-bdae3aa Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

* Copyright FMR LLC <opensource@fidelity.com> * * SPDX-License-Identifier: Apache

* Copyright FMR LLC <opensource@fidelity.com> * * SPDX-License-Identifier: Apache

* Copyright FMR LLC <opensource@fidelity.com> * * SPDX-License-Identifier: Apache

Index

Constants

View Source
const (
	AccessTokenKey string = "access_token"
	IDTokenKey     string = "id_token"
)

Variables

View Source
var ErrNoIDFound = errors.New("no id token found")

Functions

func CheckAuthorization

func CheckAuthorization(r *http.Request) (*http.Request, error)

func ExchangeToken

func ExchangeToken(w http.ResponseWriter, r *http.Request) error

func HandleStartAuthFlow

func HandleStartAuthFlow(w http.ResponseWriter, r *http.Request)

func InitAuth

func InitAuth() error

Initialize oidc config

func SSO

func SSO(r chi.Router)

Types

type OIDC

type OIDC struct {
}

func (OIDC) GetUser

func (OIDC) GetUser(r *http.Request, getAd bool) (*rbac.User, error)

Jump to

Keyboard shortcuts

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