mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-05 12:23:03 +02:00
authorize: remove admin (#1833)
* authorize: remove admin * regen rego * add note to upgrading
This commit is contained in:
parent
a5a3ab55fc
commit
b7f0242090
17 changed files with 204 additions and 381 deletions
|
@ -430,12 +430,6 @@ func (a *Authenticate) deleteSession(ctx context.Context, sessionID string) erro
|
|||
return session.Delete(ctx, state.dataBrokerClient, sessionID)
|
||||
}
|
||||
|
||||
func (a *Authenticate) isAdmin(user string) bool {
|
||||
state := a.state.Load()
|
||||
_, ok := state.administrators[user]
|
||||
return ok
|
||||
}
|
||||
|
||||
func (a *Authenticate) userInfo(w http.ResponseWriter, r *http.Request) error {
|
||||
ctx, span := trace.StartSpan(r.Context(), "authenticate.userInfo")
|
||||
defer span.End()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue