Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
9d1c876
Add license
mrts Dec 21, 2020
914e230
Initial commit
mrts Dec 21, 2020
7902264
Add macOS installer
mrts Dec 28, 2020
703078d
Add Ubuntu and Windows installer
mrts Dec 28, 2020
cb30ef7
build(deps): use GitHub Packages for authtoken-validation, update Gua…
mrts Feb 19, 2021
8de486f
feat: add configurable support for DigiDoc4j prod mode, enable OCSP c…
mrts Feb 19, 2021
c21a0aa
fix: mock OCSP checks with JMock to make testHappyFlow_LoginUploadPre…
mrts Feb 19, 2021
b59302b
ci: use GitLab Package Repository instead of GitHub as GitHub Package…
mrts Feb 22, 2021
194cc30
deployment: add Fabric deployment script, fix okhttp version
mrts Feb 22, 2021
bfa66f5
refactor: use Caffeine instead of Hazelcast
mrts Feb 22, 2021
ac2f983
docs,installer: update installer packages to 0.9.4.76, update instruc…
mrts Feb 23, 2021
6453fcd
feat: use AIA OCSP and LT profile during signing, bump authtoken-vali…
mrts Feb 23, 2021
51c0e1c
feat: add a static example text document for testing signing, disable…
mrts Feb 23, 2021
136e81d
deps: update code to web-eid-authtoken v1.0.1 API
mrts Mar 1, 2021
50f6fc8
conf: bump org.webeid log level to DEBUG
mrts Mar 4, 2021
f1f180b
Update README.md
Counter178 Mar 15, 2021
985ab09
Update authtoken-validation to 1.0.2, web-eid package to 9.4.0-rc1, a…
mrts Mar 15, 2021
7acf182
Add documentation and developers sections to index.html
mrts Mar 15, 2021
ce1487b
doc: add contact info to index.html
mrts Mar 16, 2021
95d62a8
doc: mention Croatian eID support, Ubuntu Software Center
mrts Mar 18, 2021
6a689fb
doc: mention Ubuntu Software Center during unistall
mrts Mar 18, 2021
cf3ef67
fix(html): make welcome page error box similar to auth page
mrts Mar 19, 2021
cad88b1
fix(signing): update DigiDoc4j to mitigate LOTL change issue
mrts Mar 30, 2021
1bc65a5
release(html): web-eid-app release downloads 0.9.4-rc1 -> 0.9.4
mrts Apr 6, 2021
71b7fa7
relase(html): web-eid-app release 0.9.4 -> 1.0.0-rc1 with tentative S…
mrts Apr 30, 2021
93a5cd0
doc: make OS name bold
mrts May 6, 2021
5f36263
docs(index.html): add command for turning on Safari extension logging
mrts May 10, 2021
79a3a34
doc: HKEY_CURRENT_USER, not HKEY_LOCAL_MACHINE
mrts Jun 1, 2021
c94a550
doc: add link to project website
mrts Jun 1, 2021
e92cf5d
release(html): web-eid-app release 1.0.0-rc2
mrts Jun 11, 2021
8abf23a
conf: forward HTTPS information from reverse proxy to Tomcat so that …
mrts Jul 12, 2021
8dbdc94
feat(config): add SameSite cookie configuration
mrts Jul 13, 2021
bd30291
doc: document HTTPS support
mrts Jul 13, 2021
aae97df
css: load Bootstrap CSS from resources instead of CDN
mrts Jul 15, 2021
e46a550
security: turn on CSRF protection
mrts Jul 15, 2021
b4c921e
refactor: move settings from application.properties to application.yaml
mrts Jul 15, 2021
49d8db1
feat(security): assure that authenticated subject matches with signin…
mrts Jul 19, 2021
32e375e
deps(web-eid-authtoken-validation-java): update to v1.1.0, use ZonedD…
mrts Jul 23, 2021
6df75e4
release(html): web-eid release v1.0.0
mrts Jul 27, 2021
61c5e66
doc(html): Safari support is upcoming
mrts Jul 29, 2021
3587b6c
doc(html): update macOS uninstallation instructions, log locations an…
mrts Aug 3, 2021
6594367
doc(README): rework documentation and trim configuration
mrts Aug 5, 2021
99fecdb
fix(doc): fix anchor in README
mrts Aug 31, 2021
fcdfda1
Mentioning all the people involved in making the example application.
pahaloom Sep 7, 2021
69070eb
release(html,deps): Safari first public release v1.0.2, update web-ei…
mrts Oct 26, 2021
84bf5b8
feat: migrate to authtoken-validation v2, add session-backed challeng…
mrts Nov 16, 2021
45f53dc
docs: update README with v2 information
mrts Jan 21, 2022
a4fe5fb
feat: add Ubuntu installation script
mrts Feb 4, 2022
ea62175
add -y to install packages without user prompt
heikkikitt Feb 15, 2022
9780f0a
docs,tests: update security analysis link, remove unused parameters f…
mrts Mar 11, 2022
bbd866f
deps: upgrade Spring Boot and other dependencies
mrts Apr 1, 2022
902a021
Update LICENSE
kristelmerilain Jun 2, 2022
fad9c31
release: Web eID release v2.1.0
mrts Jul 26, 2022
a461e1f
deps: roll back DigiDoc4j to version 4.3.0
mrts Jul 26, 2022
bc7b443
docs(index.html): use Web eID in a Java or .NET web application
mrts Aug 1, 2022
97bf36d
docs(index.html),script: emphazise latest official Open EID packages,…
mrts Aug 31, 2022
5274efa
docs(index.html): add section how to verify if debugging works as req…
mrts Aug 31, 2022
c4753f0
deps(web-eid-authtoken-validation): bump authtoken-validation version…
mrts Oct 14, 2022
4a37d8d
refactor,fix: fix logging package name in application.yaml, enable su…
mrts Nov 7, 2022
c0e68e3
feat: add support for organization certificates
mrts Nov 9, 2022
31af8c3
Add bullseye, Linux Mint 21 and kinetic and remove impish support
kristelmerilain Nov 16, 2022
f620511
Update Ubuntu package version
kristelmerilain Nov 29, 2022
40138bf
docs(README): explain how to run the application with prod profile
mrts Nov 30, 2022
2c438e9
docs(README): add CertificateNotTrustedException to FAQ
mrts Nov 30, 2022
6feafeb
release: Web eID release v2.2.0, PHP validation library published
mrts Dec 27, 2022
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
19 changes: 19 additions & 0 deletions example/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
* text=auto
*.java text eol=lf
*.xml text eol=lf
*.pl text eol=lf
*.py text eol=lf
*.html text eol=lf
*.scss text eol=lf
*.css text eol=lf
*.js text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
MANIFEST.MF text eol=lf
commit-msg text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
*.deb filter=lfs diff=lfs merge=lfs -text
*.pkg filter=lfs diff=lfs merge=lfs -text
*.msi filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
27 changes: 27 additions & 0 deletions example/.github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Maven build

on: [ push, pull_request ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v8-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-v8-${{ secrets.CACHE_VERSION }}

- name: Build
run: mvn --batch-mode compile

- name: Test and package
run: mvn --batch-mode package
34 changes: 34 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/

### VS Code ###
.vscode/

### Vim ###
*.swp
121 changes: 121 additions & 0 deletions example/.mvn/wrapper/MavenWrapperDownloader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* Copyright 2007-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.io.*;
import java.net.*;
import java.nio.channels.*;
import java.util.Properties;

public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = "0.5.6";
/**
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
"https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" +
WRAPPER_VERSION +
"/maven-wrapper-" +
WRAPPER_VERSION +
".jar";

/**
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH = ".mvn/wrapper/maven-wrapper.properties";

/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH = ".mvn/wrapper/maven-wrapper.jar";

/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";

public static void main(String args[]) {
System.out.println("- Downloader started");
File baseDirectory = new File(args[0]);
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());

// If the maven-wrapper.properties exists, read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if (mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
} catch (IOException e) {
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
mavenWrapperPropertyFileInputStream.close();
}
} catch (IOException e) {
// Ignore ...
}
}
}
System.out.println("- Downloading from: " + url);

File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
if (!outputFile.getParentFile().exists()) {
if (!outputFile.getParentFile().mkdirs()) {
System.out.println(
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"
);
}
}
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
try {
downloadFileFromURL(url, outputFile);
System.out.println("Done");
System.exit(0);
} catch (Throwable e) {
System.out.println("- Error downloading");
e.printStackTrace();
System.exit(1);
}
}

private static void downloadFileFromURL(String urlString, File destination) throws Exception {
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
String username = System.getenv("MVNW_USERNAME");
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
Authenticator.setDefault(
new Authenticator() {

@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(username, password);
}
}
);
}
URL website = new URL(urlString);
ReadableByteChannel rbc;
rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(destination);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();
rbc.close();
}
}
Binary file added example/.mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions example/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
7 changes: 7 additions & 0 deletions example/.prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
trailingComma: "none"
useTabs: false
tabWidth: 4
semi: true
singleQuote: false
printWidth: 120

7 changes: 7 additions & 0 deletions example/AUTHORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Contributors

Here is the list of people involved in creating the example application.

Juri Letberg
Mart Sõmermaa
Martin Ott
21 changes: 21 additions & 0 deletions example/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020-2022 Estonian Information System Authority

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading