Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9203769
Initial commit
mrts May 6, 2021
0298f70
feat: Implement example service using ASP.NET Core
agukasm Oct 27, 2021
c9532fc
doc: update README.md, explain possible 32-bit/64-bit errors
mrts May 20, 2022
5ab932d
Update LICENSE
kristelmerilain Jun 2, 2022
c9d141d
Update copyright year (#4)
kristelmerilain Apr 27, 2023
efac302
Updates web-eid.js to use the latest version 2.0.1
erkkiarus Jul 17, 2023
6195bbe
Add Docker and TLS terminating proxy support
mrts Nov 3, 2023
42e0f8f
release: bump version to 1.1.0
mrts Dec 1, 2023
8452dcb
Use Set-Cookie Secure attribute
metsma Jan 5, 2024
2cb12a2
Use Set-Cookie Secure attribute
metsma Jan 5, 2024
0ab197f
Fix GetSupportedHashAlgorithm function
metsma Feb 13, 2024
8ea7c0a
Set __Host- prefix to auth cookie
metsma Jan 5, 2024
d8b65f0
Set __Host- prefix to session cookie
metsma Jan 5, 2024
dcc752b
All ID-Card certificates are expired in EstEID 2015
metsma Jan 5, 2024
3b9a417
Update copyright year
metsma Mar 19, 2024
7db258e
Add licence to source files
mrts Mar 26, 2024
a139220
Fixed race condition with digidoc initialize/terminate
realmerx Feb 19, 2024
c9e0153
Improved comments
realmerx Mar 3, 2024
cb8f878
Fixed typo
realmerx Mar 4, 2024
48353bf
Fixed formatting
realmerx Mar 5, 2024
7f34469
Fixed simultaneous signing from multiple browsers
realmerx Apr 11, 2024
067037d
Add new TEST ORG certificate issuers
metsma May 1, 2024
230173f
Add support for organization certificates (#21)
rabadashTheFool Jun 21, 2024
216ad76
Updated documentation in For Ubuntu Linux and Docker sections (#22)
rabadashTheFool Jun 21, 2024
422a340
Updated example to .Net 8 and updated dependencies
Jun 17, 2024
87dcb1d
Updated example application dependencies
Jul 15, 2024
c5640bd
Updated example application dependencies
Oct 22, 2024
9a45a56
GitHub action using official libdigidocpp-csharp repository
Oct 1, 2024
a7c300f
Add KLASS3-SK_2016 certificates and remove BES from signature timesta…
mrts Jul 25, 2024
c87e1bb
Add version number to .Net example
Oct 29, 2024
e513362
Minor versions upgrades to latest
svenzik Apr 29, 2025
408df75
Add Thales test ID card intermediate CA to trusted certificates in De…
mrts Mar 21, 2025
b8ce11b
Merge remote-tracking branch 'example-history/main' into WE2-933-example
svenzik Jul 30, 2025
0e98785
Move workflow scripts from example/.github/workflows to .github/workf…
svenzik Jul 30, 2025
11052e1
Use sonar.token instead of deprecated sonar.login
svenzik Jul 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .github/workflows/dotnet-build-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Dotnet example build

on:
push:
paths:
- 'example/**'
- '.github/workflows/*example*'
pull_request:
paths:
- 'example/**'
- '.github/workflows/*example*'

defaults:
run:
working-directory: ./example

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x # SDK Version to use.

- name: Cache Nuget packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: ${{ runner.os }}-nuget

- name: Install dependencies
run: dotnet restore src/WebEid.AspNetCore.Example.sln --source "https://gitlab.com/api/v4/projects/35362906/packages/nuget/index.json" --source "https://api.nuget.org/v3/index.json"

- name: Download RIA repository public key
run: wget https://github.com/web-eid/web-eid-asp-dotnet-example/raw/main/src/ria_public_key.gpg

- name: Copy RIA repository key to keyrings
run: sudo cp ria_public_key.gpg /usr/share/keyrings/ria-repository.gpg

- name: Add RIA repository to APT
run: |
echo "deb [signed-by=/usr/share/keyrings/ria-repository.gpg] https://installer.id.ee/media/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ria-repository.list

- name: Update APT and install libdigidocpp-csharp
run: |
sudo apt update
sudo apt install -y --no-install-recommends libdigidocpp-csharp

- name: Copy the necessary DigiDoc C# library files
run: sudo cp /usr/include/digidocpp_csharp/* src/WebEid.AspNetCore.Example/DigiDoc/

- name: Build
run: dotnet publish --configuration Release --no-restore src/WebEid.AspNetCore.Example.sln --verbosity normal

- name: Test
run: dotnet test --no-restore --verbosity normal src/WebEid.AspNetCore.Example.sln

- name: Test building Docker image
working-directory: ./example/src
run: docker build -t web-eid-asp-dotnet-example .
10 changes: 9 additions & 1 deletion .github/workflows/dotnet-build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Dotnet Linux build

on: [ push, pull_request ]
on:
push:
paths-ignore:
- 'example/**'
- '.github/workflows/*example*'
pull_request:
paths-ignore:
- 'example/**'
- '.github/workflows/*example*'

jobs:
build:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/dotnet-build-windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Dotnet Windows build

on: [ push, pull_request ]
on:
push:
paths-ignore:
- 'example/**'
- '.github/workflows/*example*'
pull_request:
paths-ignore:
- 'example/**'
- '.github/workflows/*example*'

jobs:
build:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/sonarcloud-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: SonarCloud code analysis

on: [push]
on:
push:
paths-ignore:
- 'example/**'
- '.github/workflows/*example*'

jobs:
analyze:
Expand Down Expand Up @@ -63,7 +67,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"web-eid_web-eid-authtoken-validation-dotnet" /o:"web-eid" /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" /d:sonar.verbose=true /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
.\.sonar\scanner\dotnet-sonarscanner begin /k:"web-eid_web-eid-authtoken-validation-dotnet" /o:"web-eid" /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" /d:sonar.verbose=true /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet build --configuration Release --no-restore src/WebEid.Security.sln
dotnet test src/WebEid.Security.sln --logger trx --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover --results-directory "TestResults"
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
Loading
Loading