50 Commits

Author SHA1 Message Date
Thomas Dupont
c902638bde ci: docker test fixes 2022-07-15 07:57:24 +02:00
Thomas Dupont
821bc8a5c4 ci: build docker image for ARM/v7 32bit instead of ARM64 2022-07-13 11:08:34 +02:00
Thomas Dupont
9049e9de64 ci: build docker images for ARM64 too 2022-07-12 15:36:15 +02:00
dependabot[bot]
df2926a52f chore(deps): bump actions/setup-python from 2 to 4
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 10:31:37 +02:00
Thomas Dupont
027c803b33 feat: build versioned documentation site form CI pipeline 2022-07-04 13:44:45 +02:00
Thomas Dupont
01595577a8 feat: add test phase for docker images 2022-06-30 09:02:07 +02:00
dependabot[bot]
081593e39b chore(deps): bump docker/login-action from 1 to 2
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-09 08:41:02 +02:00
dependabot[bot]
80b629862b chore(deps): bump docker/metadata-action from 3 to 4
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 3 to 4.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-09 08:40:55 +02:00
dependabot[bot]
b3176ef8ef chore(deps): bump docker/build-push-action from 2 to 3
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-09 08:40:48 +02:00
dependabot[bot]
3c6a411256 chore(deps): bump docker/setup-buildx-action from 1 to 2
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-09 08:40:38 +02:00
Jasper Vaneessen
6dd77cf8d8
test: Validate/test all default configs
* chore: add base script to test-run all configs

* chore: job for test-deploy

* chore: fine-tuning config validation

* chore: config validation fully functional

* chore: fix https-file-cli validation (missing var)

* fix: generate self-signed CA through openSSL

* chore: streamlining test script + review

* chore: validate-configs accepts config args

* chore: cleanup and best-practices

* chore: test-configs as precond + needs consistency

* chore: changes after review

* chore: fix argument variable expansion

* chore: more tweaks to script
2022-04-25 15:44:19 +02:00
Joachim Van Herwegen
3d6e3d2e39 chore: Drop support for Node 12 2022-04-21 14:54:12 +02:00
Joachim Van Herwegen
dd568869ca chore: Increase CI timeout to 15 minutes 2022-04-11 10:15:24 +02:00
Joachim Van Herwegen
9ac00ca82c chore: Remove validate-components from CI
This test has no added value over just starting the server,
which we already do in other tests,
and has a drastic impact on the CI execution time.
2022-03-28 10:56:45 +02:00
Renovate Bot
982d57e1d2 chore(deps): update actions/download-artifact action to v3 2022-03-08 09:13:30 +01:00
Renovate Bot
311d3e0ff0 chore(deps): update actions/upload-artifact action to v3 2022-03-08 09:13:00 +01:00
Renovate Bot
196c529f6b chore(deps): update actions/checkout action to v3 2022-03-08 09:12:21 +01:00
Renovate Bot
9f6fdab0be chore(deps): update actions/setup-node action to v3 2022-03-08 09:11:11 +01:00
Thomas Dupont
9527b730b0 add next and edge tags 2022-02-07 08:48:33 +01:00
Thomas
65d1eeb0a2
chore: Build and push official docker image in CI
* docker job added to ci.yml

* removed temporary manual build stuff

* updated readme for new docker image

* updated changelog

* Revert "updated changelog"

This reverts commit 20d99a2e27e19ffb7a31cbddddb7daab8206b3c8.

