@blakearoberts/visage 0.0.5-rc.21 → 0.0.5-rc.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -105,8 +105,11 @@ visage({
105
105
  });
106
106
  ```
107
107
 
108
- OAuth2 Proxy identity values can also be mapped explicitly through headers such
109
- as `$auth_user`, `$auth_email`, `$auth_groups`, and `$auth_preferred_username`.
108
+ OAuth2 Proxy exposes the canonical authenticated principal as `$auth_user`,
109
+ which Visage forwards to the Vite app as `X-Auth-Request-User`. Additional
110
+ identity values such as `$auth_email`, `$auth_groups`, and
111
+ `$auth_preferred_username` are optional and depend on the requested scopes and
112
+ identity provider claims.
110
113
 
111
114
  Authenticated locations also get CSRF checks by default. The policy allows
112
115
  same-origin requests and top-level `GET` document navigations, blocks other
package/dist/index.js CHANGED
@@ -836,7 +836,7 @@ http {
836
836
  "~^[0-9]{4}-[0-9]{2}-[0-9]{2}T([0-9]{2}:[0-9]{2}:[0-9]{2})" $1;
837
837
  default $time_iso8601;
838
838
  }
839
- log_format access_log_format '$access_log_time | $status | $request_method $request_uri | $auth_email | $proxy_host';
839
+ log_format access_log_format '$access_log_time | $status | $request_method $request_uri | $auth_user | $proxy_host';
840
840
 
841
841
  # Allow WebSockets (Vite HMR).
842
842
  map $http_upgrade $connection_upgrade {
@@ -913,8 +913,6 @@ http {
913
913
  # Redirect HTTP to HTTPS.
914
914
  error_page 497 =301 https://$http_host$request_uri;
915
915
 
916
- set $auth_email "";
917
-
918
916
  <%_ for (const [name, upstream] of Object.entries(it.upstreams)) { %>
919
917
  <%_ for (const [path, location] of Object.entries(upstream.locations)) { %>
920
918
  location <%~ path %> {
@@ -1 +1 @@
1
- {"version":3,"file":"nginx.d.ts","sourceRoot":"","sources":["../../src/render/nginx.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AA6KnE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAQ3D"}
1
+ {"version":3,"file":"nginx.d.ts","sourceRoot":"","sources":["../../src/render/nginx.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AA2KnE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAQ3D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blakearoberts/visage",
3
- "version": "0.0.5-rc.21",
3
+ "version": "0.0.5-rc.22",
4
4
  "description": "Vite plugin for local development with HMR and OIDC session cookie lifecycle semantics.",
5
5
  "type": "module",
6
6
  "author": "Blake Roberts",