teodoran / Fhi.Smittestopp.Verification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fhi.Smittestopp.Verification

Build and test Coverage Status License: MIT

Getting started

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>"

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.

About

License:MIT License


Languages

Language:C# 84.3%Language:HTML 8.2%Language:TypeScript 6.1%Language:JavaScript 1.3%Language:SCSS 0.0%