-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dbf0e3
commit 63f2d7e
Showing
21 changed files
with
1,325 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -316,6 +316,22 @@ groups = [ | |
] | ||
``` | ||
|
||
```bash | ||
cargo run -p rfd-cli mapper create --json-body /dev/stdin <<EOM | ||
{ | ||
"name": "add_email_address", | ||
"max_activations": 1, | ||
"rule": { | ||
"rule": "email_address", | ||
"email": "[email protected]", | ||
"groups": [ | ||
"admin" | ||
] | ||
} | ||
} | ||
EOM | ||
``` | ||
|
||
**Email Domain** - Maps from a email domain to a list of permissions and/or list of groups. This | ||
mapper can be | ||
used with GitHub or Google. | ||
|
@@ -330,6 +346,22 @@ groups = [ | |
] | ||
``` | ||
|
||
```bash | ||
cargo run -p rfd-cli mapper create --json-body /dev/stdin <<EOM | ||
{ | ||
"name": "add_email_domain", | ||
"max_activations": 5, | ||
"rule": { | ||
"rule": "email_domain", | ||
"domain": "domain.com", | ||
"groups": [ | ||
"company-employee" | ||
] | ||
} | ||
} | ||
EOM | ||
``` | ||
|
||
**GitHub Username** - Maps from a GitHub username to a list of permissions and/or list of groups. | ||
As expected, this mapper can only succeed with a GitHub provider. | ||
|
||
|
@@ -341,4 +373,20 @@ domain = "githubuser" | |
groups = [ | ||
"friend-of-company" | ||
] | ||
``` | ||
|
||
```bash | ||
cargo run -p rfd-cli mapper create --json-body /dev/stdin <<EOM | ||
{ | ||
"name": "add_github_user", | ||
"max_activations": 1, | ||
"rule": { | ||
"rule": "git_hub_username", | ||
"github_username": "githubuser", | ||
"groups": [ | ||
"friend-of-company" | ||
] | ||
} | ||
} | ||
EOM | ||
``` |
Oops, something went wrong.