dependabot[bot]
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
dependabot[bot]
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
Quentin Gliech
ba2471d637
Fix the compat login_sso_redirect handler not committing the transaction
2023-01-31 17:11:13 +01:00
Quentin Gliech
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
Quentin Gliech
87914cbcb3
Capture better errors in Sentry
2023-01-31 16:25:15 +01:00
Quentin Gliech
875025467e
Log more errors and setup Sentry integration
2023-01-30 18:04:44 +01:00
Quentin Gliech
6bda071e3f
Bump all Rust dependencies to latest version ( #828 )
2023-01-27 14:23:59 +00:00
Quentin Gliech
4850c79711
Merge branch 'main' into quenting/storage-repository
2023-01-27 11:16:38 +01:00
Quentin Gliech
d14ca156ad
storage: split the repository trait
2023-01-24 16:05:14 +01:00
Quentin Gliech
6a8c79c497
storage: impl Repository for Box<impl Repository + ?Sized>
2023-01-24 09:51:49 +01:00
Quentin Gliech
a9facab131
Box the repository everywhere
2023-01-20 17:53:04 +01:00
Quentin Gliech
f4c64c2171
storage: ensure the repository trait can be boxed
...
and define some wrappers to map the errors
2023-01-19 19:10:35 +01:00
Quentin Gliech
876bc9fcb3
handlers: extract the PgRepository from the request
...
Also fix a bunch of clippy errors & doctests
2023-01-18 18:22:13 +01:00
Quentin Gliech
9005931e2a
handlers: box the rng and clock, and extract it from the state
2023-01-18 17:49:59 +01:00
Quentin Gliech
142fdbd45a
storage: make the Clock a trait
2023-01-18 12:20:30 +01:00
Quentin Gliech
73a921cc30
Split the storage trait from the implementation
2023-01-18 10:38:22 +01:00
Quentin Gliech
195203823a
storage: wrap the postgres repository in a struct
2023-01-13 18:03:37 +01:00
Quentin Gliech
488a666a8d
storage: remaining oauth2 repositories
...
- authorization grants
- access tokens
- refresh tokens
2023-01-12 18:26:04 +01:00
Quentin Gliech
36396c0b45
storage: repository pattern for the compat layer
2023-01-12 15:41:26 +01:00
dependabot[bot]
d21733f73f
build(deps): bump axum from 0.6.1 to 0.6.2
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.6.1 to 0.6.2.
- [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.1...axum-v0.6.2 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-12 10:34:37 +01:00
dependabot[bot]
50866cc1d2
build(deps): bump insta from 1.24.1 to 1.26.0
...
Bumps [insta](https://github.com/mitsuhiko/insta ) from 1.24.1 to 1.26.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.24.1...1.26.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-01-12 10:11:52 +01:00
dependabot[bot]
51b3af1111
build(deps): bump camino from 1.1.1 to 1.1.2
...
Bumps [camino](https://github.com/camino-rs/camino ) from 1.1.1 to 1.1.2.
- [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.1...camino-1.1.2 )
---
updated-dependencies:
- dependency-name: camino
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-12 10:06:47 +01:00
dependabot[bot]
87fa642671
build(deps): bump axum-macros from 0.3.0 to 0.3.1
...
Bumps [axum-macros](https://github.com/tokio-rs/axum ) from 0.3.0 to 0.3.1.
- [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-macros-v0.3.0...axum-macros-v0.3.1 )
---
updated-dependencies:
- dependency-name: axum-macros
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-12 10:06:33 +01:00
Quentin Gliech
9f0c9f1466
storage: cleanup access/refresh token lookups
2023-01-11 12:14:52 +01:00
Quentin Gliech
920869b583
storage: do less joins in compat sessions
2023-01-10 18:49:35 +01:00
Quentin Gliech
35787aa072
data-model: have more structs use a state machine
2023-01-09 18:02:32 +01:00
Quentin Gliech
39cd9a2578
data-model: don't embed the client in the auth grant
2023-01-09 10:49:51 +01:00
dependabot[bot]
19d0c488e3
build(deps): bump tokio from 1.23.1 to 1.24.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.23.1 to 1.24.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.1...tokio-1.24.1 )
---
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-07 12:39:06 +01:00
dependabot[bot]
04c37560e8
build(deps): bump tokio from 1.23.0 to 1.23.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.23.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.23.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-05 22:01:38 +01:00
Quentin Gliech
fb7c6f4dd1
storage: do less joins on authorization grants and refresh tokens
2023-01-05 16:49:19 +01:00
Quentin Gliech
603a26eabd
storage: oauth2 session repository
2023-01-05 16:44:56 +01:00
dependabot[bot]
fb222c7dec
build(deps): bump insta from 1.24.0 to 1.24.1
...
Bumps [insta](https://github.com/mitsuhiko/insta ) from 1.24.0 to 1.24.1.
- [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.24.0...1.24.1 )
---
updated-dependencies:
- dependency-name: insta
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-04 20:22:25 +01:00
Quentin Gliech
e26f75246d
storage: Load with less joins
...
This is done to simplify some queries, to avoid loading more data than
necessary, and in preparation of a proper cache layer
2023-01-04 18:06:17 +01:00
Quentin Gliech
a7883618be
Better tracing spans
2023-01-04 16:30:38 +01:00
Quentin Gliech
09a567ab17
storage: OAuth2 client repository
2023-01-04 16:30:32 +01:00
dependabot[bot]
1e07440167
Bump async-graphql from 5.0.4 to 5.0.5
...
Bumps [async-graphql](https://github.com/async-graphql/async-graphql ) from 5.0.4 to 5.0.5.
- [Release notes](https://github.com/async-graphql/async-graphql/releases )
- [Changelog](https://github.com/async-graphql/async-graphql/blob/master/CHANGELOG.md )
- [Commits](https://github.com/async-graphql/async-graphql/commits )
---
updated-dependencies:
- dependency-name: async-graphql
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-04 09:12:56 +01:00
dependabot[bot]
21ad6dd628
Bump insta from 1.23.0 to 1.24.0
...
Bumps [insta](https://github.com/mitsuhiko/insta ) from 1.23.0 to 1.24.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.23.0...1.24.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-01-04 09:12:48 +01:00
Quentin Gliech
53172d6a3f
strorage: browser session and user password repositories
2023-01-03 15:58:01 +01:00
Quentin Gliech
13a9d03647
storage: user and user email repository
2023-01-02 15:28:44 +01:00
Quentin Gliech
870a37151f
storage: upstream oauth session repository + unit tests
2022-12-30 15:39:51 +01:00
Quentin Gliech
0faf08fce2
storage: repository pattern for upstream oauth2 providers
2022-12-30 10:55:37 +01:00
Quentin Gliech
5969b574e2
WIP: repository pattern for upstream oauth2 links
2022-12-30 10:16:22 +01:00
Quentin Gliech
3bca5ab9be
Add the standard API scope to the compat token introspection
2022-12-28 11:33:53 +01:00
dependabot[bot]
f4ba9ba568
Bump serde from 1.0.151 to 1.0.152
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.151 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-26 23:29:52 +01:00
dependabot[bot]
6d74f0ae07
Bump thiserror from 1.0.37 to 1.0.38
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.37...1.0.38 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-21 22:54:53 +01:00
dependabot[bot]
1eda19de09
Bump serde_json from 1.0.89 to 1.0.91
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.89 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.89...v1.0.91 )
---
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-12-21 22:11:17 +01:00
dependabot[bot]
0d355d5500
Bump anyhow from 1.0.66 to 1.0.68
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.66 to 1.0.68.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.66...1.0.68 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-20 09:47:28 +01:00
dependabot[bot]
066265f2b1
Bump serde from 1.0.150 to 1.0.151
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.150 to 1.0.151.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.150...v1.0.151 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-20 09:28:32 +01:00
dependabot[bot]
6c0ab97aa2
Bump async-graphql from 5.0.3 to 5.0.4
...
Bumps [async-graphql](https://github.com/async-graphql/async-graphql ) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/async-graphql/async-graphql/releases )
- [Changelog](https://github.com/async-graphql/async-graphql/blob/master/CHANGELOG.md )
- [Commits](https://github.com/async-graphql/async-graphql/commits )
---
updated-dependencies:
- dependency-name: async-graphql
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-20 09:27:09 +01:00
dependabot[bot]
a6e7cb0b22
Bump indoc from 1.0.7 to 1.0.8
...
Bumps [indoc](https://github.com/dtolnay/indoc ) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/compare/1.0.7...1.0.8 )
---
updated-dependencies:
- dependency-name: indoc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-19 22:04:12 +01:00