zitadelgin

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 5 Imported by: 0

README

ZITADEL gin's middleware

Gin middleware for ZITADEL

Usage

Start using it

Download and install it:

go get github.com/panapol-p/zitadel-gin

Import it in your code:

import "github.com/panapol-p/zitadel-gin"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor[T authorization.Ctx] struct {
	// contains filtered or unexported fields
}

func NewZitadelGin

func NewZitadelGin[T authorization.Ctx](authorizer *authorization.Authorizer[T]) *Interceptor[T]

func (*Interceptor[T]) Context

func (i *Interceptor[T]) Context(ctx context.Context) T

func (*Interceptor[T]) RequireAuthorization

func (i *Interceptor[T]) RequireAuthorization(options ...authorization.CheckOption) gin.HandlerFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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