diff --git a/src/main/java/se/digg/eudiw/issuer_tests/controllers/TestIndexController.java b/src/main/java/se/digg/eudiw/issuer_tests/controllers/TestIndexController.java new file mode 100644 index 0000000..8ae7ef2 --- /dev/null +++ b/src/main/java/se/digg/eudiw/issuer_tests/controllers/TestIndexController.java @@ -0,0 +1,20 @@ +package se.digg.eudiw.issuer_tests.controllers; + +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestParam; + +import java.util.List; + +@Controller +public class TestIndexController { + + @GetMapping("/test-index") + public String testIndex(Model model) { + + List testCases = List.of("start-test-1-authorisation-flow", "start-test-2-pre-authorisation-flow", "start-test-3-par"); + model.addAttribute("testCases", testCases); + return "test-index"; + } +} diff --git a/src/main/resources/application-dev.yaml b/src/main/resources/application-dev.yaml index 1703b27..e180331 100644 --- a/src/main/resources/application-dev.yaml +++ b/src/main/resources/application-dev.yaml @@ -17,5 +17,6 @@ spring: eudiw: issuerBaseUrl: https://local.dev.swedenconnect.se:9090 credentialHost: https://local.dev.swedenconnect.se:9090 - clientId: eudiw-client + clientId: 1234567890 + # eudiw-client testServerBaseUrl: https://local.dev.swedenconnect.se:9443 \ No newline at end of file diff --git a/src/main/resources/templates/auth-flow.html b/src/main/resources/templates/auth-flow.html index 3a23aed..674aadc 100644 --- a/src/main/resources/templates/auth-flow.html +++ b/src/main/resources/templates/auth-flow.html @@ -6,5 +6,7 @@

Auth flow

+ + test index \ No newline at end of file diff --git a/src/main/resources/templates/callback-demo-auth.html b/src/main/resources/templates/callback-demo-auth.html index f34ea60..237c929 100644 --- a/src/main/resources/templates/callback-demo-auth.html +++ b/src/main/resources/templates/callback-demo-auth.html @@ -49,6 +49,14 @@

Issue credential

} /*]]>*/ + +

+ start-test-1-authorisation-flow +

+

+ test index +

+ diff --git a/src/main/resources/templates/pre-auth-flow.html b/src/main/resources/templates/pre-auth-flow.html index f53d427..79c25c3 100644 --- a/src/main/resources/templates/pre-auth-flow.html +++ b/src/main/resources/templates/pre-auth-flow.html @@ -6,5 +6,6 @@

Pre-auth flow

+ test index \ No newline at end of file diff --git a/src/main/resources/templates/test-index.html b/src/main/resources/templates/test-index.html new file mode 100644 index 0000000..af579f2 --- /dev/null +++ b/src/main/resources/templates/test-index.html @@ -0,0 +1,14 @@ + + + + Getting Started: Serving Web Content + + + +
    +
  1. + +
  2. +
+ + \ No newline at end of file