mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: ensure OAuth2 refresh tokens outlive access tokens (#19769)
This commit is contained in:
@@ -350,6 +350,11 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
|
||||
return xerrors.Errorf("access-url must include a scheme (e.g. 'http://' or 'https://)")
|
||||
}
|
||||
|
||||
// Cross-field configuration validation after initial parsing.
|
||||
if err := vals.Validate(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Disable rate limits if the `--dangerous-disable-rate-limits` flag
|
||||
// was specified.
|
||||
loginRateLimit := 60
|
||||
|
||||
Reference in New Issue
Block a user