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 ¶
HandleConsent displays a consent page or returns JSON for SPA
func HandleConsentAPI ¶ added in v0.11.0
HandleConsentAPI returns consent data as JSON for SPA API requests
func HandleConsentPost ¶
HandleConsentPost handles consent confirmation requests
func HandleCreateConsent ¶ added in v0.5.0
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
Click to show internal directories.
Click to hide internal directories.