pkg

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 5 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 {
	api.Capability
	// contains filtered or unexported fields
}

WebCapability is type for representing api.Capability in the consent screen

func WebCapabilities

func WebCapabilities(cc api.Capabilities) (wc []WebCapability)

WebCapabilities creates a slice of WebCapability from api.Capabilities

func (WebCapability) CapabilityLevel

func (c WebCapability) CapabilityLevel() string

CapabilityLevel returns a string describing the power of this capability

func (WebCapability) ColorClass

func (c WebCapability) ColorClass() string

ColorClass returns the html class for coloring this Capability

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