Co-authored-by: Thomas Dupont <thomas.dupont@intec.ugent.be>
2022-01-21 11:00:48 +01:00
Joachim Van Herwegen
06663f3079 chore: Remove docker references from Windows integration tests 2021-11-05 16:19:54 +01:00
Joachim Van Herwegen
c2d811754b chore: Run integration tests on Windows
Also removed 17.0 from unit tests due to being a non-LTS version
2021-11-05 16:13:12 +01:00
Ruben Verborgh
e1a4ef29b9 chore: Run CI on version branches. 2021-11-02 13:36:18 +01:00
Ruben Verborgh
a17731ed1e chore: Run CI on Node 17. 2021-11-02 13:23:40 +01:00
Ruben Verborgh
557ba32577 chore: Gather coverage from all OSes. 2021-11-02 13:23:23 +01:00
Ruben Verborgh
b8db72dfd3 chore: Run integration tests separately. 2021-11-02 12:55:09 +01:00
Ruben Verborgh
449a5a6e42 chore: Also build branches with slashed names. 2021-07-21 22:54:59 +02:00
Ruben Verborgh
232a47d294 chore: Run CI on all branches. 2021-07-20 12:07:20 +02:00
Matthieu Bosquet
fdd6f853b6 chore: Default to node 16 runtime 2021-07-16 14:32:42 +01:00
Joachim Van Herwegen
77f8e79bc2
test: Remove Node 15.x from CI 2021-07-14 11:55:17 +02:00
Joachim Van Herwegen
d85e716724 chore: Move components validation to separate task 2021-06-30 10:24:13 +02:00
jaxoncreed
1d65143e89
feat: Add identity provider (#455)
* Add identity provider handler as a dependency

* Temp Identity

* Figured out how to get koa to work

* Hooked up idp to networking

* Feat/idp architecture refactor (#430)

* Logs in with solid oidc

* Refactored Provider

* Attempt to hook up dependencies

* Partial wiring of oidc provider components

* IdP networking now works with architecture

* Interaction Handlers Set Up

* fix: Rename & adapt to CSS

* Included Login Interaction

* Refactored architecture to bind Interaction Policy to HttpHandlers

Co-authored-by: Matthieu Bosquet <matthieubosquet@gmail.com>

* fix: Rebase on master

* fix: DI after rebase

* Reimplemented Routing

* Renamed modules and removed ProviderFactory (#450)

* refactor: Solid IdP DI

* refactor: IdP interaction handler DI

* refactor: IdP interaction waterfall

* refactor: Remove unnecessary legacy URL parse

* fix: Add legacy parse back in

* feat: adapter & fix: handlers

* Removed adapter factory

* fix: refactor IdP

* fix: refactor IdP

* fix: refactor IdP

* feat: Add IdP to file storage config

* fix: Unintended commit

* fix: Components ignore

* feat: Basic resource store adapter

* Partially complete idp routing

* Set up initial routing injection graph

* Clean up ResourceStorageAdapter

* Refactored configuration architecture

* Hooked up Login UIs (#518)

* feat: Use template path & run fileserver

* feat: Use util function to read resource

* Fixed DI JSON-LD context

* fixed rendering

* WebId validator

* Set up persistent storage for loing and register

* Fixed ejs template routing

* Refactored StorageAdapters

* NSS login successful

* Forgot password infrastructure

* Can send email (#557)

* Can send email

* fix: IdP crashes if interaction ID doesn't exist (#587)

* feat: Require an issuer registration token

* fix: Issuer registration token typo in error

* fix: Remove dummy IdP storage adapter

* fix: Remove unused library lodash

* fix: Remove unused library lru-cache

* Production ready keystore

* Ruben comments before clownface removal

* Removed clownface

* Change key value store

* Completed Ruben's comments

* Added comments to each class

* Fixed errors on login

* Ruben feedback

* Refactored out getPostRenderHandler

* Identity provider tests (#622)

* corrected tests lacking <void> on promises

* Added files for all idp tests

* Added unfinished tests for all added files

* ErrorHandlingWaterfallHandler

* RenderEjsHandler and RouterHandler tests

* GetPostRouterHandler and BasicOnErrorHandler tests

* Corrected tests for updates to Idp

* fix: missing export

* fix: audience claim

* Client Id Support (#630)

* Added client_id for the auth challenge

* Update src/identity/storage/ClientWebIdFetchingStorageAdapterFactory.ts

Co-authored-by: Matthieu Bosquet <matthieubosquet@gmail.com>

Co-authored-by: Matthieu Bosquet <matthieubosquet@gmail.com>

* fix: Rebase fixes

* Several minor Idp changes/refactors (#656)

* fix: Minor changes

* refactor: Split EmailPasswordInteractionPolicy

* refactor: Remove ErrorHandlingWaterfallHandler

* refactor: Clean up dependencies

* fix: Add dummy IdentityProviderHandler to fix integration tests

* Replace KeyValueStore with KeyValueStorage (#663)

* feat: Create WrappedExpiringStorage

* refactor: Update ResourceStoreEmailPasswordStore to use KeyValueStorage

* refactor: Update KeyGeneratingIdpConfigurationGenerator to use KeyValueStorage

* refactor: Update ResourceStoreStorageAdapterFactory to use ExpiringStorage

* refactor: Removed KeyValueStore

* refactor: Simplify EmailPassword handlers (#664)

* refactor: Order index.ts

* test: Add EmailPasswordForgotPasswordHandler unit tests

* test: Add EmailPasswordGetResetPasswordHandler unit tests

* test: Add EmailPasswordLoginHandler unit tests

* test: Add EmailPasswordRegistrationHandler unit tests

* test: Add EmailPasswordResetPasswordHandler unit tests

* test: Remove unnecessary test file

* feat: Basic instructions for using the IdP

* fix: IdP instructions and add example WebID

* fix: IdP registration copy

* fix: IdP instruction editorial

* Update README.md

Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>

* Update README.md

Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>

* test: Add KeyGeneratingIdpConfigurationGenerator unit tests

* test: Add KeyValueEmailPasswordStore unit tests

* test: Create IdP integration test

* test: Add EmailPasswordInteractionPolicy unit tests

* test: Add BasicIssuerReferenceWebIdOwnershipValidator unit tests

* test: Add ChooseInitialInteractionHandler unit tests

Also fixes the config warning.

* test: Add EjsTemplateRenderer unit tests

* test: Add EmailSender unit tests

* test: Add FormDataUtil unit tests

* test: Add IdpRouteController unit tests

* test: Add OidcInteractionCompleter unit tests

* refactor: Simplify ClientWebIdFetchingStorageAdapterFactory

* test: Add ClientWebIdFetchingStorageAdapterFactory unit tests

* refactor: Fix ejs html warnings

* test: Add step to test logging in again

Included are updates to handle cookies more correctly.

* feat: Add IdpConfirmHttpHandler

This way there's a handler for the confirm page.

* test: Add ExpiringStorageAdapterFactory unit tests

* test: Add IdentityProviderFactory unit tests

* test: Add IdentityProviderHttpHandler unit tests

* refactor: Minor refactors

* refactor: Use jose instead of node-jose

* refactor: Use jose instead of node-jose

Reduces the number of dependencies since other libraries
also depend on jose.

* Update src/identity/configuration/KeyGeneratingIdpConfigurationGenerator.ts

Co-authored-by: Matthieu Bosquet <matthieubosquet@gmail.com>

* refactor: Use interfaces instead of abstract classes

* refactor: Make WebIdOwnershipValidator an AsyncHandler

* refactor: Make TemplateRenderer an AsyncHandler

* fix: Fix typing issue

* fix: Convert JWK to plain object for node 15

* feat: Update CI configuration

--ignore-scripts was removed because it also stopped dependency scripts,
which was a requirement for bcrypt.
15.0 was removed since that version doesn't run the required scripts after install.
14.0 was removed since the somehow it caused the solid-authn client to do the wrong calls.

* test: Run integration tests on Node 14.2

This is the lowest 14.x version where the IdP integration tests succeed.

* feat: Use ErrorResponseWriter for handling oidc errors

* test: Mock Date in OidcInteractionCompleter tests

* fix: Correctly generate new identifiers

Previously there could be double slashes if the base URL ended in slash.

* fix: Correctly handle storagePathName in ExpiringStorageAdapterFactory

* fix: Fix issue with new CliRunner test in rebase

* fix: Handle unknown errors more consistently

* feat: Make idp parameter dynamic

* feat: Add more logging

* refactor: Link css instead of injecting

* fix: Fix redis integration tests with idp

* refactor: Shorten idp class names

* refactor: Remove e-mail configuration from default config

* feat: Store JsonResourceStorage data in a single container

* feat: Make sure expired data gets removed at some point

* feat: Only accept strings as keys in KeyValueStorage

* fix: Various minor fixes based on review

Co-authored-by: Matthieu Bosquet <matthieubosquet@gmail.com>
Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2021-05-04 13:17:43 +02:00
Joachim Van Herwegen
f4a09a414d test: Time out CI jobs after 10 minutes 2021-04-27 16:13:53 +02:00
Ruben Verborgh
d5cc2aa69d chore: Test on Node 16. 2021-04-27 14:26:14 +02:00
Arthur Joppart
99d0173213
feat: Add redis based locking mechanism
* feat: redis based locking mechanism

* fix: adapted to review and wrote unit tests

* fix: adapted to review(Woutermont)

* fix: adapted to review and expanded tests

* test: redlock integration tests

* test: corrected file name

* test: tests should run on CI now

* test: improved tests and minor changes according to review

* fix: forgot describeIf docker

* test: adapted to review

* test: Mock all redis dependencies

Co-authored-by: Joachim Van Herwegen <joachimvh@gmail.com>
2021-04-19 09:45:25 +02:00
Ruben Verborgh
df19aa26ef chore: Use main as default branch.
Closes https://github.com/solid/community-server/issues/365
2021-02-03 09:11:42 +01:00
Ruben Verborgh
d7256fb20a test: Test on Node 15. 2021-01-27 09:37:20 +01:00
Ruben Verborgh
f1304d8d04 test: Run CI on first and last of each stable version. 2021-01-26 23:32:44 +01:00
Ruben Verborgh
93c666ca25 docs: Only release docs for specific versions. 2021-01-06 12:13:09 +01:00
Ruben Verborgh
15d1ae179f test: Also run CI on Windows. 2021-01-04 16:52:17 +01:00
Renovate Bot
53479eb557
chore(deps): update actions/setup-node action to v2 2020-12-20 23:15:51 +00:00
Ruben Verborgh
b25948a084 chore: Publish docs on gh-pages. 2020-12-19 22:27:13 +01:00
Ruben Verborgh
370b830cbe chore: Add typedoc. 2020-12-19 22:27:12 +01:00
Ruben Verborgh
99165e8bc2 chore: Make script names consistent. 2020-12-13 15:49:00 +00:00
Ruben Verborgh
6ee56a6d67 chore: Separate dependency installation and build steps. 2020-12-10 16:49:29 +00:00
Ruben Verborgh
dedf579a08 test: Type-check test files.
Closes https://github.com/solid/community-server/issues/415
2020-12-10 16:42:07 +00:00
Ruben Verborgh
c182d252b1 test: Use separate linter job. 2020-12-07 23:17:54 +01:00
Ruben Verborgh
03ffaaed43 change: Drop Node 10 support. 2020-11-27 08:55:18 +01:00
Aaron Coburn
bb9df99af4
fix: Better CI support for GH Actions from remote forks (#353)
* no-op commit

* Support CI on pull request events

* Use pull_request_target event

* Remove pull_request_target event

* fix default branch name
2020-11-25 09:29:53 +01:00
Ruben Verborgh
ec0052e3ec chore: Switch from Travis CI to GitHub Actions. 2020-11-24 16:05:20 +01:00