builder

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultContextBuilder

type DefaultContextBuilder struct {
	Context *authorizer.Context
}

DefaultContextBuilder implements the ContextBuilder interface It creates context with the list of scopes when using M2M authorization

func (*DefaultContextBuilder) BuildContext

func (c *DefaultContextBuilder) BuildContext(encodedToken string) (map[string]interface{}, error)

BuildContext builds a context that is passed to resource server.

type DefaultPolicyBuilder

type DefaultPolicyBuilder struct {
	Context *authorizer.Context
	Region  string
}

DefaultPolicyBuilder Implements Policy builder interface. It grants full access for the M2M authorized compute resources Other methods like `TokenUse = id` are forbidden

func (*DefaultPolicyBuilder) BuildPolicy

BuildPolicy builds proper apigw policy based on scope from claims.

type PolicyEffect

type PolicyEffect string

Jump to

Keyboard shortcuts

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