Skip to content

feat: add M2M auth flow to stitch-client and ensure appropriate API handling#86

Open
mbarlow12 wants to merge 6 commits into
mainfrom
feat/add-m2m-to-client
Open

feat: add M2M auth flow to stitch-client and ensure appropriate API handling#86
mbarlow12 wants to merge 6 commits into
mainfrom
feat/add-m2m-to-client

Conversation

@mbarlow12
Copy link
Copy Markdown
Contributor

Note

Merge #80 before this PR.

Adds a minimal auth token flow to the stitch-client package. Package users/consumers (seed, entity_linkage, llm) can be given credentials for client_id (Auth0 "Application") and client_secret, allowing them to make a call to the RMI Auth0 tenant. Posting to /oauth/token will return the access_token that can be used to make authenticated calls to our API.

  • stitch-api treats all callers as "users" without distinguishing between a machine/service and a human user
  • stitch-client can still be used with user pass-through credentials so a service like entity_linkage can operate on a user's behalf

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

CD summary 3845bb7

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Warnings

  • seed: Seed ran without auth
Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (2)
job image postgres_db api_url
db-init ghcr.io/rmi/stitch-api:pr86@sha256:37bc8800f2820831c95f0e39d0671a235e26464d26d733cc9b10a67c37dfa70d pr_86
seed ghcr.io/rmi/stitch-seed:pr86@sha256:b2f0bcf7cb2b5e324cc21c1ddfe32c2a78ff739108102653543a233aa1713d6a https://pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io/api/v1
Images (4)
build_time commit_time git_sha image image_digest
2026-05-08T19:53:43Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:37bc8800f2820831c95f0e39d0671a235e26464d26d733cc9b10a67c37dfa70d
2026-05-08T19:53:50Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:ef1198a26a23140c09a707584345a68109e6ae34e38bcff75b43fd1e27d65dab
2026-05-08T19:53:49Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:b2f0bcf7cb2b5e324cc21c1ddfe32c2a78ff739108102653543a233aa1713d6a
2026-05-08T19:53:45Z 2026-05-08T19:53:30Z 4d77bb1 ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:18dfb9fbf65124212eb2483bc8632af6f3894cc820b1357cd79ec49a4643c26b

@github-actions
Copy link
Copy Markdown

CD summary 031df52

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (1)
job image postgres_db
db-init ghcr.io/rmi/stitch-api:pr86@sha256:bce9f64a8f6e8e2707b0ad6ceab794c5a66b343f733962b6f16cc90c8084075a pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-05-14T18:34:25Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:bce9f64a8f6e8e2707b0ad6ceab794c5a66b343f733962b6f16cc90c8084075a
2026-05-14T18:34:20Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:1e945635500a9c10ff88809247c773ee28ce4db18d238e1a226906c45d5e7e8c
2026-05-14T18:34:25Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:f5ff39386adac2a4cd4d1ea179f050b76dfa50e2b4924c105f76227bf63e7c1a
2026-05-14T18:34:32Z 2026-05-14T18:34:07Z 239087c ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:00bc3ccb292a976a843e91ddb1ea544cfcf9e1e26d39bfd094c627d4f177a219

@github-actions
Copy link
Copy Markdown

CD summary d5eb425

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (1)
job image postgres_db
db-init ghcr.io/rmi/stitch-api:pr86@sha256:e648e2f091a04a31cb74a05df12b6f4a2ad8c720b5fb6a4645eaaf7077a2374d pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-05-14T18:35:22Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:e648e2f091a04a31cb74a05df12b6f4a2ad8c720b5fb6a4645eaaf7077a2374d
2026-05-14T18:35:23Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:231f68c0e280d78e0e65486da19f1e65bb39441f2ca7d2a0db316eea54647714
2026-05-14T18:35:19Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:2febcf3d709213b939d73e961145d7b92c26eb7cee1f50b6d772bdd49ff94f7b
2026-05-14T18:35:20Z 2026-05-14T18:34:56Z 1f15acb ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:03179ef3c1bd9593232a4b30b11e12c91cd335b5012897561dbc8a6660b3b4fa

@github-actions
Copy link
Copy Markdown

CD summary 8257872

Frontend: https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr86-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr86-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-86.westus2.1.azurestaticapps.net
stitch-llm open pr86-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_86 stitch-dev.postgres.database.azure.com 5432 pr_86
Jobs (1)
job image postgres_db
db-init ghcr.io/rmi/stitch-api:pr86@sha256:be3395b8db7aeb4c3e745c12ca57a025b9f1e463ed435ec97dbca88ee5659c3a pr_86
Images (4)
build_time commit_time git_sha image image_digest
2026-05-15T14:38:11Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-api:pr86 ghcr.io/rmi/stitch-api:pr86@sha256:be3395b8db7aeb4c3e745c12ca57a025b9f1e463ed435ec97dbca88ee5659c3a
2026-05-15T14:38:13Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-entity-linkage:pr86 ghcr.io/rmi/stitch-entity-linkage:pr86@sha256:c0a224d3858d4a1d113ddbc2e2c849cd73bd4fbe186ab7bf5de5dc1b8feb9551
2026-05-15T14:38:15Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-seed:pr86 ghcr.io/rmi/stitch-seed:pr86@sha256:b1ed2545e8f0b79a32f1b880beb3e9d05a6b219031d510bf5d985be0b681771b
2026-05-15T14:38:10Z 2026-05-15T14:37:59Z 6e82d7f ghcr.io/rmi/stitch-stitch-llm:pr86 ghcr.io/rmi/stitch-stitch-llm:pr86@sha256:c77b5df4b6e394383e52bb13e8b84254c84d166193a31129f373cf9b6e94663a

@mbarlow12 mbarlow12 marked this pull request as ready for review May 15, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant