-
Notifications
You must be signed in to change notification settings - Fork 3k
Add token support #3417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi,
returns
then you can get all websites for example via:
returns
|
@tilalx thanks very much, really helpful ! But this method relies on your account and password, which can sometimes be insecure. |
Thanks @tilalx, couldn't find any relaterd information on how to process token retrieval. Is it documented somewhere that I missed ? |
once you have created a token, you dont need to use the user/pass anymore.
also for docs, ive been using this location, to work out what to do .. |
Thank you, this is really helpful. |
Is the "expiresIn" actively working for you? No matter what I've tried, I cannot get it to expire any later than 1 day. |
Replace "expiresIn":"1y" with "expiry": "1y". When I do this, it returns the following response: |
Hello @tilalx ! I came across your post trying to understand JWT Authentication.
Can NPM also automatically authenticate and fetch the Token to bypass the login screen ? |
For anyone reading this as of today,
|
Update expiry in code changing from NPM - expiry has to be passed in as a query param instead of request body. https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/backend/routes/tokens.js#L28 NginxProxyManager/nginx-proxy-manager#3417 (comment)
I have updated my script using http://localhost:81/api/tokens?expiry=10y, but the token still expires after one day. I also tried:
However, it still expires after one day. Has anyone else encountered this issue @rahulparekh ? |
Try this: |
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
By adding token support, we are able to retrieve information, such as lists of websites, using tokens through API requests.
The text was updated successfully, but these errors were encountered: