Jelajahi Sumber

Updated name references

Efren Yevale Varela 4 minggu lalu
induk
melakukan
12ce1e10fc
7 mengubah file dengan 14 tambahan dan 14 penghapusan
  1. 2 2
      Dockerfile
  2. 4 4
      README.md
  3. 1 1
      crates/provision/src/dcr.rs
  4. 2 2
      crates/provision/tests/dcr.rs
  5. 1 1
      docker-bake.hcl
  6. 2 2
      e2e/package-lock.json
  7. 2 2
      e2e/package.json

+ 2 - 2
Dockerfile

@@ -1,5 +1,5 @@
 # syntax=docker/dockerfile:1.7
 # syntax=docker/dockerfile:1.7
-# Minimal static-musl image for the oauth2-wasm-demo-client BFF + Leptos UI.
+# Minimal static-musl image for the d-OAuth-Client BFF + Leptos UI.
 #
 #
 # Stages: web -> chef -> planner -> builder -> runtime.
 # Stages: web -> chef -> planner -> builder -> runtime.
 # - `web`: builds the Leptos CSR/WASM bundle with a pinned, prebuilt Trunk
 # - `web`: builds the Leptos CSR/WASM bundle with a pinned, prebuilt Trunk
@@ -103,7 +103,7 @@ EXPOSE 3000
 # loopback and exits 0/1 without starting the HTTP server.
 # loopback and exits 0/1 without starting the HTTP server.
 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s CMD ["/app/server","healthcheck"]
 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s CMD ["/app/server","healthcheck"]
 ENTRYPOINT ["/app/server"]
 ENTRYPOINT ["/app/server"]
-LABEL org.opencontainers.image.title="oauth2-wasm-demo-client" \
+LABEL org.opencontainers.image.title="d-OAuth-Client" \
   org.opencontainers.image.description="OAuth 2.1 BFF + Leptos WASM demo client (static musl, non-root, no shell)" \
   org.opencontainers.image.description="OAuth 2.1 BFF + Leptos WASM demo client (static musl, non-root, no shell)" \
   org.opencontainers.image.licenses="MIT OR Apache-2.0" \
   org.opencontainers.image.licenses="MIT OR Apache-2.0" \
   org.opencontainers.image.revision="unknown" \
   org.opencontainers.image.revision="unknown" \

+ 4 - 4
README.md

@@ -1,4 +1,4 @@
-# oauth2-wasm-demo-client
+# d-OAuth-Client
 
 
 A Rust workspace demo client for an OAuth 2.1 authorization server: a
 A Rust workspace demo client for an OAuth 2.1 authorization server: a
 server-side BFF handles the confidential OAuth exchange while a Leptos
 server-side BFF handles the confidential OAuth exchange while a Leptos
@@ -173,7 +173,7 @@ docker buildx bake image
 docker buildx bake image --set image.platform=linux/amd64
 docker buildx bake image --set image.platform=linux/amd64
 
 
 # Or a plain single-platform build
 # Or a plain single-platform build
-docker buildx build --load --platform linux/amd64 -t oauth2-wasm-demo-client:dev .
+docker buildx build --load --platform linux/amd64 -t d-oauth-client:dev .
 ```
 ```
 
 
 Run it, mounting the local `config/` directory read-only on port `3000`:
 Run it, mounting the local `config/` directory read-only on port `3000`:
@@ -181,7 +181,7 @@ Run it, mounting the local `config/` directory read-only on port `3000`:
 ```bash
 ```bash
 docker run --rm -p 3000:3000 \
 docker run --rm -p 3000:3000 \
   -v "$PWD/config:/app/config:ro" \
   -v "$PWD/config:/app/config:ro" \
-  oauth2-wasm-demo-client:latest
+  d-oauth-client:latest
 ```
 ```
 
 
 Open `http://127.0.0.1:3000`. Without the mount the server still answers
 Open `http://127.0.0.1:3000`. Without the mount the server still answers
@@ -310,4 +310,4 @@ unverified: the matrix describes graceful degradation, not certification.
 
 
 ## License
 ## License
 
 
-MIT OR Apache-2.0. See [LICENSE.md](LICENSE.md).
+ISC. See [LICENSE.md](LICENSE.md).

+ 1 - 1
crates/provision/src/dcr.rs

@@ -24,7 +24,7 @@ use thiserror::Error;
 use crate::cli_driver::{DEMO_REDIRECT_URI, DEMO_SCOPE};
 use crate::cli_driver::{DEMO_REDIRECT_URI, DEMO_SCOPE};
 
 
 /// Default human-readable client name for the demo registration.
 /// Default human-readable client name for the demo registration.
-pub const DEFAULT_CLIENT_NAME: &str = "oauth2-wasm-demo";
+pub const DEFAULT_CLIENT_NAME: &str = "d-OAuth-Client";
 /// Token-endpoint auth method for the confidential BFF client.
 /// Token-endpoint auth method for the confidential BFF client.
 pub const AUTH_METHOD: &str = "client_secret_basic";
 pub const AUTH_METHOD: &str = "client_secret_basic";
 
 

+ 2 - 2
crates/provision/tests/dcr.rs

@@ -26,7 +26,7 @@ fn inputs(issuer: &str) -> RegisterInputs {
 
 
 fn expected_body() -> serde_json::Value {
 fn expected_body() -> serde_json::Value {
   serde_json::json!({
   serde_json::json!({
-    "client_name": "oauth2-wasm-demo",
+    "client_name": "d-OAuth-Client",
     "token_endpoint_auth_method": "client_secret_basic",
     "token_endpoint_auth_method": "client_secret_basic",
     "grant_types": ["authorization_code", "refresh_token"],
     "grant_types": ["authorization_code", "refresh_token"],
     "response_types": ["code"],
     "response_types": ["code"],
@@ -43,7 +43,7 @@ fn registration_response(server: &MockServer) -> serde_json::Value {
     "registration_access_token": "rat-1",
     "registration_access_token": "rat-1",
     "registration_client_uri": format!("{}/register/client-1", server.uri()),
     "registration_client_uri": format!("{}/register/client-1", server.uri()),
     "redirect_uris": ["http://127.0.0.1:3000/callback"],
     "redirect_uris": ["http://127.0.0.1:3000/callback"],
-    "client_name": "oauth2-wasm-demo",
+    "client_name": "d-OAuth-Client",
     "token_endpoint_auth_method": "client_secret_basic",
     "token_endpoint_auth_method": "client_secret_basic",
     "grant_types": ["authorization_code", "refresh_token"],
     "grant_types": ["authorization_code", "refresh_token"],
     "response_types": ["code"],
     "response_types": ["code"],

+ 1 - 1
docker-bake.hcl

@@ -17,7 +17,7 @@ target "image" {
   dockerfile = "Dockerfile"
   dockerfile = "Dockerfile"
   context    = "."
   context    = "."
   platforms  = ["linux/amd64", "linux/arm64"]
   platforms  = ["linux/amd64", "linux/arm64"]
-  tags       = ["oauth2-wasm-demo-client:${TAG}"]
+  tags       = ["d-oauth-client:${TAG}"]
   args = {
   args = {
     SOURCE_DATE_EPOCH = "${SOURCE_DATE_EPOCH}"
     SOURCE_DATE_EPOCH = "${SOURCE_DATE_EPOCH}"
   }
   }

+ 2 - 2
e2e/package-lock.json

@@ -1,11 +1,11 @@
 {
 {
-  "name": "oauth2-wasm-demo-e2e",
+  "name": "d-oauth-client-e2e",
   "version": "0.1.0",
   "version": "0.1.0",
   "lockfileVersion": 3,
   "lockfileVersion": 3,
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {
     "": {
     "": {
-      "name": "oauth2-wasm-demo-e2e",
+      "name": "d-oauth-client-e2e",
       "version": "0.1.0",
       "version": "0.1.0",
       "devDependencies": {
       "devDependencies": {
         "@axe-core/playwright": "4.13.0",
         "@axe-core/playwright": "4.13.0",

+ 2 - 2
e2e/package.json

@@ -1,8 +1,8 @@
 {
 {
-  "name": "oauth2-wasm-demo-e2e",
+  "name": "d-oauth-client-e2e",
   "version": "0.1.0",
   "version": "0.1.0",
   "private": true,
   "private": true,
-  "description": "Playwright end-to-end tests for the OAuth2 WASM demo client (todos 37/38 own the specs; this skeleton owns the fixture contract only).",
+  "description": "Playwright end-to-end tests for d-OAuth-Client (todos 37/38 own the specs; this skeleton owns the fixture contract only).",
   "type": "commonjs",
   "type": "commonjs",
   "scripts": {
   "scripts": {
     "test:e2e": "playwright test"
     "test:e2e": "playwright test"