From 0f21033118f36088fe36f9954ff1647c120f47c8 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 21 Mar 2014 15:07:19 +0100 Subject: [PATCH] Examples for the data-part of a signed_request --- src/test/resources/authorized.txt | 16 ++++++++++++++++ src/test/resources/unauthorized.txt | 13 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/test/resources/authorized.txt create mode 100644 src/test/resources/unauthorized.txt diff --git a/src/test/resources/authorized.txt b/src/test/resources/authorized.txt new file mode 100644 index 0000000..053fa3d --- /dev/null +++ b/src/test/resources/authorized.txt @@ -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 index 0000000..fb4467a --- /dev/null +++ b/src/test/resources/unauthorized.txt @@ -0,0 +1,13 @@ +{ + "algorithm":"HMAC-SHA256", + "issued_at":1394983544, + "user": + { + "country":"de", + "locale":"de_DE", + "age": + { + "min":21 + } + } +} -- 2.20.1