Commit Graph

10 Commits

Author SHA1 Message Date
Jacob Overgaard
5ae631b223 Authentication using OpenID (#654)
* install app auth

* add service to handle auth

* add openid handling to general app

* move props to constructor

* update default api url to https

* add support for adjusting umbracoUrl from outside

* use origin url for redirect if empty from env

* merge origin/main

* merge origin/main

* add redirect uri support

* only check auth on firstUpdated

* merge origin/main

* fix redirect_uri

* listen for auth-success events before anything else

* save current route to restore after login

* set token function for all OpenAPI requests

* include credentials after login

* update openapi-typescript-codegen

* generate new models with bugfixes for CancelablePromise and request

* remove auth-success event

* wait with fetchServiceConfiguration until we actually need to query the server

* revert change where service configuration was delayed

* use LocalStorageBackend to save/restore token state

* improve documentation

* cleanup todos

* improve docs

* update documentation and set everything to private fields

* remove undefined

* add a token to provide server url

* add more docs

* provide the base url of the server through a token

* add more docs

* fix import

* allow to override the backoffice base url through a property

* use private modifier

* duplicate login image

* make generic error element to use as error page

* check for initialisation errors and show error page if necessary

* rename class to UmbAuthFlow

* control the notification manually with runtime status call

* add styling

* add stack to problemdetails

* forward all errors

* support problemdetails rendering

* allow passthrough without a token

* move error logic to function

* add support for BOOT_FAILED and default errors

* rename background img

* remove false character

* check for isMocking to simplify auth flow

* add support for generic ApiErrors

* make sure all errors from api controllers are ApiError or CancelError to be able to fine-tune the handling of them

* remove unused legacy method

* show notifications (for now) after session expiration

* break early on CancelErrors

* revert options argument

* remove login token after a 401 is detected

* catch api errors

* prefix class with Umb

* throw errors instead of using ProblemDetailsModel

* add TODO

* add TODO

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-04-24 12:27:25 +02:00
Jacob Overgaard
5e2a2ec390 add env to turn on and off extension mocking 2023-02-24 09:10:11 +01:00
Jacob Overgaard
bdad73f230 add new environment variable to control "quiet" option of msw 2023-02-01 14:21:56 +01:00
Jacob Overgaard
2f4ba74ce2 set default port to 11000 to reflect current state of umbraco-cms 2022-11-25 14:53:41 +01:00
Jacob Overgaard
69e2521ea5 Allow msw bypass (#246)
* add new variable to hold the url to the local umbraco instance

* set api base-url if msw is turned off

* add instructions how to use local umbraco instance

* set baseurl for e2e mode

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2022-11-14 14:45:35 +01:00
Jacob Overgaard
2777bc694e remove obsolete preconfigured option 2022-08-08 14:49:16 +02:00
Jacob Overgaard
73bc7f6fdc disable msw in production mode 2022-08-08 11:53:59 +02:00
Jacob Overgaard
17d91c1c38 extend the runtime status with more modes 2022-07-26 16:07:31 +02:00
Jacob Overgaard
fe3c2e311d add model for preconfigured database 2022-06-29 15:55:26 +02:00
Jacob Overgaard
4b3442f9f0 add environment file 2022-05-18 13:13:55 +02:00