redirect

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindMiddleware

func FindMiddleware(next http.Handler) http.Handler

指定されたリクエストから考えられる認証成功後のリダイレクトURLを探索する 明示的に指定されていないものでも、リクエスト情報をもとに決定するため、Upstreamへのリクエストにしか使用できない

func GetMiddleware

func GetMiddleware(next http.Handler) http.Handler

指定されたリクエストに明示的に指定されている認証成功後のリダイレクトURLを取得する OIDC用エンドポイントへの直接のアクセスなどプロキシ先ではないoauth2proxy自体へのアクセスの場合、 暗黙的にリダイレクトURLを決定することが出来ないため、この処理が必要

Types

type Key

type Key struct{}

Jump to

Keyboard shortcuts

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