traefik_keycloak_authorizer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

Keycloak authorizer middleware

Documentation

Overview

Package traefik-keycloak-authorizer provides functionality for authorizing requests given a JWT token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

New created a new KeycloakAuthorizer plugin. revive:disable-next-line unused-parameter.

Types

type Config

type Config struct {
	Issuer   string `json:"issuer,omitempty"`
	Audience string `json:"audience,omitempty"`
}

Config the plugin configuration.

func CreateConfig

func CreateConfig() *Config

CreateConfig creates the default plugin configuration.

type KeycloakAuthorizer

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

KeycloakAuthorizer plugin struct.

func (*KeycloakAuthorizer) ServeHTTP

func (p *KeycloakAuthorizer) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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