consent

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SPAHandler fiber.Handler

SPAHandler is set by the server package when SPA is enabled This allows the consent handler to delegate to the SPA for HTML requests

Functions

func HandleConsent

func HandleConsent(ctx *fiber.Ctx) error

HandleConsent displays a consent page or returns JSON for SPA

func HandleConsentAPI added in v0.11.0

func HandleConsentAPI(ctx *fiber.Ctx) error

HandleConsentAPI returns consent data as JSON for SPA API requests

func HandleConsentPost

func HandleConsentPost(ctx *fiber.Ctx) *model.Response

HandleConsentPost handles consent confirmation requests

func HandleCreateConsent added in v0.5.0

func HandleCreateConsent(ctx *fiber.Ctx) error

HandleCreateConsent returns consent data as JSON for the posted parameters

Types

type ConsentInfoResponse added in v0.11.0

type ConsentInfoResponse struct {
	Issuer          string                       `json:"oidc_issuer"`
	ApplicationName string                       `json:"application_name,omitempty"`
	TokenName       string                       `json:"token_name,omitempty"`
	Capabilities    api.Capabilities             `json:"capabilities"`
	Restrictions    restrictions.Restrictions    `json:"restrictions,omitempty"`
	Rotation        *api.Rotation                `json:"rotation,omitempty"`
	Tags            []api.CreateMytokenTag       `json:"tags,omitempty"`
	SupportedScopes []string                     `json:"supported_scopes,omitempty"`
	AllCapabilities []*webentities.WebCapability `json:"all_capabilities"`
}

ConsentInfoResponse is the JSON response for consent data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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