Skip to content

li-vu/Fhi.Smittestopp.Verification

 
 

Repository files navigation

Fhi.Smittestopp.Verification

Build and test Coverage Status License: MIT

Getting startet

To run this application you will need the .NET Core 3.1 SDK. You can launch the web application through the dotnet run command from the Fhi.Smittestopp.Verification.Server folder.

ID-porten

To perform logins through ID-porten (Test environment) you will also need a registered client for ID-porten Ver1 with "https://localhost:5001/signin-oidc" as a valid post login return url, and "https://localhost:5001/signout-callback-oidc" as a post logout return url. You will also need a valid test user to perform a login, ID-porten has a list of available test users here

Run the following command from the Fhi.Smittestopp.Verification.Server folder to use your own client.

dotnet user-secrets set "idPorten:clientId" "<your-client-id>"

dotnet user-secrets set "idPorten:clientSecret" "<your-client-secret>"

Database

The default configuration attempts to create a local MSSQL database. Change the connectionstring in appsettings.json or override the config as needed. A connection string value of in-memory will use an in-memory database instead of MSSQL.

Test client

A basic test SPA client has been included in this repository to test the OIDC logins against the application. To run this client you will need Node.js installed. You can then install necessary dependencies throught the command npm install in the test-client folder, and then launch the client through npm run start in the same folder. This client presents a "Login"-button to start the OIDC login flow, and on completed login presents the raw ID-token and access-token, all ID-token claims, and a button to log out.

Contributing

For anyone who would like to contribute to this project, we refer to our Code of Conduct.

We prefer any changes are discussed through raising an issue before implementing the change.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 92.9%
  • TypeScript 4.0%
  • HTML 2.2%
  • Other 0.9%