routes

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package routes contains route handlers and logic for identity-api.

Package routes provides the routes for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipNoAuthRoutes added in v0.1.5

func SkipNoAuthRoutes(c echo.Context) bool

SkipNoAuthRoutes returns true if the requesting path should not have auth validated for it.

Types

type Option added in v0.1.5

type Option func(r *Router)

Option is a functional configuration option for the router

func WithAuditMiddleware added in v0.1.5

func WithAuditMiddleware(mw *echoaudit.Middleware) Option

WithAuditMiddleware sets the audit middleware for the router

func WithIssuer added in v0.1.5

func WithIssuer(issuer string) Option

WithIssuer sets the issuer for the router

func WithLogger added in v0.1.5

func WithLogger(logger *zap.SugaredLogger) Option

WithLogger sets the logger for the router

func WithOauthConfig added in v0.1.5

func WithOauthConfig(config fositex.OAuth2Configurator) Option

WithOauthConfig sets the fosite oauth2 configurator for the router

func WithProvider added in v0.1.5

func WithProvider(provider fosite.OAuth2Provider) Option

WithProvider sets the fosite provider for the router

type Router

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

Router is the router for the application.

func NewRouter

func NewRouter(opts ...Option) *Router

NewRouter creates a new router

func (*Router) Routes

func (r *Router) Routes(rg *echo.Group)

Routes registers the routes for the application.

Jump to

Keyboard shortcuts

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