Examples for the data-part of a signed_request
authorKai Moritz <kai@juplo.de>
Fri, 21 Mar 2014 14:07:19 +0000 (15:07 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 22 Mar 2014 10:57:59 +0000 (11:57 +0100)
src/test/resources/authorized.txt [new file with mode: 0644]
src/test/resources/unauthorized.txt [new file with mode: 0644]

diff --git a/src/test/resources/authorized.txt b/src/test/resources/authorized.txt
new file mode 100644 (file)
index 0000000..053fa3d
--- /dev/null
@@ -0,0 +1,16 @@
+{
+  "algorithm":"HMAC-SHA256",
+  "expires":1395414000,
+  "issued_at":1395408941,
+  "oauth_token":"CAAIkaJs9m0MBAHiXlFfVFvNXnRzITNxl76lidJRBw1TaRjxZC0uQWNAYuPTS24QqIJWav838UXdqtRJGezQzRcsZBkpGeEubKkXfws354VdPGCyjEZBUeuObf0pZAAcGelx4d9LgdOx485oZBeAf3eFvpLnhZBUZBZCnYnTJaKmpxTdIuOH2ijlsPuc36UWL1wcZD",
+  "user":
+  {
+    "country":"de",
+    "locale":"de_DE",
+    "age":
+    {
+      "min":21
+    }
+  },
+  "user_id":"100000503618294"
+}
diff --git a/src/test/resources/unauthorized.txt b/src/test/resources/unauthorized.txt
new file mode 100644 (file)
index 0000000..fb4467a
--- /dev/null
@@ -0,0 +1,13 @@
+{
+  "algorithm":"HMAC-SHA256",
+  "issued_at":1394983544,
+  "user":
+  {
+    "country":"de",
+    "locale":"de_DE",
+    "age":
+    {
+      "min":21
+    }
+  }
+}