[GH-ISSUE #1992] Problem with Access List and API App #1440

Closed
opened 2026-02-26 07:31:00 +03:00 by kerem · 4 comments
Owner

Originally created by @Jamyz on GitHub (Apr 11, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1992

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    No
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
In Access Lists

  • Satisfy Any & Pass Auth to Host are ON.
  • Authorization created with an Username and Password
  • Access with allow an IP fix and deny for all

Nginx Proxy Manager Version
2.9.18

Expected behavior
When i connect I have the box Authoriztion to enter the user and password. Works fine.
But When i try to login (nginxproxymanager or portainer for example) it´s impossible if the ip different from Access

When i try to login in portainer i have this error :
**level=info msg="2022/04/11 02:03:01 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]"
INFO 2022/04/11 02:03:01 [INFO] [cmd,main] Starting Portainer version 2.11.1

level=info msg="2022/04/11 02:03:01 [DEBUG] [internal,init] [message: start initialization monitor ]"
level=info msg="2022/04/11 02:03:01 [INFO] [http,server] [message: starting HTTPS server on port :9443]"
level=info msg="2022/04/11 02:03:01 [INFO] [http,server] [message: starting HTTP server on port :9000]"
level=info msg="2022/04/11 03:51:53 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)"
level=info msg="2022/04/11 05:34:46 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)"**

With nginxproxymanager :
[4/12/2022] [6:18:16 AM] [Express ] › ⚠ warning Existing token contained invalid user data
[4/12/2022] [6:18:23 AM] [Express ] › ⚠ warning Existing token contained invalid user data
[4/12/2022] [6:18:29 AM] [Express ] › ⚠ warning Existing token contained invalid user data

Maybe is because, portainer, homebridge, nginxproxymanager and other use api. So how use api with portainer for example ?

Operating System
Docker on Raspberry Pi 3

Originally created by @Jamyz on GitHub (Apr 11, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1992 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? No - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** In Access Lists - Satisfy Any & Pass Auth to Host are ON. - Authorization created with an Username and Password - Access with allow an IP fix and deny for all **Nginx Proxy Manager Version** 2.9.18 **Expected behavior** When i connect I have the box Authoriztion to enter the user and password. Works fine. But When i try to login (nginxproxymanager or portainer for example) it´s impossible if the ip different from Access When i try to login in portainer i have this error : **level=info msg="2022/04/11 02:03:01 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]" INFO 2022/04/11 02:03:01 [INFO] [cmd,main] Starting Portainer version 2.11.1 level=info msg="2022/04/11 02:03:01 [DEBUG] [internal,init] [message: start initialization monitor ]" level=info msg="2022/04/11 02:03:01 [INFO] [http,server] [message: starting HTTPS server on port :9443]" level=info msg="2022/04/11 02:03:01 [INFO] [http,server] [message: starting HTTP server on port :9000]" level=info msg="2022/04/11 03:51:53 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)" level=info msg="2022/04/11 05:34:46 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)"** With nginxproxymanager : [4/12/2022] [6:18:16 AM] [Express ] › ⚠ warning Existing token contained invalid user data [4/12/2022] [6:18:23 AM] [Express ] › ⚠ warning Existing token contained invalid user data [4/12/2022] [6:18:29 AM] [Express ] › ⚠ warning Existing token contained invalid user data Maybe is because, portainer, homebridge, nginxproxymanager and other use api. So how use api with portainer for example ? **Operating System** Docker on Raspberry Pi 3
kerem 2026-02-26 07:31:00 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@GVA-Guillaume commented on GitHub (Aug 4, 2023):

Hi , i have the same problem Existing token contained invalid user data

<!-- gh-comment-id:1665662116 --> @GVA-Guillaume commented on GitHub (Aug 4, 2023): Hi , i have the same problem Existing token contained invalid user data
Author
Owner

@rahul1996pp commented on GitHub (Aug 13, 2023):

you can fix this issue by adding this in .conf that you can found in this path "/data/nginx/proxy_host"

proxy_set_header Authorization $http_authorization;

<!-- gh-comment-id:1676462954 --> @rahul1996pp commented on GitHub (Aug 13, 2023): you can fix this issue by adding this in .conf that you can found in this path "/data/nginx/proxy_host" proxy_set_header Authorization $http_authorization;
Author
Owner

@github-actions[bot] commented on GitHub (Feb 19, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1951558844 --> @github-actions[bot] commented on GitHub (Feb 19, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Apr 4, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2777379250 --> @github-actions[bot] commented on GitHub (Apr 4, 2025): Issue was closed due to inactivity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1440
No description provided.