v2

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Second version of authentication in Kyma. Based on Istio authentication policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dto

type Dto struct {
	MetaDto                meta.Dto
	ServiceName            string
	DisablePolicyPeersMTLS bool
	AuthenticationEnabled  bool
	Rules                  Rules
	Status                 kymaMeta.GatewayResourceStatus
}

type Interface

type Interface interface {
	Create(dto *Dto) (*kymaMeta.GatewayResource, error)
	Update(oldDto, newDto *Dto) (*kymaMeta.GatewayResource, error)
	Delete(dto *Dto) error
}

func New

func New(a istioAuth.Interface, c JwtDefaultConfig, enableIstioAuthPolicyMTLS bool) Interface

type Jwt

type Jwt struct {
	Issuer      string
	JwksUri     string
	TriggerRule TriggerRule
}

type JwtDefaultConfig

type JwtDefaultConfig Jwt

type MatchExpression

type MatchExpression struct {
	ExprType string
	Value    string
}

type Rule

type Rule struct {
	Type Type
	Jwt  Jwt
}

func (*Rule) String

func (r *Rule) String() string

type Rules

type Rules []Rule

type TriggerRule

type TriggerRule struct {
	ExcludedPaths []MatchExpression
}

type Type

type Type string
const (
	JwtType Type = "JWT"
)

Jump to

Keyboard shortcuts

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