mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
parent
3d7206dc1e
commit
9de99d0211
8 changed files with 63 additions and 34 deletions
|
@ -112,6 +112,9 @@ type Options struct {
|
|||
// used for authentication requests and callbacks
|
||||
AuthenticateURLString string `mapstructure:"authenticate_service_url" yaml:"authenticate_service_url,omitempty"`
|
||||
AuthenticateURL *url.URL `yaml:"-,omitempty"`
|
||||
// SignOutRedirectURL represents the url that user will be redirected to after signing out.
|
||||
SignOutRedirectURLString string `mapstructure:"signout_redirect_url" yaml:"signout_redirect_url,omitempty"`
|
||||
SignOutRedirectURL *url.URL `yaml:"-,omitempty"`
|
||||
|
||||
// AuthenticateCallbackPath is the path to the HTTP endpoint that will
|
||||
// receive the response from your identity provider. The value must exactly
|
||||
|
@ -539,6 +542,14 @@ func (o *Options) Validate() error {
|
|||
o.AuthenticateURL = u
|
||||
}
|
||||
|
||||
if o.SignOutRedirectURLString != "" {
|
||||
u, err := urlutil.ParseAndValidateURL(o.SignOutRedirectURLString)
|
||||
if err != nil {
|
||||
return fmt.Errorf("config: bad signout-redirect-url %s : %w", o.SignOutRedirectURLString, err)
|
||||
}
|
||||
o.SignOutRedirectURL = u
|
||||
}
|
||||
|
||||
if o.AuthorizeURLString != "" {
|
||||
u, err := urlutil.ParseAndValidateURL(o.AuthorizeURLString)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue