Commit Graph

677 Commits

Author SHA1 Message Date
dependabot[bot]
ec2d0bad37 Bump futures from 0.3.23 to 0.3.24
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.23 to 0.3.24.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.23...0.3.24)

---
updated-dependencies:
- dependency-name: futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-02 23:40:00 +02:00
dependabot[bot]
07fa9b06bf Bump parse-display from 0.5.5 to 0.6.0
Bumps [parse-display](https://github.com/frozenlib/parse-display) from 0.5.5 to 0.6.0.
- [Release notes](https://github.com/frozenlib/parse-display/releases)
- [Commits](https://github.com/frozenlib/parse-display/compare/v0.5.5...v0.6.0)

---
updated-dependencies:
- dependency-name: parse-display
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-02 23:39:50 +02:00
dependabot[bot]
445c3d6c17 Bump once_cell from 1.13.1 to 1.14.0
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.1...v1.14.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-02 23:39:40 +02:00
Quentin Gliech
8e77af1cc6 Upgrade wasmtime & opa-wasm 2022-09-02 16:43:59 +02:00
Quentin Gliech
3ba8f51af7 Bump AWS crates 2022-09-02 16:25:11 +02:00
dependabot[bot]
26b9f2df83 Bump futures-util from 0.3.23 to 0.3.24
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.23 to 0.3.24.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.23...0.3.24)

---
updated-dependencies:
- dependency-name: futures-util
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-02 16:11:45 +02:00
dependabot[bot]
ec87968a92 Bump sha2 from 0.10.2 to 0.10.3
Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/RustCrypto/hashes/releases)
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.2...sha2-v0.10.3)

