storage

package
v0.0.0-...-be43ff6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateData

type StateData struct {
	ID          string
	ClientID    string
	RedirectURL string
	Scope       string
	State       string
	Type        string
	Provider    string
	ExpiresAt   time.Time
}

func (*StateData) ExpireInOneHour

func (s *StateData) ExpireInOneHour()

func (*StateData) FromAuthorizeRequest

func (s *StateData) FromAuthorizeRequest(ar *osin.AuthorizeRequest, provider string) error

func (*StateData) IsExpired

func (s *StateData) IsExpired() bool

func (*StateData) ToURLValues

func (s *StateData) ToURLValues() (v url.Values)

type Storage

type Storage interface {
	SaveStateData(stateData *StateData) error
	GetStateData(id string) (*StateData, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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