Commit Graph

1047 Commits

Author SHA1 Message Date
Quentin Gliech
2265327bac handlers: box the rng and clock, and extract it from the state 2023-01-18 17:49:59 +01:00
Quentin Gliech
5f2a8b6cb1 Fix rustfmt 2023-01-18 12:27:44 +01:00
Quentin Gliech
7099a8df20 Fix rustdoc lints 2023-01-18 12:25:49 +01:00
Quentin Gliech
2c26ddb249 storage: make the Clock a trait 2023-01-18 12:20:30 +01:00
Quentin Gliech
eb4ce7e7f0 Split the storage trait from the implementation 2023-01-18 10:38:22 +01:00
Quentin Gliech
b7d342daf6 storage: don't use references for pagination 2023-01-17 16:44:22 +01:00
Quentin Gliech
1be5c9f5cf storage: add tests for the upstream provider paginated list 2023-01-17 16:11:13 +01:00
Quentin Gliech
3ccaafbbe9 storage: simplify the paginated queries 2023-01-17 15:09:53 +01:00
Quentin Gliech
7e116b1a1c storage: test compat {session, access token, refresh token} repositories 2023-01-16 19:27:43 +01:00
Quentin Gliech
8c3b78ec61 storage: tests for the user {,email,password,session} repositories 2023-01-16 17:56:51 +01:00
Quentin Gliech
d0d7f1653f storage: simplify pagination 2023-01-13 18:25:25 +01:00
Quentin Gliech
2d781d32ec storage: wrap the postgres repository in a struct 2023-01-13 18:03:37 +01:00
Quentin Gliech
8e5b3e46ea storage: remaining oauth2 repositories
- authorization grants
 - access tokens
 - refresh tokens
2023-01-12 18:26:04 +01:00
Quentin Gliech
af267657c5 storage: repository pattern for the compat layer 2023-01-12 15:41:26 +01:00
Quentin Gliech
3a1fc8982c storage: cleanup access/refresh token lookups 2023-01-11 12:14:52 +01:00
Quentin Gliech
f0a44fcd5e storage: do less joins in compat sessions 2023-01-10 18:49:35 +01:00
Quentin Gliech
2b2f452d96 data-model: have more structs use a state machine 2023-01-09 18:02:32 +01:00
Quentin Gliech
31779f5222 data-model: don't embed the client in the auth grant 2023-01-09 10:49:51 +01:00
Quentin Gliech
8b8b21329e storage: do less joins on authorization grants and refresh tokens 2023-01-05 16:49:19 +01:00
Quentin Gliech
644eb61dd4 storage: oauth2 session repository 2023-01-05 16:44:56 +01:00
Quentin Gliech
6053e24d73 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
9d8eee12f8 Better tracing spans 2023-01-04 16:30:38 +01:00
Quentin Gliech
94b6d31fe9 storage: OAuth2 client repository 2023-01-04 16:30:32 +01:00
Quentin Gliech
26b6023b33 Switch the ulid dependency override the main repo 2023-01-04 11:28:08 +01:00
Quentin Gliech
3e312ef469 Allow updating clients from the config without truncating them 2023-01-03 16:43:18 +01:00
Quentin Gliech
f77923599b strorage: browser session and user password repositories 2023-01-03 15:58:01 +01:00
Quentin Gliech
9f371a7a53 storage: trace storage operations better 2023-01-02 16:54:44 +01:00
Quentin Gliech
bd7f949300 storage: user and user email repository 2023-01-02 15:28:44 +01:00
Quentin Gliech
0fb0e6d5cd storage: upstream oauth session repository + unit tests 2022-12-30 15:39:51 +01:00
Quentin Gliech
9b1dc0880a storage: repository pattern for upstream oauth2 providers 2022-12-30 10:55:37 +01:00
Quentin Gliech
a82074fdb1 WIP: repository pattern for upstream oauth2 links 2022-12-30 10:16:22 +01:00
Quentin Gliech
854086992a Bump rust-opa-wasm and wasmtime 2022-12-28 13:11:45 +01:00
Quentin Gliech
d3610e45f3 Bump Storybook to -beta.15 2022-12-28 12:22:10 +01:00
Quentin Gliech
2ac0011488 Add the standard API scope to the compat token introspection 2022-12-28 11:33:53 +01:00
dependabot[bot]
df5df254b1 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]
5f6a3dd1e5 Bump clap from 4.0.31 to 4.0.32
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.31 to 4.0.32.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.31...v4.0.32)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-23 23:23:19 +01:00
dependabot[bot]
7869684652 Bump parse-display from 0.7.0 to 0.8.0
Bumps [parse-display](https://github.com/frozenlib/parse-display) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/frozenlib/parse-display/releases)
- [Changelog](https://github.com/frozenlib/parse-display/blob/master/CHANGELOG.md)
- [Commits](https://github.com/frozenlib/parse-display/compare/v0.7.0...v0.8.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-12-22 20:59:53 +01:00
dependabot[bot]
ef9059ab8c Bump libc from 0.2.138 to 0.2.139
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.138 to 0.2.139.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.138...0.2.139)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-22 20:59:35 +01:00
dependabot[bot]
ce54d848b0 Bump clap from 4.0.29 to 4.0.31
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.29 to 4.0.31.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.29...v4.0.31)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-22 20:59:28 +01:00
dependabot[bot]
41cb369ef6 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]
ec9136c4b3 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]
6a10bf9766 Bump async-trait from 0.1.59 to 0.1.60
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.59 to 0.1.60.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.59...0.1.60)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-21 22:11:10 +01:00
dependabot[bot]
06a7a72e2c 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]
92ada27bb8 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]
43c3c85fe0 Bump serde_yaml from 0.9.14 to 0.9.16
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.14 to 0.9.16.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.14...0.9.16)

---
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-12-20 09:28:06 +01:00
dependabot[bot]
c9f267a39e 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]
fd0adbf145 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
Kévin Commaille
c563db518e Don't enforce RS256 ID Token signing alg in provider metadata 2022-12-18 16:02:48 +01:00
Quentin Gliech
5b8f6885e6 docker: Build with musl instead of glibc 2022-12-17 12:03:26 +01:00
dependabot[bot]
7807969b9b Bump cookie from 0.16.1 to 0.16.2
Bumps [cookie](https://github.com/SergioBenitez/cookie-rs) from 0.16.1 to 0.16.2.
- [Release notes](https://github.com/SergioBenitez/cookie-rs/releases)
- [Changelog](https://github.com/SergioBenitez/cookie-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/SergioBenitez/cookie-rs/compare/0.16.1...0.16.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-17 12:03:14 +01:00