openid

package module
v0.0.0-...-e98fe29 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2014 License: MIT Imports: 4 Imported by: 0

README

go-openid

A simple open id implementation with golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewClassicManager

func NewClassicManager(clientStore oauth2.ClientStore, iss string,
	key []byte) (*Manager, error)

func (*Manager) HandleCodeRequest

func (m *Manager) HandleCodeRequest(w http.ResponseWriter,
	r *http.Request, user string) error

func (*Manager) HandleTokenRequest

func (m *Manager) HandleTokenRequest(w http.ResponseWriter,
	r *http.Request) error

func (*Manager) ReadClient

func (m *Manager) ReadClient(clientId string) (*oauth2.Client, error)

func (*Manager) ReadCode

func (m *Manager) ReadCode(codeString string) (*oauth2.Token, error)

func (*Manager) ReadToken

func (m *Manager) ReadToken(tokenString string) (*UserToken, error)

type UserToken

type UserToken oauth2.Token

func (*UserToken) BelongTo

func (t *UserToken) BelongTo() string

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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