security

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOAuth2Middleware

func NewOAuth2Middleware(keySet jwk.Set, allowedAuthority string) func(ctx iris.Context)

func SetUpOAuth2

func SetUpOAuth2(app *iris.Application, jwk Jwk, role string)

Types

type Jwk

type Jwk struct {
	Url    string
	Client web.Client
}

func (*Jwk) JwkSets

func (receiver *Jwk) JwkSets() (jwk.Set, error)

func (*Jwk) RsaPublicKey

func (receiver *Jwk) RsaPublicKey() ([]*rsa.PublicKey, error)

type OAuth2User

type OAuth2User struct {
	UserName    string
	Authorities []string
}

Jump to

Keyboard shortcuts

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