1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2024-11-24 08:52:25 +02:00

make unable to fetch user a warning message

This commit is contained in:
Benjamin Chess 2019-05-08 08:29:38 -07:00
parent 3f2fab10e6
commit 7179c5796a

View File

@ -186,7 +186,7 @@ func getAdminService(adminEmail string, credentialsReader io.Reader) *admin.Serv
func userInGroup(service *admin.Service, groups []string, email string) bool {
user, err := fetchUser(service, email)
if err != nil {
logger.Printf("error fetching user: %v", err)
logger.Printf("Warning: unable to fetch user: %v", err)
user = nil
}