auth

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

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

func GetIdentity added in v0.5.1

func GetIdentity(k *Keystone) *gophercloud.ServiceClient

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