mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
authorize: allow access by user id (#1850)
This commit is contained in:
parent
7a5c4fd0f6
commit
25b697a13d
5 changed files with 55 additions and 3 deletions
17
pkg/grpc/config/config.go
Normal file
17
pkg/grpc/config/config.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package config
|
||||
|
||||
// IsSet returns true if one of the route redirect options has been chosen.
|
||||
func (rr *RouteRedirect) IsSet() bool {
|
||||
if rr == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return rr.StripQuery != nil ||
|
||||
rr.ResponseCode != nil ||
|
||||
rr.PrefixRewrite != nil ||
|
||||
rr.PathRedirect != nil ||
|
||||
rr.PortRedirect != nil ||
|
||||
rr.HostRedirect != nil ||
|
||||
rr.SchemeRedirect != nil ||
|
||||
rr.HttpsRedirect != nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue