Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RiotGames/key-conjurer
/ functions
Functions
171 in github.com/RiotGames/key-conjurer
⨍
Functions
171
◇
Types & classes
41
↓ 13 callers
Method
Error
()
command/error.go:44
↓ 13 callers
Method
FindAccount
(name string)
command/config.go:247
↓ 11 callers
Method
ValidUntil
(account *Account, dur time.Duration)
command/credentials.go:61
↓ 9 callers
Function
ConfigFromCommand
(cmd *cobra.Command)
command/context.go:11
↓ 9 callers
Method
ExportEnvironmentVariable
(w io.Writer, key, value string)
command/credentials.go:97
↓ 9 callers
Method
Parse
(cmd *cobra.Command, args []string)
command/get.go:72
↓ 8 callers
Method
Add
Add adds an account to the set.
command/config.go:82
↓ 7 callers
Method
Close
()
pkg/oauth2cli/handler.go:123
↓ 7 callers
Method
Resolve
(name string)
command/config.go:103
↓ 6 callers
Function
LoadAWSCredentialsFromEnvironment
()
command/credentials.go:51
↓ 5 callers
Function
ServeJSONError
(w *events.ALBTargetGroupResponse, statusCode int, msg string)
internal/api/json.go:31
↓ 5 callers
Function
getAttribute
(attrs []html.Attribute, key string)
internal/oktawebsso/html.go:31
↓ 5 callers
Function
setEnv
(t *testing.T, valid bool)
command/credentials_test.go:10
↓ 4 callers
Method
Encode
Encode writes the config to the file provided overwriting the file if it exists
command/config.go:196
↓ 4 callers
Function
FindFirstForm
FindFirstForm finds the first form within the given HTML document and returns it, or false if it doesn't exist.
internal/oktawebsso/html.go:101
↓ 4 callers
Method
IsNameMatch
(name string)
command/config.go:33
↓ 4 callers
Method
Set
(key, value string)
internal/oktawebsso/html.go:15
↓ 4 callers
Function
Walk
Walk traverses the given HTML node and calls the function walker on each one encountered. Walk will continue executing until walker returns false or
internal/oktawebsso/html.go:71
↓ 4 callers
Function
execute
(cmd *cobra.Command, args ...string)
command/root_test.go:21
↓ 4 callers
Function
findFirstFreePort
findFirstFreePort will attempt to open a network listener for each port in turn, and return the first one that succeeded. If none succeed, ErrNoPorts
command/login.go:142
↓ 4 callers
Function
resetCobra
Required to reset Cobra state between Test runs. If you add new tests that change state, you may need to add code here to reset the side effects of ot
command/root_test.go:16
↓ 3 callers
Method
Alias
(id, name string)
command/config.go:229
↓ 3 callers
Function
NewCloudCliEntry
(c CloudCredentials, a *Account, profileName string)
command/awsconfig.go:20
↓ 3 callers
Function
ShouldUseMachineOutput
ShouldUseMachineOutput indicates whether or not we should write to standard output as if the user is a machine. What this means is implementation spe
command/login.go:54
↓ 3 callers
Method
UpdateAccounts
(entries []Account)
command/config.go:260
↓ 3 callers
Method
Wait
(ctx context.Context, state, verifier string)
pkg/oauth2cli/handler.go:107
↓ 3 callers
Function
findConfigPath
()
command/config.go:276
↓ 3 callers
Function
findRoleInSAML
(roleName string, response *saml.Response)
command/roles.go:59
↓ 3 callers
Function
tryParseTimeToLiveError
tryParseTimeToLiveError attempts to parse an error related to the DurationSeconds field in the STS request. If the given error does relate to the spe
command/error.go:153
↓ 2 callers
Method
AddAccount
(id string, account Account)
command/config.go:221
↓ 2 callers
Method
AddToken
(code string, token *oauth2.Token)
pkg/oauth2cli/authorizationcode_test.go:19
↓ 2 callers
Method
Code
()
command/error.go:135
↓ 2 callers
Function
DiscoverConfigAndExchangeTokenForAssertion
(ctx context.Context, ts oauth2.TokenSource, oidcDomain, clientID, applicationID string)
pkg/oauth2cli/authorizationcode.go:72
↓ 2 callers
Method
DumpAccounts
(w io.Writer, withHeaders bool)
command/config.go:264
↓ 2 callers
Method
Exchange
(ctx context.Context, code string, params ...oauth2.AuthCodeOption)
pkg/oauth2cli/handler.go:27
↓ 2 callers
Method
Execute
(ctx context.Context, config *Config)
command/login.go:77
↓ 2 callers
Method
Execute
(ctx context.Context, config *Config)
command/get.go:113
↓ 2 callers
Method
NormalizeName
()
command/config.go:23
↓ 2 callers
Method
Parse
(flags *pflag.FlagSet, args []string)
command/switch.go:67
↓ 2 callers
Function
SaveCloudCredentialInCLI
(cloudCliPath string, entry CloudCliEntry)
command/awsconfig.go:67
↓ 2 callers
Method
ServeHTTP
(w http.ResponseWriter, req *http.Request)
pkg/oauth2cli/handler.go:59
↓ 2 callers
Function
ServeJSON
(w *events.ALBTargetGroupResponse, data T)
internal/api/json.go:11
↓ 2 callers
Method
Unalias
(name string)
command/config.go:238
↓ 2 callers
Method
Verify
(state string, code *string)
pkg/oauth2cli/handler.go:135
↓ 2 callers
Method
WriteFormat
(w io.Writer, format ShellType)
command/credentials.go:100
↓ 2 callers
Method
fetchNewCredentials
(ctx context.Context, account Account, cfg *Config)
command/get.go:173
↓ 2 callers
Function
generateDefaultAlias
(name string)
command/config.go:55
↓ 2 callers
Function
getARN
(value string)
command/roles.go:44
↓ 2 callers
Function
getAccountCredentialFromKeychain
()
command/keychain.go:30
↓ 2 callers
Function
isKeychainLockedErr
(err error)
command/keychain_win.go:5
↓ 2 callers
Function
saveCredentialEntry
(file *ini.File, entry CloudCliEntry)
command/awsconfig.go:59
↓ 1 callers
Method
Code
()
command/error.go:45
↓ 1 callers
Function
ConfigContext
(ctx context.Context, config *Config)
command/context.go:15
↓ 1 callers
Method
Decode
Decode populates all member values of config using default values where needed
command/config.go:202
↓ 1 callers
Function
DiscoverConfig
(ctx context.Context, domain, clientID string)
pkg/oauth2cli/authorizationcode.go:22
↓ 1 callers
Function
ExchangeAccessToken
ExchangeAccessToken exchanges an OAuth2 token for an Okta Web SSO token. The OAuth2 token source must have been retrieved from an OIDC flow, or ErrNo
internal/oktawebsso/websso.go:29
↓ 1 callers
Function
Execute
(ctx context.Context, args []string)
command/root.go:90
↓ 1 callers
Method
Execute
(ctx context.Context)
command/switch.go:92
↓ 1 callers
Function
FindOktaHeaders
(r *http.Response)
command/log.go:13
↓ 1 callers
Method
ForEach
(f func(id string, account Account, alias string))
command/config.go:65
↓ 1 callers
Function
GetExitCode
(err error)
command/error.go:172
↓ 1 callers
Function
GetSAMLAssertion
GetSAMLAssertion is an Okta-specific API which exchanges an Okta Web SSO token, which is obtained by exchanging an OAuth2 token using the RFC8693 Toke
internal/oktawebsso/websso.go:55
↓ 1 callers
Method
HandlePendingSession
(ctx context.Context, listener net.Listener)
pkg/oauth2cli/authorizationcode.go:55
↓ 1 callers
Method
Handler
()
internal/api/serverless_functions.go:84
↓ 1 callers
Function
IsWindowsPortAccessError
IsWindowsPortAccessError determines if the given error is the error WSAEACCES.
main.go:26
↓ 1 callers
Method
ListApplicationsForUser
(ctx context.Context, user string)
internal/api/serverless_functions.go:22
↓ 1 callers
Function
NewAuthorizationCodeHandler
(cfg *oauth2.Config, serveURL func(string) error)
pkg/oauth2cli/authorizationcode.go:43
↓ 1 callers
Function
NewOktaService
(domain *url.URL, token string)
internal/api/okta.go:19
↓ 1 callers
Method
Parse
(flags *pflag.FlagSet, args []string)
command/login.go:68
↓ 1 callers
Method
ReplaceWith
(other []Account)
command/config.go:146
↓ 1 callers
Function
RequestAttrs
RequestAttrs returns attributes to be used with slog for the given request. []any is returned instead of []slog.Attr to make it easier to supply the
internal/api/http.go:17
↓ 1 callers
Function
ResolveAWSCredentialsPath
(rootPath string)
command/awsconfig.go:50
↓ 1 callers
Function
ServeUserApplications
(okta OktaService, idp *oidc.Provider)
internal/api/serverless_functions.go:88
↓ 1 callers
Method
Token
()
command/keychain.go:64
↓ 1 callers
Function
TouchFile
(path string)
command/awsconfig.go:37
↓ 1 callers
Function
UnknownAccountError
(accountID, bypassCacheFlag string)
command/error.go:70
↓ 1 callers
Function
UnknownRoleError
(role, applicationID string)
command/error.go:63
↓ 1 callers
Method
Validate
()
command/switch.go:80
↓ 1 callers
Method
Validate
()
command/get.go:98
↓ 1 callers
Method
WriteTable
(w io.Writer, withHeaders bool)
command/config.go:172
↓ 1 callers
Function
checkKeychainLocked
()
command/keychain.go:25
↓ 1 callers
Function
collectFormValues
(node *html.Node)
internal/oktawebsso/html.go:75
↓ 1 callers
Function
echoCredentials
(account *Account, profileName string, credentials CloudCredentials, outputType, shellType, cliPath string)
command/get.go:237
↓ 1 callers
Function
ensureConfigFileExists
(fp string)
command/config.go:268
↓ 1 callers
Function
generateState
()
pkg/oauth2cli/authorizationcode.go:37
↓ 1 callers
Function
getAWSCredentials
(ctx context.Context, accountID, roleSessionName string)
command/switch.go:114
↓ 1 callers
Function
getCloudCliCredentialsFile
(path string)
command/awsconfig.go:41
↓ 1 callers
Function
getShellType
()
command/credentials.go:23
↓ 1 callers
Function
listRoles
(response *saml.Response)
command/roles.go:97
↓ 1 callers
Function
loadConfig
()
command/config.go:284
↓ 1 callers
Method
printUsage
()
command/get.go:109
↓ 1 callers
Function
putAccountCredentialInKeychain
(tok *oauth2.Token, idToken string)
command/keychain.go:49
↓ 1 callers
Function
refreshAccounts
(ctx context.Context, serverAddr *url.URL, ts oauth2.TokenSource)
command/accounts.go:68
↓ 1 callers
Function
requestTokenSource
(r events.ALBTargetGroupRequest)
internal/api/http.go:31
↓ 1 callers
Function
resolveApplicationInfo
(cfg *Config, bypassCache bool, nameOrID string)
command/get.go:54
↓ 1 callers
Function
saveConfig
(config *Config)
command/config.go:300
↓ 1 callers
Function
walkInner
(node *html.Node, walker func(node *html.Node) bool)
internal/oktawebsso/html.go:41
Method
Alias
(id, name string)
command/config.go:117
Function
App
()
frontend/src/App.tsx:11
Method
Code
()
command/error.go:39
next →
1–100 of 171, ranked by callers