auth

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Keystone authentication middleware, only support keystone v3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFactory

func FilterFactory() restful.FilterFunction

Types

type AuthBase

type AuthBase interface {
	Filter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)
}

func NewKeystone

func NewKeystone() AuthBase

func NewNoAuth

func NewNoAuth() AuthBase

type Keystone

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

func (*Keystone) Filter

func (k *Keystone) Filter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

func (*Keystone) SetUp

func (k *Keystone) SetUp() error

type NoAuth

type NoAuth struct {
}

func (*NoAuth) Filter

func (auth *NoAuth) Filter(req *restful.Request, resp *restful.Response, chain *restful.FilterChain)

Jump to

Keyboard shortcuts

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