1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-07 22:41:18 +03:00
Commit Graph

1305 Commits

Author SHA1 Message Date
768c48234a Remove unnecessary dependencies 2022-09-02 15:37:46 +02:00
2c400d4cc1 Get rid of legacy JWKS store 2022-09-02 15:37:46 +02:00
84c793dae0 Reorganise algorithms under the jwa module 2022-09-02 15:37:46 +02:00
945719a5a1 JWK signer 2022-09-02 15:37:46 +02:00
dd51c4a51b Private to public JWKS conversion 2022-09-02 15:37:46 +02:00
0b6e4cdece Fix EC key conversion & constraints 2022-09-02 15:37:46 +02:00
7ea61ca257 cargo fmt 2022-09-02 15:37:46 +02:00
29f1b134ae Make the JWK generic over the parameters 2022-09-02 15:37:46 +02:00
6636cdcf49 Prepare the private JWK 2022-09-02 15:37:46 +02:00
956556b0ff Sign all the things 2022-09-02 15:37:46 +02:00
ca125a14c5 WIP: better JOSE 2022-09-02 15:37:46 +02:00
495285162b Remove support for the token response type 2022-09-02 13:59:10 +02:00
7b281f4c21 Improve docs and spec compliance of oauth2-types requests 2022-09-02 11:25:21 +02:00
bffbf63992 Add a constructor for a basic AuthorizationRequest 2022-09-02 11:25:21 +02:00
7a931925fa 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
ee47c821e3 Use an enum for client error codes
Replace the ClientError constants with From<ClientErrorCode>.
2022-09-01 17:59:37 +02:00
348044afdc 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
669a1867b7 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
1a4b137d4f Fix wasmtime cache config in Docker image 2022-08-22 17:55:54 +02:00
d7c9ca4796 Add a debug CLI command to check the compiled policies 2022-08-22 16:36:31 +02:00
fa170a29b7 Fix the -debug variant entrypoint in Docker image 2022-08-22 16:28:53 +02:00
14ab53ddfc 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
66b8f31503 Bump OPA in GitHub Actions 2022-08-22 15:23:53 +02:00
2d3afc1c4f Allow making the contacts and client_uri optional in client registration 2022-08-22 15:23:53 +02:00
ad3d334cb0 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
2eed13639f 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
5c2bff2883 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
e202c3dd6d 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
a543af4de3 Bump futures from 0.3.21 to 0.3.23
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.21 to 0.3.23.
- [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.21...0.3.23)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 13:07:10 +02:00
b55f174293 Bump clap from 3.2.16 to 3.2.17
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.16 to 3.2.17.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.17/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.16...v3.2.17)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:47:36 +02:00
9f6abefa21 Bump ecdsa from 0.14.3 to 0.14.4
Bumps [ecdsa](https://github.com/RustCrypto/signatures) from 0.14.3 to 0.14.4.
- [Release notes](https://github.com/RustCrypto/signatures/releases)
- [Commits](https://github.com/RustCrypto/signatures/compare/ecdsa/v0.14.3...ecdsa/v0.14.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:43:27 +02:00
862332543d Bump once_cell from 1.13.0 to 1.13.1
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.13.0 to 1.13.1.
- [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.0...v1.13.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:41:16 +02:00
fbe12a67f2 Add the evaluation context policy generic parameter 2022-08-19 12:37:10 +02:00
efb1cd5def Bump opa-wasm from 1930d78 to 770075c
Bumps [opa-wasm](https://github.com/matrix-org/rust-opa-wasm) from `1930d78` to `770075c`.
- [Release notes](https://github.com/matrix-org/rust-opa-wasm/releases)
- [Commits](1930d78b36...770075c883)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:37:10 +02:00
22b1406279 Bump chrono from 0.4.20 to 0.4.22
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.20 to 0.4.22.
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.20...v0.4.22)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:21:07 +02:00
739507d883 Bump futures-util from 0.3.21 to 0.3.23
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.21 to 0.3.23.
- [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.21...0.3.23)

---
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-08-19 12:19:45 +02:00
f0efc2c695 Bump axum-extra from 0.3.6 to 0.3.7
Bumps [axum-extra](https://github.com/tokio-rs/axum) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-extra-v0.3.6...axum-extra-v0.3.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:18:16 +02:00
569c2f71d8 Bump signature from 1.5.0 to 1.6.0
Bumps [signature](https://github.com/RustCrypto/traits) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/RustCrypto/traits/releases)
- [Commits](https://github.com/RustCrypto/traits/compare/signature-v1.5.0...signature-v1.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:11:30 +02:00
3a0d4a43d7 Bump serde_yaml from 0.9.4 to 0.9.9
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.4 to 0.9.9.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.4...0.9.9)

---
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-19 11:57:58 +02:00
9d3dd3d168 Bump tera from 1.16.0 to 1.17.0
Bumps [tera](https://github.com/Keats/tera) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/Keats/tera/releases)
- [Changelog](https://github.com/Keats/tera/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Keats/tera/compare/v1.16.0...v1.17.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 11:55:24 +02:00
b64812d77c Bump axum from 0.5.13 to 0.5.15
Bumps [axum](https://github.com/tokio-rs/axum) from 0.5.13 to 0.5.15.
- [Release notes](https://github.com/tokio-rs/axum/releases)
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.5.13...axum-v0.5.15)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 11:47:07 +02:00
4c5f2e7de0 ci: Build the Docker image earlier 2022-08-19 11:43:36 +02:00
310785c615 ci: Only build docker image for amd64 in PRs 2022-08-19 11:43:36 +02:00
809a3ad00c Bump OPA to 0.43 and Rust to 1.63 in Docker image
Also bumps the Dockerfile frontend to 1.4
2022-08-19 11:43:36 +02:00
0ac41a7a2a Bump AWS crates 2022-08-19 11:13:36 +02:00
7c12b330db Bump chacha20poly1305 from 0.10.0 to 0.10.1
Bumps [chacha20poly1305](https://github.com/RustCrypto/AEADs) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/AEADs/releases)
- [Commits](https://github.com/RustCrypto/AEADs/compare/chacha20poly1305-v0.10.0...chacha20poly1305-v0.10.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 11:04:39 +02:00
95eba8f88b Apply suggestions from code review
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
2022-08-19 10:51:24 +02:00
185ff622f9 Gate some crates behind features in mas-http 2022-08-19 10:51:24 +02:00
9fe541f7b6 Add a layer to catch HTTP error codes 2022-08-19 10:51:24 +02:00
d94442f972 Layer to application/x-www-form-urlencoded bodies 2022-08-19 10:51:24 +02:00