keycloak_middleware

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Unlicense Imports: 7 Imported by: 0

README

go-keycloak-middleware

Middleware for SSO Keycloak, it work with gin or echo handler

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyCloakMiddleware

func NewKeyCloakMiddleware(config KeyCloakConfig) *keyCloakMiddleware

Types

type KeyCloakConfig

type KeyCloakConfig struct {
	KeyCloakIP   string `mapstructure:"key_cloak_ip" json:"key_cloak_ip" yaml:"key_cloak_ip"`
	Realm        string `mapstructure:"realm" json:"realm" yaml:"realm"`
	ClientID     string `mapstructure:"client_id" json:"client_id" yaml:"client_id"`
	ClientSecret string `mapstructure:"client_secret" json:"client_secret" yaml:"client_secret"`
}

type Middleware

type Middleware interface {
	ResourceAccess(args ...string) (r Middleware)
	RealmAccess(args ...string) (r Middleware)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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