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
Copy file name to clipboardExpand all lines: cmd/scw/testdata/test-all-usage-login-usage.golden
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ USAGE:
8
8
scw login [arg=value ...]
9
9
10
10
ARGS:
11
-
[port] The port number used to wait for browser's response
11
+
[port] The port number used to wait for browser's response
12
+
[expires-at] Expiration date of the API key (ISO 8601 or relative like +1y, +90d). Required when your organization enforces max-api-key-expiration-duration.
Copy file name to clipboardExpand all lines: internal/namespaces/login/login.go
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ type loginArgs struct {
25
25
Portint`json:"port"`
26
26
// PrintURL will print the account url instead of trying to open it with a browser
27
27
PrintURLbool`json:"print_url"`
28
+
// ExpiresAt is the expiration date of the API key created during login
29
+
ExpiresAt*time.Time`json:"expires_at"`
28
30
}
29
31
30
32
funcloginCommand() *core.Command {
@@ -43,6 +45,10 @@ Once you connected to Scaleway, the profile should be configured.
43
45
Name: "port",
44
46
Short: "The port number used to wait for browser's response",
45
47
},
48
+
{
49
+
Name: "expires-at",
50
+
Short: "Expiration date of the API key (ISO 8601 or relative like +1y, +90d). Required when your organization enforces max-api-key-expiration-duration.",
51
+
},
46
52
},
47
53
SeeAlsos: []*core.SeeAlso{
48
54
{
@@ -106,10 +112,14 @@ Once you connected to Scaleway, the profile should be configured.
0 commit comments