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 {
2626 set $oidc_client_secret "my-client-secret" ;
2727 set $oidc_token_type "id_token" ; # Session token ( access_token or id_token)
2828 set $oidc_hmac_key "ChangeMe" ; # This should be unique for every NGINX instance/cluster
29-
29+
3030 listen 8010 ; # Use SSL/TLS in production
3131
3232 location / {
@@ -37,11 +37,11 @@ server {
3737 # Absent/invalid OpenID Connect token will (re)start auth process
3838 error_page 401 @oidc_auth;
3939
40- # Successfuly authenticated users are proxied to the backend,
40+ # Successfully authenticated users are proxied to the backend,
4141 # with 'sub' claim passed as HTTP header
4242 proxy_set_header username $jwt_claim_sub ;
4343 proxy_pass http ://my_backend; # The backend site/app
44-
44+
4545 access_log /var/log/nginx/access.log main_jwt;
4646 }
4747}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ server {
2828 set $oidc_client "my-client-id" ;
2929 set $oidc_client_secret "my-client-secret" ;
3030 set $oidc_hmac_key "ChangeMe" ; # Unique per NGINX instance/cluster
31-
31+
3232 listen 8010 ; # Use SSL/TLS in production
3333
3434 location / {
@@ -39,7 +39,7 @@ server {
3939 # Absent/invalid OpenID Connect token will (re)start auth process
4040 error_page 401 @oidc_auth;
4141
42- # Successfuly authenticated users are proxied to the backend,
42+ # Successfully authenticated users are proxied to the backend,
4343 # with 'sub' claim passed as HTTP header
4444 proxy_set_header username $jwt_claim_sub ;
4545 proxy_pass http ://my_backend; # The backend site/app
You can’t perform that action at this time.
0 commit comments