-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
14 changed files
with
346 additions
and
0 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
61 changes: 61 additions & 0 deletions
61
...p/src/main/java/io/getlime/security/powerauth/app/nextstep/controller/HomeController.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,61 @@ | ||
/* | ||
* PowerAuth Web Flow and related software components | ||
* Copyright (C) 2024 Wultra s.r.o. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package io.getlime.security.powerauth.app.nextstep.controller; | ||
|
||
import io.getlime.security.powerauth.app.nextstep.configuration.NextStepServerConfiguration; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.info.BuildProperties; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
/** | ||
* Home controller to display welcome page. | ||
* | ||
* @author Jan Pesek, [email protected] | ||
*/ | ||
@Controller | ||
public class HomeController { | ||
|
||
private final BuildProperties buildProperties; | ||
private final NextStepServerConfiguration nextStepServerConfiguration; | ||
|
||
public HomeController(@Autowired(required = false) final BuildProperties buildProperties, | ||
final NextStepServerConfiguration nextStepServerConfiguration) { | ||
this.buildProperties = buildProperties; | ||
this.nextStepServerConfiguration = nextStepServerConfiguration; | ||
} | ||
|
||
@SuppressWarnings("SameReturnValue") | ||
@GetMapping(value = "/", produces = MediaType.TEXT_HTML_VALUE) | ||
public String home(Model model) { | ||
if (buildProperties != null) { | ||
model.addAttribute("version", buildProperties.getVersion()); | ||
model.addAttribute("buildTime", buildProperties.getTime()); | ||
} | ||
|
||
model.addAttribute("applicationName", nextStepServerConfiguration.getApplicationName()); | ||
model.addAttribute("applicationDisplayName", nextStepServerConfiguration.getApplicationDisplayName()); | ||
model.addAttribute("applicationEnvironment", nextStepServerConfiguration.getApplicationEnvironment()); | ||
|
||
return "index"; | ||
} | ||
|
||
} |
83 changes: 83 additions & 0 deletions
83
powerauth-nextstep/src/main/resources/templates/index.html
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,83 @@ | ||
<!-- | ||
~ PowerAuth Web Flow and related software components | ||
~ Copyright (C) 2024 Wultra s.r.o. | ||
~ | ||
~ This program is free software: you can redistribute it and/or modify | ||
~ it under the terms of the GNU Affero General Public License as published | ||
~ by the Free Software Foundation, either version 3 of the License, or | ||
~ (at your option) any later version. | ||
~ | ||
~ This program is distributed in the hope that it will be useful, | ||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
~ GNU Affero General Public License for more details. | ||
~ | ||
~ You should have received a copy of the GNU Affero General Public License | ||
~ along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" href="resources/css/bootstrap.min.css"/> | ||
<title>PowerAuth Next Step Server</title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mt-3 rounded"> | ||
<a class="navbar-brand" href="#"> | ||
<img src="resources/image/wultra-square.svg" width="30" height="30" alt="Wultra Logo" class="mr-2"> | ||
<strong>PowerAuth Next Step Server</strong> | ||
</a> | ||
</nav> | ||
|
||
<div class="row mt-3"> | ||
<div class="col-sm-7"> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">System Information</h5> | ||
<div class="card-body"> | ||
<div class="card-text"> | ||
<p>Version: <strong th:text="${version} ?: 'UNKNOWN'"/></p> | ||
<p>Build Time: <strong th:text="${buildTime} ?: 'UNKNOWN'"/></p> | ||
<p>Application Name: <strong th:text="${applicationName} ?: 'UNKNOWN'"/></p> | ||
<p>Application Display Name: <strong th:text="${applicationDisplayName} ?: 'UNKNOWN'"/></p> | ||
<p>Application Environment: <strong th:text="${applicationEnvironment}"/></p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">Available Interfaces</h5> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
<a href="swagger-ui.html">PowerAuth Next Step Server RESTful API</a> | ||
<span class="badge badge-secondary badge-pill">Swagger</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="col-sm-5"> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">Quick Links</h5> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item"><a target="_blank" href="https://developers.wultra.com/components">Technical Documentation of Wultra Components</a></li> | ||
<li class="list-group-item"><a target="_blank" href="https://github.com/wultra/powerauth-webflow">GitHub Develop Repository</a></li> | ||
<li class="list-group-item"><a target="_blank" href="https://github.com/wultra/powerauth-webflow/issues">Report Issue</a></li> | ||
</ul> | ||
</div> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">Contact Us</h5> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item"><a target="_blank" href="https://wultra.com">🔗 Website</a></li> | ||
<li class="list-group-item"><a target="_blank" href="https://wultra.com/discord">💬 Discord Chat</a></li> | ||
<li class="list-group-item"><a href="mailto:[email protected]">✉️ E-mail</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<footer class="container mt-3"> | ||
<p>© <span th:text="${#dates.year(#dates.createNow())}">2020</span> <a target="_blank" href="https://wultra.com">Wultra s.r.o.</a></p> | ||
</footer> | ||
</body> | ||
</html> |
7 changes: 7 additions & 0 deletions
7
powerauth-nextstep/src/main/webapp/resources/css/bootstrap.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
powerauth-nextstep/src/main/webapp/resources/css/bootstrap.min.css.map
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
powerauth-nextstep/src/main/webapp/resources/image/wultra-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
61 changes: 61 additions & 0 deletions
61
.../src/main/java/io/getlime/security/powerauth/app/tppengine/controller/HomeController.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,61 @@ | ||
/* | ||
* PowerAuth Web Flow and related software components | ||
* Copyright (C) 2024 Wultra s.r.o. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published | ||
* by the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package io.getlime.security.powerauth.app.tppengine.controller; | ||
|
||
import io.getlime.security.powerauth.app.tppengine.configuration.TppEngineConfiguration; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.info.BuildProperties; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
/** | ||
* Home controller to display welcome page. | ||
* | ||
* @author Jan Pesek, [email protected] | ||
*/ | ||
@Controller | ||
public class HomeController { | ||
|
||
private final BuildProperties buildProperties; | ||
private final TppEngineConfiguration tppEngineConfiguration; | ||
|
||
public HomeController(@Autowired(required = false) final BuildProperties buildProperties, | ||
final TppEngineConfiguration tppEngineConfiguration) { | ||
this.buildProperties = buildProperties; | ||
this.tppEngineConfiguration = tppEngineConfiguration; | ||
} | ||
|
||
@SuppressWarnings("SameReturnValue") | ||
@GetMapping(value = "/", produces = MediaType.TEXT_HTML_VALUE) | ||
public String home(Model model) { | ||
if (buildProperties != null) { | ||
model.addAttribute("version", buildProperties.getVersion()); | ||
model.addAttribute("buildTime", buildProperties.getTime()); | ||
} | ||
|
||
model.addAttribute("applicationName", tppEngineConfiguration.getApplicationName()); | ||
model.addAttribute("applicationDisplayName", tppEngineConfiguration.getApplicationDisplayName()); | ||
model.addAttribute("applicationEnvironment", tppEngineConfiguration.getApplicationEnvironment()); | ||
|
||
return "index"; | ||
} | ||
|
||
} |
83 changes: 83 additions & 0 deletions
83
powerauth-tpp-engine/src/main/resources/templates/index.html
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,83 @@ | ||
<!-- | ||
~ PowerAuth Web Flow and related software components | ||
~ Copyright (C) 2024 Wultra s.r.o. | ||
~ | ||
~ This program is free software: you can redistribute it and/or modify | ||
~ it under the terms of the GNU Affero General Public License as published | ||
~ by the Free Software Foundation, either version 3 of the License, or | ||
~ (at your option) any later version. | ||
~ | ||
~ This program is distributed in the hope that it will be useful, | ||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
~ GNU Affero General Public License for more details. | ||
~ | ||
~ You should have received a copy of the GNU Affero General Public License | ||
~ along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" href="resources/css/bootstrap.min.css"/> | ||
<title>PowerAuth Third Party Provider Engine</title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mt-3 rounded"> | ||
<a class="navbar-brand" href="#"> | ||
<img src="resources/image/wultra-square.svg" width="30" height="30" alt="Wultra Logo" class="mr-2"> | ||
<strong>PowerAuth Third Party Provider Engine</strong> | ||
</a> | ||
</nav> | ||
|
||
<div class="row mt-3"> | ||
<div class="col-sm-7"> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">System Information</h5> | ||
<div class="card-body"> | ||
<div class="card-text"> | ||
<p>Version: <strong th:text="${version} ?: 'UNKNOWN'"/></p> | ||
<p>Build Time: <strong th:text="${buildTime} ?: 'UNKNOWN'"/></p> | ||
<p>Application Name: <strong th:text="${applicationName} ?: 'UNKNOWN'"/></p> | ||
<p>Application Display Name: <strong th:text="${applicationDisplayName} ?: 'UNKNOWN'"/></p> | ||
<p>Application Environment: <strong th:text="${applicationEnvironment}"/></p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">Available Interfaces</h5> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item d-flex justify-content-between align-items-center"> | ||
<a href="swagger-ui.html">PowerAuth Third Party Provider Engine RESTful API</a> | ||
<span class="badge badge-secondary badge-pill">Swagger</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="col-sm-5"> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">Quick Links</h5> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item"><a target="_blank" href="https://developers.wultra.com/components">Technical Documentation of Wultra Components</a></li> | ||
<li class="list-group-item"><a target="_blank" href="https://github.com/wultra/powerauth-webflow">GitHub Develop Repository</a></li> | ||
<li class="list-group-item"><a target="_blank" href="https://github.com/wultra/powerauth-webflow/issues">Report Issue</a></li> | ||
</ul> | ||
</div> | ||
<div class="card mb-3"> | ||
<h5 class="card-header">Contact Us</h5> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item"><a target="_blank" href="https://wultra.com">🔗 Website</a></li> | ||
<li class="list-group-item"><a target="_blank" href="https://wultra.com/discord">💬 Discord Chat</a></li> | ||
<li class="list-group-item"><a href="mailto:[email protected]">✉️ E-mail</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<footer class="container mt-3"> | ||
<p>© <span th:text="${#dates.year(#dates.createNow())}">2020</span> <a target="_blank" href="https://wultra.com">Wultra s.r.o.</a></p> | ||
</footer> | ||
</body> | ||
</html> |
7 changes: 7 additions & 0 deletions
7
powerauth-tpp-engine/src/main/webapp/resources/css/bootstrap.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
powerauth-tpp-engine/src/main/webapp/resources/css/bootstrap.min.css.map
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
powerauth-tpp-engine/src/main/webapp/resources/image/wultra-square.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.