File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ server {
26
26
set $oidc_client_secret "my-client-secret" ;
27
27
set $oidc_token_type "id_token" ; # Session token (access_token or id_token)
28
28
set $oidc_hmac_key "ChangeMe" ; # This should be unique for every NGINX instance/cluster
29
-
29
+
30
30
listen 8010 ; # Use SSL/TLS in production
31
31
32
32
location / {
@@ -37,11 +37,11 @@ server {
37
37
# Absent/invalid OpenID Connect token will (re)start auth process
38
38
error_page 401 @oidc_auth;
39
39
40
- # Successfuly authenticated users are proxied to the backend,
40
+ # Successfully authenticated users are proxied to the backend,
41
41
# with 'sub' claim passed as HTTP header
42
42
proxy_set_header username $jwt_claim_sub ;
43
43
proxy_pass http://my_backend; # The backend site/app
44
-
44
+
45
45
access_log /var/log/nginx/access.log main_jwt;
46
46
}
47
47
}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ server {
28
28
set $oidc_client "my-client-id" ;
29
29
set $oidc_client_secret "my-client-secret" ;
30
30
set $oidc_hmac_key "ChangeMe" ; # Unique per NGINX instance/cluster
31
-
31
+
32
32
listen 8010 ; # Use SSL/TLS in production
33
33
34
34
location / {
@@ -39,7 +39,7 @@ server {
39
39
# Absent/invalid OpenID Connect token will (re)start auth process
40
40
error_page 401 @oidc_auth;
41
41
42
- # Successfuly authenticated users are proxied to the backend,
42
+ # Successfully authenticated users are proxied to the backend,
43
43
# with 'sub' claim passed as HTTP header
44
44
proxy_set_header username $jwt_claim_sub ;
45
45
proxy_pass http://my_backend; # The backend site/app
You can’t perform that action at this time.
0 commit comments