mirror of
https://github.com/openziti/zrok.git
synced 2025-01-22 05:48:46 +01:00
only allow --oauth-provider for 'zrok reserve public'; changelog (#421)
This commit is contained in:
parent
9f018e730f
commit
aba9f68348
@ -1,3 +1,7 @@
|
||||
# v0.4.11
|
||||
|
||||
FIX: Include `--oauth-provider` and associated flags for the `zrok reserve` command, allowing reserved shares to specify OAuth authentication (https://github.com/openziti/zrok/issues/421)
|
||||
|
||||
# v0.4.10
|
||||
|
||||
CHANGE: The public frontend configuration has been bumped from `v: 2` to `v: 3`. The `redirect_host`, `redirect_port` and `redirect_http_only` parameters have been removed. These three configuration options have been replaced with `bind_address`, `redirect_url` and `cookie_domain`. See the OAuth configuration guide at `docs/guides/self-hosting/oauth/configuring-oauth.md` for more details (https://github.com/openziti/zrok/issues/411)
|
||||
|
@ -100,6 +100,9 @@ func (cmd *reserveCommand) run(_ *cobra.Command, args []string) {
|
||||
req.Frontends = cmd.frontendSelection
|
||||
}
|
||||
if cmd.oauthProvider != "" {
|
||||
if shareMode != sdk.PublicShareMode {
|
||||
tui.Error("--oauth-provider only supported for public shares", nil)
|
||||
}
|
||||
req.OauthProvider = cmd.oauthProvider
|
||||
req.OauthEmailDomains = cmd.oauthEmailDomains
|
||||
req.OauthAuthorizationCheckInterval = cmd.oauthCheckInterval
|
||||
|
Loading…
Reference in New Issue
Block a user