Skip to content

Commit a468039

Browse files
authored
Merge pull request #20 from paladdins/master
Update README.md
2 parents 5323d09 + c8183d0 commit a468039

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ This secret is used in the encoding and decoding of the JWT token. If the Secret
3737

3838
- Learn more about JWT: https://jwt.io/introduction/
3939

40+
## HTTP_AUTHORIZATION
41+
42+
In order to use this plugin, your WordPress environment must support the HTTP_AUTHORIZATION header. In some cases, this header is not passed to WordPress because of some server configurations.
43+
44+
Depending on your particular environment, you may have to research how to enable these headers, but in Apache, you can do the following in your `.htaccess`:
45+
46+
```
47+
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
48+
```
49+
50+
For NGINX, this may work: https://serverfault.com/questions/511206/nginx-forward-http-auth-user#answer-511612
51+
4052
## How the plugin Works
4153

4254
This plugin adds a new `login` mutation to the WPGraphQL Schema.

0 commit comments

Comments
 (0)