Skip to content

Commit f22f743

Browse files
feat(iam): add support for SAML (scaleway#5060)
Co-authored-by: Jonathan Remy <[email protected]>
1 parent ed93d0c commit f22f743

14 files changed

+609
-17
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Enable SAML Identity Provider for an Organization.
4+
5+
USAGE:
6+
scw iam organization enable-saml [arg=value ...]
7+
8+
ARGS:
9+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
10+
11+
FLAGS:
12+
-h, --help help for enable-saml
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get SAML Identity Provider configuration of an Organization.
4+
5+
USAGE:
6+
scw iam organization get-saml [arg=value ...]
7+
8+
ARGS:
9+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
10+
11+
FLAGS:
12+
-h, --help help for get-saml
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-iam-organization-usage.golden

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
Organization-wide management commands.
44

55
USAGE:
6-
scw iam organization
6+
scw iam organization <command>
7+
8+
AVAILABLE COMMANDS:
9+
enable-saml Enable SAML Identity Provider for an Organization
10+
get-saml Get SAML Identity Provider configuration of an Organization
711

812
FLAGS:
913
-h, --help help for organization
@@ -13,3 +17,5 @@ GLOBAL FLAGS:
1317
-D, --debug Enable debug mode
1418
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
1519
-p, --profile string The config profile to use
20+
21+
Use "scw iam organization [command] --help" for more information about a command.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Add a SAML certificate.
4+
5+
USAGE:
6+
scw iam saml-certificates add <saml-id ...> [arg=value ...]
7+
8+
ARGS:
9+
saml-id ID of the SAML configuration
10+
type Type of the SAML certificate (unknown_certificate_type | signing | encryption)
11+
content Content of the SAML certificate
12+
13+
FLAGS:
14+
-h, --help help for add
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete a SAML certificate.
4+
5+
USAGE:
6+
scw iam saml-certificates delete <certificate-id ...> [arg=value ...]
7+
8+
ARGS:
9+
certificate-id ID of the certificate to delete
10+
11+
FLAGS:
12+
-h, --help help for delete
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List SAML certificates.
4+
5+
USAGE:
6+
scw iam saml-certificates list <saml-id ...> [arg=value ...]
7+
8+
ARGS:
9+
saml-id ID of the SAML configuration
10+
11+
FLAGS:
12+
-h, --help help for list
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
SAML Certificates management commands.
4+
5+
USAGE:
6+
scw iam saml-certificates <command>
7+
8+
AVAILABLE COMMANDS:
9+
add Add a SAML certificate
10+
delete Delete a SAML certificate
11+
list List SAML certificates
12+
13+
FLAGS:
14+
-h, --help help for saml-certificates
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
21+
22+
Use "scw iam saml-certificates [command] --help" for more information about a command.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Disable SAML Identity Provider for an Organization.
4+
5+
USAGE:
6+
scw iam saml delete <saml-id ...> [arg=value ...]
7+
8+
ARGS:
9+
saml-id ID of the SAML configuration
10+
11+
FLAGS:
12+
-h, --help help for delete
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update SAML Identity Provider configuration.
4+
5+
USAGE:
6+
scw iam saml update <saml-id ...> [arg=value ...]
7+
8+
ARGS:
9+
saml-id ID of the SAML configuration
10+
[entity-id] Entity ID of the SAML Identity Provider
11+
[single-sign-on-url] Single Sign-On URL of the SAML Identity Provider
12+
13+
FLAGS:
14+
-h, --help help for update
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
SAML management commands.
4+
5+
USAGE:
6+
scw iam saml <command>
7+
8+
AVAILABLE COMMANDS:
9+
delete Disable SAML Identity Provider for an Organization
10+
update Update SAML Identity Provider configuration
11+
12+
FLAGS:
13+
-h, --help help for saml
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
20+
21+
Use "scw iam saml [command] --help" for more information about a command.

0 commit comments

Comments
 (0)