- auth extraction should be happening in the auth crate, yes, who coulda thought
- include: scope should actually be doing the right thing and going out and requesting stuff to expand out the perms
- more tests!!!1!
- more correct parsing of the #bsky-appview or whatever suffixes on did webs that come through auth
.sqlx/query-06eb7c6e1983b6121526ba63612236391290c2e63d37d2bb1cd89ea822950a82.json
This file has not been changed.
.sqlx/query-5031b96c65078d6c54954ce6e57ff9cbba4c48dd8a7546882ab5647114ffab4a.json
This file has not been changed.
.sqlx/query-6258398accee69e0c5f455a3c0ecc273b3da6ef5bb4d8660adafe63d8e3cd2d4.json
This file has not been changed.
.sqlx/query-a4dc8fb22bd094d414c55b9da20b610f7b122b485ab0fd0d0646d68ae8e64fe6.json
This file has not been changed.
.sqlx/query-dec3a21a8e60cc8d2c5dad727750bc88f5535dedae244f7b6e4afa95769b8f1a.json
This file has not been changed.
Cargo.lock
This file has not been changed.
crates/tranquil-pds/src/api/error.rs
This file has not been changed.
crates/tranquil-pds/src/api/identity/account.rs
This file has not been changed.
crates/tranquil-pds/src/api/proxy.rs
This file has not been changed.
crates/tranquil-pds/src/api/repo/blob.rs
This file has not been changed.
crates/tranquil-pds/src/api/repo/record/delete.rs
This file has not been changed.
crates/tranquil-pds/src/api/repo/record/write.rs
This file has not been changed.
+5
-5
crates/tranquil-pds/src/api/server/account_status.rs
crates/tranquil-pds/src/api/server/migration.rs
This file has not been changed.
crates/tranquil-pds/src/api/temp.rs
This file has not been changed.
crates/tranquil-pds/src/auth/auth_extractor.rs
This file has not been changed.
+2
-6
crates/tranquil-pds/src/auth/extractor.rs
crates/tranquil-pds/src/auth/mod.rs
This file has not been changed.
crates/tranquil-pds/src/lib.rs
This file has not been changed.
crates/tranquil-pds/src/oauth/endpoints/delegation.rs
This file has not been changed.
+17
-13
crates/tranquil-pds/src/oauth/verify.rs
crates/tranquil-pds/tests/auth_extractor.rs
This file has not been changed.
crates/tranquil-pds/tests/common/mod.rs
This file has not been changed.
crates/tranquil-pds/tests/oauth_security.rs
This file has not been changed.
crates/tranquil-scopes/Cargo.toml
This file has not been changed.
crates/tranquil-scopes/src/permission_set.rs
This file has not been changed.
crates/tranquil-scopes/src/permissions.rs
This file has not been changed.
crates/tranquil-storage/src/lib.rs
This file has not been changed.
frontend/src/lib/api.ts
This file has not been changed.
frontend/src/lib/auth.svelte.ts
This file has not been changed.
frontend/src/lib/migration/atproto-client.ts
This file has not been changed.
frontend/src/lib/migration/flow.svelte.ts
This file has not been changed.
frontend/src/lib/migration/offline-flow.svelte.ts
This file has not been changed.
frontend/src/lib/oauth.ts
This file has not been changed.
frontend/src/locales/en.json
This file has not been changed.
frontend/src/locales/fi.json
This file has not been changed.
frontend/src/locales/ja.json
This file has not been changed.
frontend/src/locales/ko.json
This file has not been changed.
frontend/src/locales/sv.json
This file has not been changed.
frontend/src/locales/zh.json
This file has not been changed.
frontend/src/routes/Migration.svelte
This file has not been changed.
frontend/src/routes/OAuthAccounts.svelte
This file has not been changed.
frontend/src/routes/OAuthConsent.svelte
This file has not been changed.
so three things:
crates/tranquil-pds/src/auth/auth_extractor.rs does not seem to be used at all anywhere?
crates/tranquil-pds/src/api/temp.rs feels like it just ... shouldnt excist based on the name
and i still dont really like these extractors. the separation of inter service auth is weird to me. inter-service auth is a form of user auth. it shouldnt be separated out from the other types. the AuthExtractor should just be AuthExtractor(pub AuthenticatedUser).
i also discovered https://docs.rs/axum/0.8.8/axum/extract/trait.OptionalFromRequestParts.html which we should be able to reduce optional vs not optional with just an AuthExtractor vs Option.
principly id want whether or not its required that the account is active or not and whether its an admin account or not to both also be type safe configurations on the extractor. probably with generics of some sort. but i cant think of a specific design i like right now so. if you come up with one feel free to do it. otherwise we can do it later