Web authentication library for infsoft's LocAware One application
$ dotnet add package Infsoft.WPE.App.Authentication.WebThis library handles all necessary tasks to perform a login with a Blazor WPA.
To add all required services the extension method AddWebAuthentication is provided.
Authentication can then be performed with the interface ILoginService, whereas tokens can be fetched from ITokenProvider.
To build oidc-client-ts, snowpack is used. A build is necessary to use a simple js file as a module, otherwise import statements do not work.
As the build is static, a build version is already included. Thus, only on updates to the library a rebuild is necessary.
To rebuild, execute the following commands (in folder JS):
npm install # first time only to install dependencies
npm run build
mv build/_snowpack/pkg/*.js ../wwwroot/auth