-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished client side service-desk #587
- Loading branch information
Showing
70 changed files
with
2,152 additions
and
969 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
myconext-server/src/main/java/myconext/exceptions/RemoteException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package myconext.exceptions; | ||
|
||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.server.ResponseStatusException; | ||
|
||
public class RemoteException extends ResponseStatusException { | ||
|
||
private final String reference; | ||
|
||
public RemoteException(HttpStatus status, String reason, Throwable cause) { | ||
super(status, reason, cause); | ||
this.reference = String.valueOf(Math.round(Math.random() * 10000)); | ||
} | ||
|
||
public String getReference() { | ||
return reference; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "reference='" + reference + "' " + super.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ void convertUserControlCode() { | |
|
||
User user = userRepository.findOneUserByEmail("[email protected]"); | ||
assertEquals(1, user.getExternalLinkedAccounts().size()); | ||
assertNull(user.getControlCode()); | ||
|
||
ExternalLinkedAccount externalLinkedAccount = user.getExternalLinkedAccounts().getFirst(); | ||
DateTimeFormatter dateTimeFormatter = new DateTimeFormatterBuilder().appendPattern("dd-MM-yyyy").toFormatter(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM ghcr.io/openconext/openconext-basecontainers/apache2-shibboleth:latest | ||
COPY ./dist/ /var/www/ | ||
COPY ./docker/conf/000-default.conf /etc/apache2/sites-enabled/000-default.conf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
ServerName https://${HTTPD_SERVERNAME} | ||
RewriteEngine on | ||
|
||
RewriteCond %{REQUEST_URI} !\.html$ | ||
RewriteCond %{REQUEST_URI} !\.(js|css)(\.map)?$ | ||
RewriteCond %{REQUEST_URI} !\.svg$ | ||
RewriteCond %{REQUEST_URI} !\.png$ | ||
RewriteCond %{REQUEST_URI} !\.ico$ | ||
RewriteCond %{REQUEST_URI} !\.woff$ | ||
RewriteCond %{REQUEST_URI} !\.woff2$ | ||
RewriteCond %{REQUEST_URI} !\.ttf$ | ||
RewriteCond %{REQUEST_URI} !\.eot$ | ||
RewriteCond %{REQUEST_URI} !^/(asset-)?manifest.json$ | ||
RewriteCond %{REQUEST_URI} !^/myconext | ||
RewriteCond %{REQUEST_URI} !^/tiqr | ||
RewriteCond %{REQUEST_URI} !^/actuator | ||
RewriteCond %{REQUEST_URI} !^/internal | ||
RewriteCond %{REQUEST_URI} !^/robots.txt | ||
RewriteCond %{REQUEST_URI} !^/config | ||
RewriteCond %{REQUEST_URI} !^/login | ||
RewriteCond %{REQUEST_URI} !^/startSSO | ||
RewriteCond %{REQUEST_URI} !^/fonts | ||
RewriteCond %{REQUEST_URI} !^/.well-known | ||
RewriteRule (.*) /index.html [L] | ||
|
||
ProxyPreserveHost On | ||
ProxyPass /Shibboleth.sso ! | ||
|
||
ProxyPass /myconext/api http://myconextserver:8080/myconext/api | ||
ProxyPassReverse /myconext/api http://myconextserver:8080/myconext/api | ||
|
||
ProxyPass /tiqr http://myconextserver:8080/tiqr | ||
ProxyPassReverse /tiqr http://myconextserver:8080/tiqr | ||
|
||
ProxyPass /internal http://myconextserver:8080/internal | ||
ProxyPass /actuator http://myconextserver:8080/internal | ||
ProxyPass /robots.txt http://myconextserver:8080/robots.txt | ||
ProxyPass /login http://myconextserver:8080/login | ||
ProxyPass /startSSO http://myconextserver:8080/startSSO | ||
ProxyPass /config http://myconextserver:8080/config | ||
|
||
<Location /> | ||
AuthType shibboleth | ||
ShibUseHeaders On | ||
ShibRequireSession On | ||
Require valid-user | ||
</Location> | ||
|
||
DocumentRoot "/var/www" | ||
|
||
<Directory "/var/www"> | ||
Require all granted | ||
Options -Indexes | ||
</Directory> | ||
|
||
# Public endpoints | ||
<Location ~ "/(config|register|404|robots.txt)"> | ||
Require all granted | ||
</Location> | ||
|
||
<Location ~ "/landing(.*)"> | ||
Require all granted | ||
</Location> | ||
|
||
<Location ~ "/(.*)"> | ||
Require all granted | ||
</Location> | ||
|
||
<Location ~ "/internal/"> | ||
Require all granted | ||
</Location> | ||
|
||
# React resources | ||
<Location ~ "(.*)(eot|svg|ttf|woff2|woff|js|js\.map|css|css\.map|png|jpg|ico)$"> | ||
Require all granted | ||
</Location> | ||
|
||
<Location ~ "/.well-known/"> | ||
Require all granted | ||
</Location> | ||
|
||
<Location ~ "/(asset-)?manifest.json$"> | ||
Require all granted | ||
</Location> | ||
|
||
Header always set X-Frame-Options "DENY" | ||
Header always set Referrer-Policy "same-origin" | ||
Header always set X-Content-Type-Options "nosniff" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.