Skip to content

Commit

Permalink
feat: OAuth (#219)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sugyan authored Oct 23, 2024
1 parent dc56507 commit bf75a70
Show file tree
Hide file tree
Showing 58 changed files with 4,168 additions and 285 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/identity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Identity

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cargo build -p atrium-identity --verbose
- name: Run tests
run: |
cargo test -p atrium-identity --lib
cargo test -p atrium-identity --lib --no-default-features --features doh-handle-resolver
23 changes: 23 additions & 0 deletions .github/workflows/oauth-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: OAuth Client

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cargo build -p atrium-oauth-client --verbose
- name: Run tests
run: |
cargo test -p atrium-oauth-client --lib
cargo test -p atrium-oauth-client --lib --no-default-features
1 change: 1 addition & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ jobs:
- run: wasm-pack test --node atrium-api
- run: wasm-pack test --node atrium-xrpc
- run: wasm-pack test --node atrium-xrpc-client
- run: wasm-pack test --node atrium-oauth/identity
Loading

0 comments on commit bf75a70

Please sign in to comment.