signedParameters = signer.signParameters(parameters, key, secret, url, "POST");
+ String link = url + "?" + "oauth_nonce=" + signedParameters.get("oauth_nonce") + "&oauth_signature=" + signedParameters.get("oauth_signature") + "&oauth_consumer_key=" + signedParameters.get("oauth_consumer_key") + "&oauth_signature_method=" + signedParameters.get("oauth_signature_method") + "&oauth_timestamp=" + signedParameters.get("oauth_timestamp") + "&oauth_version=" + signedParameters.get("oauth_version") + "<i_message_type=" + signedParameters.get("lti_message_type") + "<i_version=" + signedParameters.get("lti_version") + "&resource_link_id=" + signedParameters.get("resource_link_id");
+ model.addAttribute("parameters", signedParameters);
+ model.addAttribute("launchUrl", link);
+ } catch (LtiSigningException e) {
+ e.printStackTrace();
+ }
+ //model.addAttribute("message", name);
+ return "start"; //view
+
+ }
+}
+
+
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 8b13789..6b40d1d 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1 +1,6 @@
+spring.jpa.hibernate.ddl-auto=update
+spring.datasource.url=jdbc:mysql://localhost:3306/lti
+spring.datasource.username=lti
+spring.datasource.password=YnBDC0hqqhKaxt94
+spring.thymeleaf.cache=false
diff --git a/src/main/resources/static/css/main.css b/src/main/resources/static/css/main.css
new file mode 100644
index 0000000..c0482a0
--- /dev/null
+++ b/src/main/resources/static/css/main.css
@@ -0,0 +1,15 @@
+body {
+ padding-top: 0rem;
+}
+.starter-template {
+ padding: 3rem 1.5rem;
+ text-align: center;
+}
+
+h1{
+ color:#0000FF;
+}
+
+h2{
+ color:#FF0000;
+}
\ No newline at end of file
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html
new file mode 100644
index 0000000..321b855
--- /dev/null
+++ b/src/main/resources/templates/home.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ LTI
+
+
+
+
+This is tool consumer for LTI
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html
new file mode 100644
index 0000000..87b744c
--- /dev/null
+++ b/src/main/resources/templates/login.html
@@ -0,0 +1,20 @@
+
+
+
+ Login
+
+
+
+ Invalid username and password.
+
+
+ You have been logged out.
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/start.html b/src/main/resources/templates/start.html
new file mode 100644
index 0000000..d74faea
--- /dev/null
+++ b/src/main/resources/templates/start.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+ LTI start
+
+
+
+
+
+
+
\ No newline at end of file