You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,7 @@ You can tune the middleware behavior using middleware specific configuration par
162
162
- "cors.allowCredentials": To allow credentials in the CORS request ("true")
163
163
- "cors.maxAge": The time that the CORS grant is valid in seconds ("1728000")
164
164
- "jwtAuth.mode": Set to "optional" if you want to allow anonymous access ("required")
165
+
- "jwtAuth.header": Name of the header containing the JWT token ("X-Authorization")
165
166
- "jwtAuth.leeway": The acceptable number of seconds of clock skew ("5")
166
167
- "jwtAuth.ttl": The number of seconds the token is valid ("30")
167
168
- "jwtAuth.secret": The shared secret used to sign the JWT token with ("")
@@ -588,10 +589,12 @@ This example sends the string "username1:password1".
588
589
589
590
The JWT type requires another (SSO/Identity) server to sign a token that contains claims.
590
591
Both servers share a secret so that they can either sign or verify that the signature is valid.
591
-
Claims are stored in the `$_SESSION['claims']` variable.
592
-
You need to send an "Authorization" header containing a base64 url encoded and dot separated token header, body and signature after the word "Bearer" ([read more about JWT here](https://jwt.io/)).
592
+
Claims are stored in the `$_SESSION['claims']` variable. You need to send an "X-Authorization"
593
+
header containing a base64 url encoded and dot separated token header, body and signature after
594
+
the word "Bearer" ([read more about JWT here](https://jwt.io/)). The standard says you need to
595
+
use the "Authorization" header, but this is problematic in Apache and PHP.
0 commit comments