diff options
| author | Brent Shaffer <bshafs@gmail.com> | 2013-05-28 01:28:48 +0400 |
|---|---|---|
| committer | Brent Shaffer <bshafs@gmail.com> | 2013-05-28 01:28:48 +0400 |
| commit | f58f5adf9ff7f7dbb0e1938bce1e726d94837cc0 (patch) | |
| tree | 4175cff0eeb992de6cf93a70367a94b0f595b426 /test/config | |
| parent | d5bb9c8bdbe8ef86c65d6479f81db859f707b865 (diff) | |
| parent | e82dfa379bf021f2b3c00ce7f89a596ae4b0e5d4 (diff) | |
| download | oauth2-server-php-0.8.tar.xz | |
merges develop into trunk for v0.8 tagv0.8
Diffstat (limited to 'test/config')
| -rw-r--r-- | test/config/storage.json | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/test/config/storage.json b/test/config/storage.json index 967991f..439dcd0 100644 --- a/test/config/storage.json +++ b/test/config/storage.json @@ -4,8 +4,20 @@ "client_id": "Test Client ID", "user_id": "", "redirect_uri": "", + "expires": "9999999999" + }, + "testcode-with-scope": { + "client_id": "Test Client ID", + "user_id": "", + "redirect_uri": "", "expires": "9999999999", - "scope": "" + "scope": "scope1 scope2" + }, + "testcode-expired": { + "client_id": "Test Client ID", + "user_id": "", + "redirect_uri": "", + "expires": "1356998400" } }, "client_credentials" : { @@ -15,6 +27,13 @@ "Test Client ID with Redirect Uri": { "secret": "TestSecret2", "redirect_uri": "http://brentertainment.com" + }, + "Test Client ID with Multiple Redirect Uris": { + "secret": "TestSecret2", + "redirect_uri": "http://brentertainment.com http://morehazards.com" + }, + "Test Some Other Client": { + "secret": "TestSecret3" } }, "user_credentials" : { @@ -27,6 +46,13 @@ "user_id": "test-username", "expires": 99999999900, "scope": null + }, + "test-refreshtoken-with-scope": { + "refresh_token": "test-refreshtoken", + "client_id": "Test Client ID", + "user_id": "test-username", + "expires": 99999999900, + "scope": "scope1 scope2" } }, "access_tokens" : { @@ -48,26 +74,31 @@ "scope": "testscope" } }, - "jwt": { "Test Client ID": { - "key": "-----BEGIN PUBLIC KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAstgzbq1Tyozg6Wn/ugyw\\nng4J2wPOaSJwPWlFFff92K60rQrrCDDUSVeuhC0+Tjn7Lq35gMZrsWazl3oj4KAH BBFZqBPejER0Z/t1wgZka97uooW2BclxUMjL6sFW92BLm2f2Po/SDjKdGRwt0+kd\\nj2MgmdqIDu7KTNLPVS/3zk0Ln+Ett92pbODhUliYHkVFy/ZZtoX66lggLjZXGdBP\\n2pLx/cAR09B0m1QDBvkzGewmF6Hl0gXqKSBQel1vnR8Pp2c8Fjp3sDB65hiStXmf\\na6NpMZBAb4vBp39SyRrbXiNH7GbYoIiBBtgnhVg4zHAG6btsEyAtmVM0aMhn01TK\\nHQIDAQAB\\n-----END PUBLIC KEY-----", + "key": "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5/SxVlE8gnpFqCxgl2wjhzY7u\ncEi00s0kUg3xp7lVEvgLgYcAnHiWp+gtSjOFfH2zsvpiWm6Lz5f743j/FEzHIO1o\nwR0p4d9pOaJK07d01+RzoQLOIQAgXrr4T1CCWUesncwwPBVCyy2Mw3Nmhmr9MrF8\nUlvdRKBxriRnlP3qJQIDAQAB\n-----END PUBLIC KEY-----", "subject": "testuser@ourdomain.com" }, - "Test Client ID PHP-5.2": { "key": "mysecretkey", "subject": "testuser@ourdomain.com" }, - "Missing Key Client": { "key": null, "subject": "testuser@ourdomain.com" }, - "Missing Key Client PHP-5.2": { "key": null, "subject": "testuser@ourdomain.com" } - } + }, + "client_supported_scopes" : { + "Test Client ID" : ["clientscope1", "clientscope2"], + "Test Client ID 2" : ["clientscope3"] + }, + "supported_scopes" : [ + "scope1", + "scope2", + "scope3" + ] }
\ No newline at end of file |
