1
0
mirror of https://github.com/0rangebananaspy/authelia.git synced 2024-09-14 22:47:21 +07:00
Commit Graph

462 Commits

Author SHA1 Message Date
Amir Zarrinkafsh
8685e095e9
fix(web): clarify 2fa informational message () 2021-10-07 10:54:48 +11:00
renovate[bot]
e070a499e1
build(deps): update dependency @types/react-router-dom to v5.3.1 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 10:35:04 +11:00
renovate[bot]
8251b7a785
build(deps): update dependency @types/react to v17.0.27 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 10:21:48 +11:00
renovate[bot]
0e120b187d
build(deps): update dependency @testing-library/react to v12.1.2 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-04 09:48:02 +11:00
Amir Zarrinkafsh
a32d030144
ci(buildkite): remove automatic retries for lint step ()
* ci(buildkite): remove automatic retries for lint step

* refactor(web): refactor commitlint hook for windows
2021-10-02 15:56:46 +10:00
renovate[bot]
0351546cf0
build(deps): update dependency axios to v0.22.0 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-01 21:42:36 +10:00
renovate[bot]
19aff56748
build(deps): update dependency @types/react to v17.0.26 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-01 10:49:09 +10:00
renovate[bot]
cbe1aad7fe
build(deps): update dependency @types/react to v17.0.25 () 2021-09-30 08:38:58 +10:00
Amir Zarrinkafsh
3d312cf3b9
refactor: replace yarn with pnpm ()
* Check for pnpm in authelia-scripts
* Improve husky hooks to check for required apps
* Use pnpm in coverage dockerfile
* Use pnpm in dev workflow
* Stop buildx log truncation
* Ignore pnpm lockfile in yamllint
* Update versions required for docker and docker-compose in contributing docs
2021-09-29 17:24:21 +10:00
renovate[bot]
2f3f0818c3
build(deps): update commitlint monorepo to v13.2.0 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 11:16:56 +10:00
renovate[bot]
a80b8d4933
build(deps): update dependency @testing-library/react to v12.1.1 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-29 10:04:45 +10:00
Amir Zarrinkafsh
c9f5b3de88
feat(web): replace babel-loader and terser with esbuild () 2021-09-28 16:27:06 +10:00
renovate[bot]
bbd85bd558
build(deps): update dependency @types/react-router-dom to v5.3.0 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-22 14:11:07 +10:00
renovate[bot]
958829f2f5
build(deps): update dependency @types/react to v17.0.24 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-22 13:58:04 +10:00
dependabot[bot]
e5ffd8dae9
build(deps): bump tmpl from 1.0.4 to 1.0.5 in /web ()
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-22 13:32:42 +10:00
renovate[bot]
fac597cb2f
build(deps): update dependency @types/react to v17.0.22 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-20 20:18:08 +10:00
renovate[bot]
e1ca24344a
build(deps): update dependency prettier to v2.4.1 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-16 19:59:26 +10:00
Amir Zarrinkafsh
11032bdf93
fix(server): remove obselete memory check warning ()
Given the fact that many Linux OSes are defaulting to CGroups v2 and also Authelia changing the default memory config for argon2id this warning is now obselete.
2021-09-16 12:26:34 +10:00
renovate[bot]
69f37d4161
build(deps): update dependency @types/react to v17.0.21 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-15 12:01:25 +10:00
renovate[bot]
8e155328b4
build(deps): update dependency @types/react-router-dom to v5.1.9 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-15 11:24:41 +10:00
renovate[bot]
dd8199d127
build(deps): update dependency eslint-import-resolver-typescript to v2.5.0 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-14 08:35:53 +10:00
renovate[bot]
763938a0b7
build(deps): update dependency @testing-library/react to v12.1.0 () 2021-09-11 22:47:28 +10:00
renovate[bot]
a091b341da
build(deps): update dependency @craco/craco to v6.3.0 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-11 16:00:13 +10:00
renovate[bot]
9cff1bb133
build(deps): update dependency typescript to v4.4.3 () 2021-09-11 11:46:23 +10:00
renovate[bot]
b770939983
build(deps): update dependency prettier to v2.4.0 ()
* build(deps): update dependency prettier to v2.4.0

* fix(web): jsxbracketsameline -> bracketsameline

Prettier 2.4 has renamed the jsxBracketSameLine option to bracketSameLine.

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-10 08:27:50 +10:00
renovate[bot]
dca3ba0cfb
build(deps): pin dependency husky to 7.0.2 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 13:44:43 +10:00
renovate[bot]
dedd44ea0d
build(deps): pin dependencies ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-09 13:30:00 +10:00
Amir Zarrinkafsh
cc765115b2
ci: add husky with pre-commit and commit-msg hooks ()
* ci: add husky with pre-commit and commit-msg hooks

This change includes two new hooks as part of our GitHub workflow with husky:

* `pre-commit`: Performs linting with golangci-lint and eslint/prettier
* `commit-msg`: Ensures that the commit messages conform to our guidelines and will error and provide context to a user when they do not.

The `prepare` command which has been included is executed each time a `yarn install` is executed.

* ci: extend @commitlint/config-conventional configuration

