Skip to content

Commit bf75a70

Browse files
authored
feat: OAuth (#219)
* WIP: Add OAuth resolvers * WIP: Add DpopClient * Add PKSC, exchange code * Update http_client, use generics * Update config for client and resolvers * Unify resolver traits * Update * Implement client authentication * Remove k256, use jose methods for dpop request * Support wasm32 * Update resolvers, add examples for oauth * Update resolver config * Add DohDnsTxtResolver as optional * Update store * Move to atrium-identity, add cached_resolver * Add workflows * Add wasm32 cached_resolver * Add wasm workflows * identity: Add throttled_resolver * Update atrium-identity * Update oauth-client * Update resolvers * Fix SimpleStore trait
1 parent dc56507 commit bf75a70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4168
-285
lines changed

Diff for: .github/workflows/identity.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Identity
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build
18+
run: |
19+
cargo build -p atrium-identity --verbose
20+
- name: Run tests
21+
run: |
22+
cargo test -p atrium-identity --lib
23+
cargo test -p atrium-identity --lib --no-default-features --features doh-handle-resolver

Diff for: .github/workflows/oauth-client.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: OAuth Client
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build
18+
run: |
19+
cargo build -p atrium-oauth-client --verbose
20+
- name: Run tests
21+
run: |
22+
cargo test -p atrium-oauth-client --lib
23+
cargo test -p atrium-oauth-client --lib --no-default-features

Diff for: .github/workflows/wasm.yml

+1
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ jobs:
6666
- run: wasm-pack test --node atrium-api
6767
- run: wasm-pack test --node atrium-xrpc
6868
- run: wasm-pack test --node atrium-xrpc-client
69+
- run: wasm-pack test --node atrium-oauth/identity

0 commit comments

Comments
 (0)