authZenApp

package
v0.64.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

* Stream Management API for OpenID Shared Security Events * * [OpenID Spec](https://openid.net/specs/openid-sse-framework-1_0.html#management) HTTP API to be implemented by Event Transmitters. This API can be used by Event Receivers to query and update the Event Stream configuration and status, to add and remove subjects, and to trigger verification. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

View Source
const Header_Email string = "X-JWT-EMAIL"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthZenApp

type AuthZenApp struct {
	Server   *http.Server
	Router   *HttpRouter
	BaseUrl  *url.URL
	HostName string
	Decision *decisionHandler.DecisionHandler

	TokenValidator *tokensupport.TokenHandler
	// contains filtered or unexported fields
}

func StartServer

func StartServer(addr string, baseUrlString string) *AuthZenApp

func (*AuthZenApp) BundleDownload

func (az *AuthZenApp) BundleDownload(writer http.ResponseWriter, r *http.Request)

func (*AuthZenApp) BundleUpload

func (az *AuthZenApp) BundleUpload(writer http.ResponseWriter, r *http.Request)

BundleUpload accepts an OPA tar bundle and replaces the current bundle package at az.BundleDir. Note the the process followed is:

1. Save the existing bundle directory to ".bundle-<number>" 2. Unzip and untar bundle to az.bundleDir (this bundle should contain an bundle folder) 3. Attempt to reload Rego. 4. If rego fails, restore the old bundle and server

func (*AuthZenApp) HandleEvaluation

func (az *AuthZenApp) HandleEvaluation(w http.ResponseWriter, r *http.Request)

func (*AuthZenApp) HandleQueryEvaluation

func (az *AuthZenApp) HandleQueryEvaluation(w http.ResponseWriter, r *http.Request)

func (*AuthZenApp) HealthCheck

func (az *AuthZenApp) HealthCheck() bool

func (*AuthZenApp) Index

func (az *AuthZenApp) Index(w http.ResponseWriter, r *http.Request)

func (*AuthZenApp) Logger

func (az *AuthZenApp) Logger(inner http.Handler, name string) http.Handler

func (*AuthZenApp) Name

func (az *AuthZenApp) Name() string

func (*AuthZenApp) Shutdown

func (az *AuthZenApp) Shutdown()

type AuthZenHealthCheck

type AuthZenHealthCheck struct {
	App *AuthZenApp
}

func (*AuthZenHealthCheck) Check

func (h *AuthZenHealthCheck) Check() bool

func (*AuthZenHealthCheck) Name

func (h *AuthZenHealthCheck) Name() string

type HealthInfo

type HealthInfo struct {
	Status string `json:"status"`
}

type HttpRouter

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

func NewRouter

func NewRouter(application *AuthZenApp) *HttpRouter

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
	IsIdQuery   bool
}

type Routes

type Routes []Route

Jump to

Keyboard shortcuts

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