-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add claim string & crystal payload validation (#112)
- Loading branch information
1 parent
89ef14d
commit d6198df
Showing
22 changed files
with
785 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
profile: cover.out | ||
|
||
local-prefix: "github.com/SneaksAndData/snd-cli-go" | ||
|
||
threshold: | ||
# file: 70 | ||
# package: 70 | ||
# total: 75 | ||
|
||
exclude: | ||
paths: | ||
- \.pb\.go$ # excludes all protobuf generated files | ||
- ^pkg/generated # exclude generated code | ||
- ^pkg/signals # exclude signal handlers from sample controller | ||
- hack/*.go # exclude hack folder | ||
- main.go # exclude main file | ||
- pkg/cmd/root/root.go # exclude root file | ||
- pkg/cmd/version/version.go # exclude version file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## snd completion | ||
|
||
Generate the autocompletion script for the specified shell | ||
|
||
### Synopsis | ||
|
||
Generate the autocompletion script for snd for the specified shell. | ||
See each sub-command's help for details on how to use the generated script. | ||
|
||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for completion | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--gen-docs Generate Markdown documentation for all commands | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [snd](snd.md) - SnD CLI | ||
* [snd completion bash](snd_completion_bash.md) - Generate the autocompletion script for bash | ||
* [snd completion fish](snd_completion_fish.md) - Generate the autocompletion script for fish | ||
* [snd completion powershell](snd_completion_powershell.md) - Generate the autocompletion script for powershell | ||
* [snd completion zsh](snd_completion_zsh.md) - Generate the autocompletion script for zsh | ||
|
||
###### Auto generated by spf13/cobra on 4-Nov-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
## snd completion bash | ||
|
||
Generate the autocompletion script for bash | ||
|
||
### Synopsis | ||
|
||
Generate the autocompletion script for the bash shell. | ||
|
||
This script depends on the 'bash-completion' package. | ||
If it is not installed already, you can install it via your OS's package manager. | ||
|
||
To load completions in your current shell session: | ||
|
||
source <(snd completion bash) | ||
|
||
To load completions for every new session, execute once: | ||
|
||
#### Linux: | ||
|
||
snd completion bash > /etc/bash_completion.d/snd | ||
|
||
#### macOS: | ||
|
||
snd completion bash > $(brew --prefix)/etc/bash_completion.d/snd | ||
|
||
You will need to start a new shell for this setup to take effect. | ||
|
||
|
||
``` | ||
snd completion bash | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for bash | ||
--no-descriptions disable completion descriptions | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--gen-docs Generate Markdown documentation for all commands | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [snd completion](snd_completion.md) - Generate the autocompletion script for the specified shell | ||
|
||
###### Auto generated by spf13/cobra on 4-Nov-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## snd completion fish | ||
|
||
Generate the autocompletion script for fish | ||
|
||
### Synopsis | ||
|
||
Generate the autocompletion script for the fish shell. | ||
|
||
To load completions in your current shell session: | ||
|
||
snd completion fish | source | ||
|
||
To load completions for every new session, execute once: | ||
|
||
snd completion fish > ~/.config/fish/completions/snd.fish | ||
|
||
You will need to start a new shell for this setup to take effect. | ||
|
||
|
||
``` | ||
snd completion fish [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for fish | ||
--no-descriptions disable completion descriptions | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--gen-docs Generate Markdown documentation for all commands | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [snd completion](snd_completion.md) - Generate the autocompletion script for the specified shell | ||
|
||
###### Auto generated by spf13/cobra on 4-Nov-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## snd completion powershell | ||
|
||
Generate the autocompletion script for powershell | ||
|
||
### Synopsis | ||
|
||
Generate the autocompletion script for powershell. | ||
|
||
To load completions in your current shell session: | ||
|
||
snd completion powershell | Out-String | Invoke-Expression | ||
|
||
To load completions for every new session, add the output of the above command | ||
to your powershell profile. | ||
|
||
|
||
``` | ||
snd completion powershell [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for powershell | ||
--no-descriptions disable completion descriptions | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--gen-docs Generate Markdown documentation for all commands | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [snd completion](snd_completion.md) - Generate the autocompletion script for the specified shell | ||
|
||
###### Auto generated by spf13/cobra on 4-Nov-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
## snd completion zsh | ||
|
||
Generate the autocompletion script for zsh | ||
|
||
### Synopsis | ||
|
||
Generate the autocompletion script for the zsh shell. | ||
|
||
If shell completion is not already enabled in your environment you will need | ||
to enable it. You can execute the following once: | ||
|
||
echo "autoload -U compinit; compinit" >> ~/.zshrc | ||
|
||
To load completions in your current shell session: | ||
|
||
source <(snd completion zsh) | ||
|
||
To load completions for every new session, execute once: | ||
|
||
#### Linux: | ||
|
||
snd completion zsh > "${fpath[1]}/_snd" | ||
|
||
#### macOS: | ||
|
||
snd completion zsh > $(brew --prefix)/share/zsh/site-functions/_snd | ||
|
||
You will need to start a new shell for this setup to take effect. | ||
|
||
|
||
``` | ||
snd completion zsh [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for zsh | ||
--no-descriptions disable completion descriptions | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--gen-docs Generate Markdown documentation for all commands | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [snd completion](snd_completion.md) - Generate the autocompletion script for the specified shell | ||
|
||
###### Auto generated by spf13/cobra on 4-Nov-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## snd dsr | ||
|
||
Manage DSR requests | ||
|
||
### Synopsis | ||
|
||
Manage DSR requests | ||
|
||
### Options | ||
|
||
``` | ||
-a, --auth-provider string Specify the OAuth provider name (default "azuread") | ||
--custom-auth-url string Specify the auth service uri | ||
--custom-service-url string Specify the service url (default "https://dsr-manager.%s.sneaksanddata.com") | ||
-e, --env string Target environment (default "awsp") | ||
-h, --help help for dsr | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--gen-docs Generate Markdown documentation for all commands | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [snd](snd.md) - SnD CLI | ||
* [snd dsr get](snd_dsr_get.md) - Retrieves occurrences of the specified email | ||
|
||
###### Auto generated by spf13/cobra on 4-Nov-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## snd dsr get | ||
|
||
Retrieves occurrences of the specified email | ||
|
||
``` | ||
snd dsr get [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
snd dsr get --email user@ecco.com | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--email string Specify the email | ||
-h, --help help for get | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-a, --auth-provider string Specify the OAuth provider name (default "azuread") | ||
--custom-auth-url string Specify the auth service uri | ||
--custom-service-url string Specify the service url (default "https://dsr-manager.%s.sneaksanddata.com") | ||
-e, --env string Target environment (default "awsp") | ||
--gen-docs Generate Markdown documentation for all commands | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [snd dsr](snd_dsr.md) - Manage DSR requests | ||
|
||
###### Auto generated by spf13/cobra on 4-Nov-2024 |
Oops, something went wrong.