You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for custom IDP endpoint and client ID (#400)
* Add support for custom IDP endpoint and client ID
* Add debug log for client ID
* Add warning when using custom IDP endpoint
* Handle error in PromptForEnter
* Remove IDO custom flags from command, will live only in config commands
* Improve flag documentation
* Improve flag documentation
* Validate custom IDP endpoint belongs to STACKIT
* Remove client ID custom endpoint
* Update docs
* Simplify code
* Remove unneeded debug log
* Simplify test
Copy file name to clipboardExpand all lines: docs/stackit_config_set.md
+21-20Lines changed: 21 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,26 +29,27 @@ stackit config set [flags]
29
29
### Options
30
30
31
31
```
32
-
--argus-custom-endpoint string Argus API base URL, used in calls to this API
33
-
--authorization-custom-endpoint string Authorization API base URL, used in calls to this API
34
-
--dns-custom-endpoint string DNS API base URL, used in calls to this API
35
-
-h, --help Help for "stackit config set"
36
-
--load-balancer-custom-endpoint string Load Balancer API base URL, used in calls to this API
37
-
--logme-custom-endpoint string LogMe API base URL, used in calls to this API
38
-
--mariadb-custom-endpoint string MariaDB API base URL, used in calls to this API
39
-
--mongodbflex-custom-endpoint string MongoDB Flex API base URL, used in calls to this API
40
-
--object-storage-custom-endpoint string Object Storage API base URL, used in calls to this API
41
-
--opensearch-custom-endpoint string OpenSearch API base URL, used in calls to this API
42
-
--postgresflex-custom-endpoint string PostgreSQL Flex API base URL, used in calls to this API
43
-
--rabbitmq-custom-endpoint string RabbitMQ API base URL, used in calls to this API
44
-
--redis-custom-endpoint string Redis API base URL, used in calls to this API
45
-
--resource-manager-custom-endpoint string Resource Manager API base URL, used in calls to this API
46
-
--secrets-manager-custom-endpoint string Secrets Manager API base URL, used in calls to this API
47
-
--serverbackup-custom-endpoint string Server Backup API base URL, used in calls to this API
48
-
--service-account-custom-endpoint string Service Account API base URL, used in calls to this API
49
-
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)
50
-
--ske-custom-endpoint string SKE API base URL, used in calls to this API
51
-
--sqlserverflex-custom-endpoint string SQLServer Flex API base URL, used in calls to this API
32
+
--argus-custom-endpoint string Argus API base URL, used in calls to this API
33
+
--authorization-custom-endpoint string Authorization API base URL, used in calls to this API
34
+
--dns-custom-endpoint string DNS API base URL, used in calls to this API
35
+
-h, --help Help for "stackit config set"
36
+
--identity-provider-custom-endpoint string Identity Provider base URL, used for user authentication
37
+
--load-balancer-custom-endpoint string Load Balancer API base URL, used in calls to this API
38
+
--logme-custom-endpoint string LogMe API base URL, used in calls to this API
39
+
--mariadb-custom-endpoint string MariaDB API base URL, used in calls to this API
40
+
--mongodbflex-custom-endpoint string MongoDB Flex API base URL, used in calls to this API
41
+
--object-storage-custom-endpoint string Object Storage API base URL, used in calls to this API
42
+
--opensearch-custom-endpoint string OpenSearch API base URL, used in calls to this API
43
+
--postgresflex-custom-endpoint string PostgreSQL Flex API base URL, used in calls to this API
44
+
--rabbitmq-custom-endpoint string RabbitMQ API base URL, used in calls to this API
45
+
--redis-custom-endpoint string Redis API base URL, used in calls to this API
46
+
--resource-manager-custom-endpoint string Resource Manager API base URL, used in calls to this API
47
+
--secrets-manager-custom-endpoint string Secrets Manager API base URL, used in calls to this API
48
+
--serverbackup-custom-endpoint string Server Backup API base URL, used in calls to this API
49
+
--service-account-custom-endpoint string Service Account API base URL, used in calls to this API
50
+
--session-time-limit string Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)
51
+
--ske-custom-endpoint string SKE API base URL, used in calls to this API
52
+
--sqlserverflex-custom-endpoint string SQLServer Flex API base URL, used in calls to this API
@@ -124,7 +125,7 @@ Use "{{.CommandPath}} [command] --help" for more information about a command.{{e
124
125
125
126
funcconfigureFlags(cmd*cobra.Command) {
126
127
cmd.Flags().String(sessionTimeLimitFlag, "", "Maximum time before authentication is required again. After this time, you will be prompted to login again to execute commands that require authentication. Can't be larger than 24h. Requires authentication after being set to take effect. Examples: 3h, 5h30m40s (BETA: currently values greater than 2h have no effect)")
127
-
128
+
cmd.Flags().String(identityProviderCustomEndpointFlag, "", "Identity Provider base URL, used for user authentication")
128
129
cmd.Flags().String(argusCustomEndpointFlag, "", "Argus API base URL, used in calls to this API")
129
130
cmd.Flags().String(authorizationCustomEndpointFlag, "", "Authorization API base URL, used in calls to this API")
130
131
cmd.Flags().String(dnsCustomEndpointFlag, "", "DNS API base URL, used in calls to this API")
cmd.Flags().Bool(sessionTimeLimitFlag, false, fmt.Sprintf("Maximum time before authentication is required again. If unset, defaults to %s", config.SessionTimeLimitDefault))
179
185
cmd.Flags().Bool(verbosityFlag, false, "Verbosity of the CLI")
180
186
187
+
cmd.Flags().Bool(sessionTimeLimitFlag, false, fmt.Sprintf("Maximum time before authentication is required again. If unset, defaults to %s", config.SessionTimeLimitDefault))
188
+
cmd.Flags().Bool(identityProviderCustomEndpointFlag, false, "Identity Provider base URL. If unset, uses the default base URL")
189
+
181
190
cmd.Flags().Bool(argusCustomEndpointFlag, false, "Argus API base URL. If unset, uses the default base URL")
182
191
cmd.Flags().Bool(authorizationCustomEndpointFlag, false, "Authorization API base URL. If unset, uses the default base URL")
183
192
cmd.Flags().Bool(dnsCustomEndpointFlag, false, "DNS API base URL. If unset, uses the default base URL")
0 commit comments