---
updated-dependencies:
- dependency-name: sha2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-02 16:10:24 +02:00
Quentin Gliech
c4076698d4 Remove the config dependency from the email, templates & handlers crates 2022-09-02 16:01:11 +02:00
dependabot[bot]
5f01f6ef1e Bump clap from 3.2.17 to 3.2.18
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.17 to 3.2.18.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.18/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.17...v3.2.18)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-02 15:55:26 +02:00
Quentin Gliech
ca2a5eac3d JWT response wrapper
Helps replying with a JWT to a request, with a
`Content-Type: application/jwt` header
2022-09-02 15:37:46 +02:00
Quentin Gliech
8316433bb8 Also include doctests in code coverage 2022-09-02 15:37:46 +02:00
Quentin Gliech
e79c2f05ef More key loading tests 2022-09-02 15:37:46 +02:00
Quentin Gliech
04469e9508 Add PEM/DER serialization tests 2022-09-02 15:37:46 +02:00
Quentin Gliech
849476c381 Some cleanups 2022-09-02 15:37:46 +02:00
Quentin Gliech
c8fece2e5c Use a published version of RSA again 2022-09-02 15:37:46 +02:00
Quentin Gliech
a7b13ae5a6 Split the asymmetric and symmetric keys enums 2022-09-02 15:37:46 +02:00
Quentin Gliech
9b7579b88e Tests signing and verifying from the keystore 2022-09-02 15:37:46 +02:00
Quentin Gliech
44c0b0ebbb Remove unnecessary dependencies from mas-jose 2022-09-02 15:37:46 +02:00
Quentin Gliech
efa66f09f8 Avoid some unncessary clones 2022-09-02 15:37:46 +02:00
Quentin Gliech
cb989e78ce cargo fmt 2022-09-02 15:37:46 +02:00
Quentin Gliech
733a9085f1 Move the Encrypter from the config to the keystore 2022-09-02 15:37:46 +02:00
Quentin Gliech
5327902ebe Add a dedicated keystore crate 2022-09-02 15:37:46 +02:00
Quentin Gliech
2962d0ef03 Remove unnecessary dependencies 2022-09-02 15:37:46 +02:00
Quentin Gliech
6cc40ed329 Get rid of legacy JWKS store 2022-09-02 15:37:46 +02:00
Quentin Gliech
e4db53ac74 Reorganise algorithms under the jwa module 2022-09-02 15:37:46 +02:00
Quentin Gliech
f0d8996dd6 JWK signer 2022-09-02 15:37:46 +02:00
Quentin Gliech
eaadc8ad0e Private to public JWKS conversion 2022-09-02 15:37:46 +02:00
Quentin Gliech
25d16b34e9 Fix EC key conversion & constraints 2022-09-02 15:37:46 +02:00
Quentin Gliech
2df95f9503 cargo fmt 2022-09-02 15:37:46 +02:00
Quentin Gliech
57bcedfe58 Make the JWK generic over the parameters 2022-09-02 15:37:46 +02:00
Quentin Gliech
0649278713 Prepare the private JWK 2022-09-02 15:37:46 +02:00
Quentin Gliech
7f54cc9358 Sign all the things 2022-09-02 15:37:46 +02:00
Quentin Gliech
89a2d3fa8b WIP: better JOSE 2022-09-02 15:37:46 +02:00
Quentin Gliech
2281ccfcbd Remove support for the token response type 2022-09-02 13:59:10 +02:00
Kévin Commaille
0061c57d3b Improve docs and spec compliance of oauth2-types requests 2022-09-02 11:25:21 +02:00
Kévin Commaille
20dbe2d4f9 Add a constructor for a basic AuthorizationRequest 2022-09-02 11:25:21 +02:00
Kévin Commaille
99532e2b21 Basic improvements to oauth2-types requests
Make sure all types implement Serialize, Deserialize, Debug and Clone.
Make sure all types can be constructed and all fields can be accessed.
2022-09-02 11:25:21 +02:00
Kévin Commaille
df81c3e665 Use an enum for client error codes
Replace the ClientError constants with From<ClientErrorCode>.
2022-09-01 17:59:37 +02:00
Kévin Commaille
78cffd7e02 Make HTTP request layers convert to Bytes
Add layer to convert a request's Bytes to a Body.
2022-08-23 12:25:38 +02:00
dependabot[bot]
59e6cb2d5e Bump opa-wasm from 770075c to 223a17f
Bumps [opa-wasm](https://github.com/matrix-org/rust-opa-wasm) from `770075c` to `223a17f`.
- [Release notes](https://github.com/matrix-org/rust-opa-wasm/releases)
- [Commits](770075c883...223a17f391)

---
updated-dependencies:
- dependency-name: opa-wasm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 23:21:58 +02:00
Quentin Gliech
000e8519e0 Fix wasmtime cache config in Docker image 2022-08-22 17:55:54 +02:00
Quentin Gliech
acca0b8b89 Add a debug CLI command to check the compiled policies 2022-08-22 16:36:31 +02:00
Quentin Gliech
32319d354d Fix the -debug variant entrypoint in Docker image 2022-08-22 16:28:53 +02:00
dependabot[bot]
fe72da754e Bump serde_json from 1.0.83 to 1.0.85
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.83 to 1.0.85.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.83...v1.0.85)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 15:44:03 +02:00
Quentin Gliech
aba1919ba9 Bump OPA in GitHub Actions 2022-08-22 15:23:53 +02:00
Quentin Gliech
fcce789020 Allow making the contacts and client_uri optional in client registration 2022-08-22 15:23:53 +02:00
dependabot[bot]
e5d3f90ef9 Bump serde_yaml from 0.9.9 to 0.9.10
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.9 to 0.9.10.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.9...0.9.10)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 15:22:50 +02:00
dependabot[bot]
82fa87729c Bump serde from 1.0.143 to 1.0.144
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.143 to 1.0.144.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.143...v1.0.144)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 15:22:04 +02:00
dependabot[bot]
ebb83053ec Bump actions/cache from 3.0.7 to 3.0.8
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.7 to 3.0.8.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.7...v3.0.8)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 15:10:04 +02:00
Kévin Commaille
3d9608ca82 Allow to validate client metadata
According to OpenID Connect Dynamic Client Registration Spec 1.0.
Introduce VerifiedClientMetadata.
2022-08-19 13:58:43 +02:00