pkg

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsentPostRequest

type ConsentPostRequest struct {
	Issuer               string                    `json:"oidc_iss"`
	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"`
}

ConsentPostRequest holds the post request for confirming consent

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

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

Jump to

Keyboard shortcuts

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