rp

package
v0.0.0-...-e2e270a Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCodeRedirect

type AuthCodeRedirect struct {
	URL   string
	State string
}

type AuthService

type AuthService interface {
	Redirect(context.Context) (*AuthCodeRedirect, error)
	Exchange(context.Context, *RedirectResult) (*Token, error)
}

type RedirectResult

type RedirectResult struct {
	Params url.Values

	// From the cookie
	State string
}

type Token

type Token struct {
	*oauth2.Token

	UserID  string
	Email   string
	Name    string
	Picture string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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