Skip to content

Commit

Permalink
Change authentication timeout to 180 sec (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Sep 28, 2020
1 parent e543a7b commit 257c05d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Flags:
--grant-type string Authorization grant type to use. One of (auto|authcode|authcode-keyboard|password) (default "auto")
--listen-address strings [authcode] Address to bind to the local server. If multiple addresses are set, it will try binding in order (default [127.0.0.1:8000,127.0.0.1:18000])
--skip-open-browser [authcode] Do not open the browser automatically
--authentication-timeout-sec int [authcode] Timeout of authentication in seconds (default 60)
--authentication-timeout-sec int [authcode] Timeout of authentication in seconds (default 180)
--local-server-cert string [authcode] Certificate path for the local server
--local-server-key string [authcode] Certificate key path for the local server
--open-url-after-authentication string [authcode] If set, open the URL in the browser after authentication
Expand Down Expand Up @@ -48,12 +48,12 @@ Global Flags:

### Authentication timeout

By default, you need to log in to your provider on the browser within 60 seconds.
By default, you need to log in to your provider in the browser within 3 minutes.
This prevents a process from remaining forever.
You can change the timeout by the following flag:

```yaml
- --authentication-timeout-sec=3600
- --authentication-timeout-sec=60
```
For now this timeout works only for the authorization code flow.
Expand Down
2 changes: 1 addition & 1 deletion pkg/adaptors/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type Interface interface {
var defaultListenAddress = []string{"127.0.0.1:8000", "127.0.0.1:18000"}
var defaultTokenCacheDir = homedir.HomeDir() + "/.kube/cache/oidc-login"

const defaultAuthenticationTimeoutSec = 60
const defaultAuthenticationTimeoutSec = 180

// Cmd provides interaction with command line interface (CLI).
type Cmd struct {
Expand Down

0 comments on commit 257c05d

Please sign in to comment.