authcode

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

View Source
const BrowserSuccessHTML = `` /* 515-byte string literal not displayed */

BrowserSuccessHTML is the success page on browser based authentication.

Variables

This section is empty.

Functions

func BrowserRedirectHTML

func BrowserRedirectHTML(target string) string

Types

type Browser

type Browser struct {
	Browser browser.Interface
	Logger  logger.Interface
}

Browser provides the authentication code flow using the browser.

func (*Browser) Do

type BrowserOption

type BrowserOption struct {
	SkipOpenBrowser            bool
	BindAddress                []string
	OpenURLAfterAuthentication string
	RedirectURLHostname        string
	AuthRequestExtraParams     map[string]string
}

type Keyboard

type Keyboard struct {
	Reader reader.Interface
	Logger logger.Interface
}

Keyboard provides the authorization code flow with keyboard interactive.

func (*Keyboard) Do

type KeyboardOption

type KeyboardOption struct {
	AuthRequestExtraParams map[string]string
}

Jump to

Keyboard shortcuts

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