Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsentApprovalRequest ¶ added in v0.5.0
type ConsentApprovalRequest struct { Issuer string `json:"oidc_issuer"` Restrictions restrictions.Restrictions `json:"restrictions"` Capabilities api.Capabilities `json:"capabilities"` SubtokenCapabilities api.Capabilities `json:"subtoken_capabilities"` TokenName string `json:"name"` Rotation *api.Rotation `json:"rotation,omitempty"` }
ConsentApprovalRequest holds the post request for confirming consent
type ConsentRequest ¶ added in v0.5.0
type ConsentRequest struct { ConsentApprovalRequest ApplicationName string `json:"application_name"` Mytoken universalmytoken.UniversalMytoken `json:"mytoken"` }
ConsentRequest holds the post request for creating a consent screen
type WebCapability ¶
type WebCapability struct { ReadWriteCapability webCapability ReadOnlyCapability *webCapability Children []*WebCapability }
WebCapability is type for representing api.Capability in the consent screen
func AllWebCapabilities ¶ added in v0.4.0
func AllWebCapabilities() []*WebCapability
AllWebCapabilities returns all WebCapabilities as a tree
func WebCapabilities ¶
func WebCapabilities(cc api.Capabilities) (wc []*WebCapability)
WebCapabilities creates a slice of WebCapability from api.Capabilities
func (WebCapability) IsCreateMT ¶
func (c WebCapability) IsCreateMT() bool
IsCreateMT checks if this WebCapability is api.CapabilityCreateMT skipcq: CRT-P0003
type WebRestrictions ¶
type WebRestrictions struct { restrictions.Restrictions // contains filtered or unexported fields }
WebRestrictions a type for representing restrictions.Restrictions in the consent screen
func (WebRestrictions) ScopeColorClass ¶
func (r WebRestrictions) ScopeColorClass() string
ScopeColorClass returns the html class for coloring the scope dimension
func (WebRestrictions) ScopeDescription ¶
func (r WebRestrictions) ScopeDescription() string
ScopeDescription returns a string describing the state of the scope dimension
func (WebRestrictions) Text ¶
func (r WebRestrictions) Text() string
Text returns a textual (json) representation of this WebRestrictions
func (WebRestrictions) TimeColorClass ¶
func (r WebRestrictions) TimeColorClass() string
TimeColorClass returns the html class for coloring the time dimension
func (WebRestrictions) TimeDescription ¶
func (r WebRestrictions) TimeDescription() string
TimeDescription returns a string describing the state of the time dimension