Commit Graph

1721 Commits

Author SHA1 Message Date
Kerry Archibald
009ea8495c browser session detail page 2023-09-13 01:41:31 +02:00
Kerry Archibald
d4fe0e6d65 fix bug in compatsessiondetail createdAt -> finishedAt 2023-09-13 01:41:31 +02:00
Kerry Archibald
09860eb26c add util hook for unwrapping current browser session id 2023-09-13 01:41:31 +02:00
Kerry Archibald
e693759a39 reinstate link to browser session detail 2023-09-13 01:41:31 +02:00
Quentin Gliech
f1cc93ad0c frontend: remove individual storybook addons that are included in the essentials 2023-09-12 16:11:35 +02:00
dependabot[bot]
d712ed9b37 build(deps-dev): bump the storybook group in /frontend with 8 updates
Bumps the storybook group in /frontend with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/actions) | `7.4.0` | `7.4.1` |
| [@storybook/addon-backgrounds](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/backgrounds) | `7.4.0` | `7.4.1` |
| [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/controls) | `7.4.0` | `7.4.1` |
| [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/docs) | `7.4.0` | `7.4.1` |
| [@storybook/addon-essentials](https://github.com/storybookjs/storybook/tree/HEAD/code/addons/essentials) | `7.4.0` | `7.4.1` |
| [@storybook/react](https://github.com/storybookjs/storybook/tree/HEAD/code/renderers/react) | `7.4.0` | `7.4.1` |
| [@storybook/react-vite](https://github.com/storybookjs/storybook/tree/HEAD/code/frameworks/react-vite) | `7.4.0` | `7.4.1` |
| [storybook](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/cli) | `7.4.0` | `7.4.1` |


Updates `@storybook/addon-actions` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/addons/actions)

Updates `@storybook/addon-backgrounds` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/addons/backgrounds)

Updates `@storybook/addon-controls` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/addons/controls)

Updates `@storybook/addon-docs` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/addons/docs)

Updates `@storybook/addon-essentials` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/addons/essentials)

Updates `@storybook/react` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/renderers/react)

Updates `@storybook/react-vite` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/frameworks/react-vite)

Updates `storybook` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v7.4.1/code/lib/cli)