* fix: lint all dot js files
2021-09-09 12:22:11 +10:00
renovate[bot]
b6cc98b5cb
build(deps): update dependency axios to v0.21.4 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-07 10:44:49 +10:00
renovate[bot]
612f6d5674
build(deps): update dependency @types/react to v17.0.20 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-05 20:17:18 +10:00
renovate[bot]
05e549941b
build(deps): update dependency axios to v0.21.3 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-05 09:17:26 +10:00
renovate[bot]
1960a24124
build(deps): update dependency axios to v0.21.2 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-05 00:13:34 +10:00
renovate[bot]
5f2edf3d42
build(deps): update dependency typescript to v4.4.2 ()
* build(deps): update dependency typescript to v4.4.2

* fix(web): cast try catch err type to error

Typescript 4.x changes the default behaviour of try catch and its err type from `any` to [`unknown`](https://github.com/microsoft/TypeScript/pull/41013).

This change ensures that where we rely on said variable it is cast accordingly as an `Error`.

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-09-04 23:27:11 +10:00
Amir Zarrinkafsh
6b7b08d800
refactor(web): replace incorrect use of usecallback ()
* refactor(web): replace incorrect use of usecallback

Replaces incorrect usage of useCallback with useRef.

* refactor(web): onsignin...ref -> onsignin...callback

* fix(web): fix lint errors
2021-09-04 22:31:24 +10:00
renovate[bot]
622f25cab1
build(deps): update dependency react-router-dom to v5.3.0 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-04 13:47:03 +10:00
renovate[bot]
8f38fa97a5
build(deps): update dependency eslint-plugin-prettier to v4 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-31 10:23:06 +10:00
renovate[bot]
0e7170dd02
build(deps): update dependency react-router-dom to v5.2.1 () 2021-08-28 11:50:18 +10:00
Amir Zarrinkafsh
0c5c85cbe4
refactor(web): eslint glob pattern ()
The current eslint glob pattern is not Windows friendly, this change works for both Linux and Windows.
2021-08-22 21:16:19 +10:00
renovate[bot]
af9274a9c6
build(deps): update dependency eslint-plugin-prettier to v3.4.1 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-21 11:20:18 +10:00
renovate[bot]
7d105c6597
build(deps): update dependency @types/react to v17.0.19 () 2021-08-19 21:49:36 +10:00
renovate[bot]
401b732a00
build(deps): update dependency @types/react to v17.0.18 ()
* build(deps): update dependency @types/react to v17.0.18

* fix(web): fix broken yarn.lock

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-08-15 15:00:27 +10:00
renovate[bot]
cdda12a2bf
build(deps): update dependency @types/react to v17.0.17 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-11 14:05:46 +10:00
renovate[bot]
4f515328d6
build(deps): update dependency @types/react to v17.0.16 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-06 15:14:00 +10:00
renovate[bot]
cbedf79f86
build(deps): update font awesome ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-05 06:00:27 +10:00
renovate[bot]
02b6d5dcae
build(deps): update dependency @fortawesome/react-fontawesome to v0.1.15 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-04 06:27:29 +10:00
renovate[bot]
3d656eb5db
build(deps): pin dependencies ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-08-03 16:54:59 +10:00
Amir Zarrinkafsh
1b06e46f71
test(web): drop enzyme in favor of react-testing-library ()
* test(web): drop enzyme in favor of react-testing-library

Enzyme is falling behind in maintenance, it is currently maintained by one primary developer and still does [not support React 17](https://github.com/enzymejs/enzyme/pull/2430) despite it being released in October 2020.

[react-testing-library (RTL)](https://testing-library.com/docs) is [recommended by Facebook](https://reactjs.org/docs/test-utils.html#overview) and encourages writing tests that avoid testing implementation details.

* build(deps): update react monorepo to v17 (major)

* build(deps): remove @types/{enzyme,jest}
2021-08-03 16:25:13 +10:00
Clément Michaud
bc983ce9f5
fix: user is now redirected when authenticated ()
* fix(handlers,web): user is now redirected when authenticated

Fix: 

* remove dead code and fix ci issues

* fix infinite loop in frontend

* fix issue with integration tests

* handle bot recommendation

* fix integration test & add dot to comment

* fix last integration test

* Update api/openapi.yml

Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>

* Update web/src/services/SafeRedirection.ts

Co-authored-by: Amir Zarrinkafsh <nightah@me.com>

* Update web/src/services/SafeRedirection.ts

Co-authored-by: Amir Zarrinkafsh <nightah@me.com>

* Update api/openapi.yml

* Update openapi.yml

* refactor: valid -> safe

* refactor: adjust merge conflicts

* Apply suggestions from code review

Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>

* fix: adjust test return messaging

Co-authored-by: James Elliott <james-d-elliott@users.noreply.github.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2021-08-02 16:15:38 +10:00
renovate[bot]
45f683b6cd
build(deps): update dependency @material-ui/core to v4.12.3 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-30 22:28:36 +10:00
James Elliott
e77f79853a
fix(web): move reset password to after sign in ()
This is for a better user experience, specifically it makes it so when users tab through the elements in the login form they are selected in a logical order.

Fixes 
2021-07-30 09:29:57 +10:00