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

965 Commits

Author SHA1 Message Date
c602b29ffd Fix the default listener configuration 2023-03-14 12:14:06 +01:00
83cb9158a0 Fix clippy errors 2023-03-14 10:47:35 +01:00
c6f31d0102 Bump Rust dependencies 2023-03-14 10:47:35 +01:00
c5e1e2ec62 Commit the DB transaction at the end of the cleanup task 2023-03-03 17:21:39 +01:00
a79b4060d4 Check that an OAuth session is valid before revoking it 2023-03-02 16:31:36 +01:00
380f722d67 Bump Rust dependencies 2023-02-27 17:32:13 +01:00
fab5d166f3 oidc-client: Derive Clone for ClientCredentials 2023-02-27 17:11:18 +01:00
dc6b515906 build(deps): bump axum from 0.6.7 to 0.6.8
Bumps [axum](https://github.com/tokio-rs/axum) from 0.6.7 to 0.6.8.
- [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.6.7...axum-v0.6.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 11:05:40 +01:00
b7219967bc build(deps): bump lettre from 0.10.2 to 0.10.3
Bumps [lettre](https://github.com/lettre/lettre) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/lettre/lettre/releases)
- [Changelog](https://github.com/lettre/lettre/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lettre/lettre/compare/v0.10.2...v0.10.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-24 18:17:18 +01:00
c38dd7ae06 build(deps): bump camino from 1.1.2 to 1.1.3
Bumps [camino](https://github.com/camino-rs/camino) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/camino-rs/camino/releases)
- [Changelog](https://github.com/camino-rs/camino/blob/main/CHANGELOG.md)
- [Commits](https://github.com/camino-rs/camino/compare/camino-1.1.2...camino-1.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-24 18:17:07 +01:00
67753c0e26 handlers: add tests for introspection endpoint 2023-02-24 17:45:50 +01:00
97635375cc handlers: Add test for the compatibility login API 2023-02-24 15:52:21 +01:00
17471c651e handlers: add tests for the token endpoint
This also simplifies the way we issue tokens in tests
2023-02-22 19:38:01 +01:00
03583d2936 handlers: add a test for OIDC discovery 2023-02-22 16:38:48 +01:00
1e9ce8d6d6 handlers: add tests for client registration 2023-02-22 14:29:53 +01:00
304ec10d1b build(deps): bump axum from 0.6.6 to 0.6.7
Bumps [axum](https://github.com/tokio-rs/axum) from 0.6.6 to 0.6.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-v0.6.6...axum-v0.6.7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 15:42:37 +01:00
bd6efbd1f3 build(deps): bump time from 0.3.18 to 0.3.19
Bumps [time](https://github.com/time-rs/time) from 0.3.18 to 0.3.19.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.18...v0.3.19)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 15:42:19 +01:00
1207d1f755 build(deps): bump http from 0.2.8 to 0.2.9
Bumps [http](https://github.com/hyperium/http) from 0.2.8 to 0.2.9.
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/http/compare/v0.2.8...v0.2.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 15:42:06 +01:00
09cc4b9971 build(deps): bump tokio-stream from 0.1.11 to 0.1.12
Bumps [tokio-stream](https://github.com/tokio-rs/tokio) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.11...tokio-stream-0.1.12)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 15:41:49 +01:00
bf4faa9531 build(deps): bump insta from 1.26.0 to 1.28.0
Bumps [insta](https://github.com/mitsuhiko/insta) from 1.26.0 to 1.28.0.
- [Release notes](https://github.com/mitsuhiko/insta/releases)
- [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/insta/compare/1.26.0...1.28.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-21 15:41:33 +01:00
64ce271d08 Add test helpers for handlers and use them
Also expands the test coverage of the revoke handler.
2023-02-21 12:06:30 +01:00
a6cd4412c1 Write tests for the token revocation endpoint 2023-02-21 12:06:30 +01:00
543b4b229f Support for token revocation 2023-02-21 12:06:30 +01:00
823b27a714 Bump Rust dependencies 2023-02-16 15:14:27 +01:00
eb8bda6bbb Bump Rust dependencies 2023-02-13 17:27:33 +01:00
3b2b5a2ae3 build(deps): bump aws-smithy-async from 0.54.1 to 0.54.2
Bumps [aws-smithy-async](https://github.com/awslabs/smithy-rs) from 0.54.1 to 0.54.2.
- [Release notes](https://github.com/awslabs/smithy-rs/releases)
- [Changelog](https://github.com/awslabs/smithy-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/awslabs/smithy-rs/commits)

---
updated-dependencies:
- dependency-name: aws-smithy-async
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 16:16:40 +01:00
471e3c71eb build(deps): bump bcrypt from 0.13.0 to 0.14.0
Bumps [bcrypt](https://github.com/Keats/rust-bcrypt) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/Keats/rust-bcrypt/releases)
- [Commits](https://github.com/Keats/rust-bcrypt/compare/v0.13.0...v0.14.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 16:16:32 +01:00
649424003c build(deps): bump lettre from 0.10.1 to 0.10.2
Bumps [lettre](https://github.com/lettre/lettre) from 0.10.1 to 0.10.2.
- [Release notes](https://github.com/lettre/lettre/releases)
- [Changelog](https://github.com/lettre/lettre/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lettre/lettre/compare/v0.10.1...v0.10.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 16:15:13 +01:00
2f5d2dd8ca build(deps): bump hyper from 0.14.23 to 0.14.24
Bumps [hyper](https://github.com/hyperium/hyper) from 0.14.23 to 0.14.24.
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/v0.14.24/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v0.14.23...v0.14.24)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 16:12:27 +01:00
e3b995eae6 build(deps): bump uuid from 1.2.2 to 1.3.0
Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.2...1.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 00:57:34 +01:00
004427911f build(deps): bump async-trait from 0.1.63 to 0.1.64
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.63 to 0.1.64.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.63...0.1.64)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 00:57:24 +01:00
23392e9fc1 build(deps): bump futures from 0.3.25 to 0.3.26
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.25 to 0.3.26.
- [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.25...0.3.26)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 12:04:44 +01:00
bdce2210ea build(deps): bump crc from 3.0.0 to 3.0.1
Bumps [crc](https://github.com/mrhooray/crc-rs) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/mrhooray/crc-rs/releases)
- [Commits](https://github.com/mrhooray/crc-rs/compare/3.0.0...3.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 11:45:20 +01:00
84aa506645 build(deps): bump bytes from 1.3.0 to 1.4.0
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.3.0...v1.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 11:44:56 +01:00
311cad47c2 iana: manually implement JsonSchema/Display/FromStr/Serialize/Deserialize
This removes the dependency on serde_with and parse-display, and makes
the serde & schemars dependencies optional
2023-02-01 15:11:45 +01:00
792d3c793b Convert many match/if expressions to let-else 2023-02-01 10:37:04 +01:00
235b0b46a8 build(deps): bump indoc from 1.0.8 to 2.0.0
Bumps [indoc](https://github.com/dtolnay/indoc) from 1.0.8 to 2.0.0.
- [Release notes](https://github.com/dtolnay/indoc/releases)
- [Commits](https://github.com/dtolnay/indoc/compare/1.0.8...2.0.0)

---
updated-dependencies:
- dependency-name: indoc
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-01 09:52:41 +01:00
d81c0296d1 build(deps): bump futures-util from 0.3.25 to 0.3.26
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.25 to 0.3.26.
- [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.25...0.3.26)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 23:41:07 +01:00
d8817b9f25 build(deps): bump tokio from 1.24.2 to 1.25.0
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.24.2 to 1.25.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/commits/tokio-1.25.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-31 23:22:32 +01:00
ba2471d637 Fix the compat login_sso_redirect handler not committing the transaction 2023-01-31 17:11:13 +01:00
39c126318f Fix the authorization grant template
It previously relied on the client being in the authorization grant,
which is not the case anymore. This commit also adds a test to ensure
we're not breaking this template in the future.
2023-01-31 16:50:48 +01:00
87914cbcb3 Capture better errors in Sentry 2023-01-31 16:25:15 +01:00
875025467e Log more errors and setup Sentry integration 2023-01-30 18:04:44 +01:00
694e97e96c build(deps): bump wasmtime from 4.0.0 to 5.0.0
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v4.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: wasmtime
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-28 20:08:01 +01:00
6bda071e3f Bump all Rust dependencies to latest version (#828) 2023-01-27 14:23:59 +00:00
4850c79711 Merge branch 'main' into quenting/storage-repository 2023-01-27 11:16:38 +01:00
4d53e210b3 axum-utils: remove an unnecessary ?Sized bound 2023-01-27 10:30:59 +01:00
0c08e50846 Implement Clone on ClientCredentials 2023-01-26 18:14:59 +01:00
2171265dcd Revert "Implement Clone on ClientCredentials"
This reverts commit 1f3fe4fdbc.
2023-01-26 18:14:59 +01:00
d0c5eb3741 Implement Clone on ClientCredentials 2023-01-26 18:14:59 +01:00