Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonMTOptions ¶ added in v0.2.0
type CommonMTOptions struct {
PTOptions
TransferCode string `long:"TC" description:"Use the passed transfer code to exchange it into a mytoken"`
OIDCFlow string `` /* 168-byte string literal not displayed */
Capabilities []string `long:"capability" default:"default" description:"Request the passed capabilities. Can be used multiple times"`
SubtokenCapabilities []string `long:"subtoken-capability" description:"Request the passed subtoken capabilities. Can be used multiple times"`
Restrictions string `` /* 180-byte string literal not displayed */
RestrictScopes []string `` /* 177-byte string literal not displayed */
RestrictAudiences []string `` /* 168-byte string literal not displayed */
RestrictExp string `` /* 242-byte string literal not displayed */
RestrictNbf string `` /* 243-byte string literal not displayed */
RestrictIP []string `` /* 164-byte string literal not displayed */
RestrictGeoIPAllow []string `` /* 174-byte string literal not displayed */
RestrictGeoIPDisallow []string `` /* 175-byte string literal not displayed */
RestrictUsagesOther *int64 `` /* 127-byte string literal not displayed */
RestrictUsagesAT *int64 `long:"usages-at" description:"Restrict how often the mytoken can be used for requesting an access token."`
}
type PTOptions ¶ added in v0.2.0
type PTOptions struct {
Provider string `short:"i" long:"provider" description:"The name or issuer url of the OpenID provider that should be used"`
Name string `short:"t" long:"name" description:"The name of the mytoken that should be used"`
Mytoken *string `` /* 215-byte string literal not displayed */
MytokenFile string `long:"MT-file" description:"Read the mytoken that should be used from the first line of the passed file"`
MytokenEnv string `long:"MT-env" description:"Read the mytoken that should be used from the passed environment variable"`
}
PTOptions holds command line options that can be used with all commands
Click to show internal directories.
Click to hide internal directories.