---
updated-dependencies:
- dependency-name: "@storybook/addon-actions"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-backgrounds"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-controls"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-docs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/addon-essentials"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/react"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: "@storybook/react-vite"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
- dependency-name: storybook
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: storybook
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 16:11:35 +02:00
Quentin Gliech
2938ec90fc frontend: update unit tests post ua-parser-js upgrade 2023-09-12 15:58:56 +02:00
dependabot[bot]
39526f5d40 build(deps): bump ua-parser-js from 1.0.35 to 1.0.36 in /frontend
Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 1.0.35 to 1.0.36.
- [Release notes](https://github.com/faisalman/ua-parser-js/releases)
- [Changelog](https://github.com/faisalman/ua-parser-js/blob/master/changelog.md)
- [Commits](https://github.com/faisalman/ua-parser-js/commits)

---
updated-dependencies:
- dependency-name: ua-parser-js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 15:58:56 +02:00
dependabot[bot]
c513384967 build(deps-dev): bump the vitest group in /frontend with 2 updates
Bumps the vitest group in /frontend with 2 updates: [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@vitest/coverage-v8` from 0.34.3 to 0.34.4
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.34.4/packages/coverage-v8)

Updates `vitest` from 0.34.3 to 0.34.4
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v0.34.4/packages/vitest)

---
updated-dependencies:
- dependency-name: "@vitest/coverage-v8"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
- dependency-name: vitest
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: vitest
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 15:40:33 +02:00
dependabot[bot]
4dfe0e089b build(deps): bump @vector-im/compound-web in /frontend
Bumps [@vector-im/compound-web](https://github.com/vector-im/compound-web) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/vector-im/compound-web/releases)
- [Commits](https://github.com/vector-im/compound-web/compare/v0.3.1...v0.4.0)

---
updated-dependencies:
- dependency-name: "@vector-im/compound-web"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 15:31:33 +02:00
dependabot[bot]
dd8084cab8 build(deps): bump event-listener from 2.5.3 to 3.0.0
Bumps [event-listener](https://github.com/smol-rs/event-listener) from 2.5.3 to 3.0.0.
- [Release notes](https://github.com/smol-rs/event-listener/releases)
- [Changelog](https://github.com/smol-rs/event-listener/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/event-listener/compare/v2.5.3...v3.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 15:31:20 +02:00
dependabot[bot]
34e95a793f build(deps): bump serde_json from 1.0.105 to 1.0.106
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.105 to 1.0.106.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.105...v1.0.106)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 15:30:46 +02:00
dependabot[bot]
aa3f9fe712 build(deps-dev): bump the eslint group in /frontend with 1 update
Bumps the eslint group in /frontend with 1 update: [eslint](https://github.com/eslint/eslint).

- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.48.0...v8.49.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: eslint
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 15:26:33 +02:00
Kerry Archibald
677cfc9089 mock datetime properly 2023-09-12 15:25:55 +02:00
Kerry Archibald
61c6f5b335 test sessiondetail components 2023-09-12 15:25:55 +02:00
Kerry Archibald
01672ef64d test compatsessiondetail 2023-09-12 15:25:55 +02:00
Kerry Archibald
7ede6e95b9 tweak header style to match design 2023-09-12 15:25:07 +02:00
Kerry Archibald
9f5d5d34b4 add padding to container bottom 2023-09-12 15:25:07 +02:00
Quentin Gliech
0c4f3c4982 graphql: Fix the createOauth2Session mutation not persisting the changes to the database 2023-09-12 11:31:19 +02:00
Quentin Gliech
bfcd2fb967 storage: make the access token expiration optional 2023-09-11 12:03:42 +02:00
Quentin Gliech
37ae1420f3 data-model: make the access token expiration optional 2023-09-11 12:03:42 +02:00
Quentin Gliech
e8f17924c2 Add a GraphQL mutation to create arbitrary OAuth2 sessions. 2023-09-11 12:03:42 +02:00
Quentin Gliech
f445e369b3 ci: better workaround for the macOS build not being cached 2023-09-09 11:07:39 +02:00
Quentin Gliech
aba103021c Have more granular errors on the refresh token grant 2023-09-08 15:19:43 +02:00
Quentin Gliech
90f18bc59d Add the Sentry event ID in error response headers 2023-09-08 15:19:43 +02:00
Quentin Gliech
8d095af97c ci: work around cargo-zigbuild cache bug 2023-09-08 15:05:59 +02:00
dependabot[bot]
bb9d08e9c4 build(deps): bump the jotai group in /frontend with 1 update
Bumps the jotai group in /frontend with 1 update: [jotai](https://github.com/pmndrs/jotai).

- [Release notes](https://github.com/pmndrs/jotai/releases)
- [Commits](https://github.com/pmndrs/jotai/compare/v2.4.1...v2.4.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 13:44:51 +02:00
dependabot[bot]
cf27ba2950 build(deps-dev): bump happy-dom from 11.0.1 to 11.0.2 in /frontend
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 11.0.1 to 11.0.2.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v11.0.1...v11.0.2)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 13:44:45 +02:00
dependabot[bot]
daa4af3c4a build(deps): bump bytes from 1.4.0 to 1.5.0
Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.4.0 to 1.5.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.4.0...v1.5.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-09-08 13:44:34 +02:00
dependabot[bot]
6630fd9ca8 build(deps): bump async-graphql from 6.0.5 to 6.0.6
Bumps [async-graphql](https://github.com/async-graphql/async-graphql) from 6.0.5 to 6.0.6.
- [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-09-08 13:44:27 +02:00
dependabot[bot]
7a9ab5c743 build(deps): bump opa-wasm from 4997f99 to d07721d
Bumps [opa-wasm](https://github.com/matrix-org/rust-opa-wasm) from `4997f99` to `d07721d`.
- [Commits](4997f99223...d07721d048)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 13:44:22 +02:00
Quentin Gliech
87ea9ba0b9 frontend: upgrade compound & use the Badge component to mark the current session 2023-09-08 11:51:01 +02:00
Kerry Archibald
1f48de2030 link to client detail, design pass on client detail page 2023-09-08 11:37:26 +02:00
Kerry Archibald
23b81fd9c3 test clientavatar 2023-09-08 10:41:26 +02:00
Kerry Archibald
4ab1d15aca add client logo to session tile and detail 2023-09-08 10:41:26 +02:00
dependabot[bot]
eb9729b810 build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3.1.2...v3.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 11:52:39 +02:00
dependabot[bot]
21a518d3dd build(deps-dev): bump happy-dom from 10.11.2 to 11.0.1 in /frontend
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 10.11.2 to 11.0.1.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v10.11.2...v11.0.1)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 11:52:27 +02:00
Kerry Archibald
be9355aeef add spinners to session end buttons 2023-09-07 10:13:51 +02:00
Quentin Gliech
cb6d89e308 Compoundify the consent screens 2023-09-06 15:58:54 +02:00
dependabot[bot]
edbc1769e0 build(deps-dev): bump @types/react-test-renderer in /frontend
Bumps [@types/react-test-renderer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-test-renderer) from 18.0.0 to 18.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-test-renderer)

---
updated-dependencies:
- dependency-name: "@types/react-test-renderer"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 10:08:35 +02:00
dependabot[bot]
15b0ea3c2a build(deps-dev): bump @types/node from 20.5.7 to 20.5.9 in /frontend
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.5.7 to 20.5.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 09:42:36 +02:00
Quentin Gliech
2d27ca978d Test that a client_credentials token with the admin scope can add a user 2023-09-06 09:35:34 +02:00
Quentin Gliech
5ec7e7ef05 Suggestion from code review
Co-authored-by: Hugh Nimmo-Smith <hughns@users.noreply.github.com>
2023-09-06 09:35:34 +02:00
Quentin Gliech
b0c9e02b26 policy: only require redirect_uris for the authorization_code and implicit grants 2023-09-06 09:35:34 +02:00
Quentin Gliech
28b408878b Only allow using the refresh token grant if it was asked during the client registration 2023-09-06 09:35:34 +02:00
Quentin Gliech
af7066a60d oauth2-types: Only require redirect_uris & change the default response type for the auth code grant and implicit grant 2023-09-06 09:35:34 +02:00
Quentin Gliech
53c6e8a871 Advertise the client_credentials grant in the discovery document 2023-09-06 09:35:34 +02:00
Quentin Gliech
a53040b94b Implement the client credentials grant 2023-09-06 09:35:34 +02:00
Quentin Gliech
07d895e33a storage: add a method to create an OAuth 2.0 session for a client credentials grant 2023-09-06 09:35:34 +02:00
Quentin Gliech
03a4d56415 policy: prepare for the client credentials grant 2023-09-06 09:35:34 +02:00