Comments (4)
I don't know Ngix too, but my host applied this configuration for me:
if ($http_authorization ~ "^(.*)"){
set $rule_0 1;
}
if ($rule_0 = "1"){
set $http_authorization %1;
}
from jwt-auth.
if ($http_authorization ~ "^(.*)"){
set $rule_0 1;
}
if ($rule_0 = "1"){
set $http_authorization %1;
}
Where do I have to add this code? In which file?
from jwt-auth.
For future reference, this goes in nginx's server block inside
server {
server_name yourdomain.com;
...rest of server block
if ($http_authorization ~ "^(.*)"){
set $rule_0 1;
}
if ($rule_0 = "1"){
set $http_authorization %1;
}
}
On Ubuntu default installations configuration files can be found under /etc/nginx/sites-available/
. On hosting companies if there's a panel there should be a place that let the user edit "Server Blocks"
from jwt-auth.
Hey @shayr1 @Demoxing is this now working on nginx for you with this config? If so we could add it to the readme.
from jwt-auth.
Related Issues (20)
- Status 401 using validate endpoint
- How can I reset / remove token from user? HOT 3
- Dependabot alert on use of `guzzlehttp/psr7` HOT 6
- Whitelist dont work! HOT 8
- Passwords with special characters don't work HOT 3
- Problem with Dokan plugin HOT 1
- Removing tag 3.0.1 from WordPress SVN HOT 16
- Algorithm not allowed — jwt_auth_invalid_token HOT 7
- Requesting a token does not work using Authorization header to pass credentials HOT 3
- Oversight in dependency version for firebase/php-jwt
- Give refresh_token in JSON response HOT 1
- JWTAuth::validate_refresh_token() causes PHP warnings HOT 1
- Automated deploy to WordPress failed but was successful HOT 1
- Additional files to be added to .distignore HOT 4
- Add WhiteList Again to the Version 3 of Plugin
- Intended workflow with access/refresh token HOT 3
- RankMath plugin incompatibility
- Issues with non-wordpress/custom profile pages HOT 1
- Key validation responds with "jwt_auth_invalid_token" when using an asymmetric algorithm
- XAMPP localhost jwt_auth_no_auth_header when trying to get token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwt-auth.