oauth2redirect

package
v0.0.0-...-6bef223 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package oauth2redirect is a reverse proxy that runs in front of applications and takes care of handling the oauth2 redirect leg of the OAuth 3-legged flow. It passes all other traffic to the application it is running in front of.

This is useful so that we don't need to redeploy docsyserver everytime a change is made to //go/login, instead just this smaller proxy can be deployed at the same time as go/auth-proxy is deployed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main() error

Main constructs and runs the application. This function will only return on failure.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is the oauth2redirect application.

func New

func New(ctx context.Context, opts ...login.InitOption) (*App, error)

New returns a new *App.

func (*App) Flagset

func (a *App) Flagset() *flag.FlagSet

Flagset constructs a flag.FlagSet for the App.

func (*App) Run

func (a *App) Run(ctx context.Context) error

Run starts the application serving, it does not return unless there is an error or the passed in context is cancelled.

Jump to

Keyboard shortcuts

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