summaryrefslogtreecommitdiff
path: root/test/config/storage.json
blob: ab4133881cc105da9bcea26e8cba0647b4cb4923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
    "authorization_codes": {
        "testcode": {
            "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": "scope1 scope2"
        },
        "testcode-expired": {
            "client_id": "Test Client ID",
            "user_id": "",
            "redirect_uri": "",
            "expires": "1356998400"
        },
        "testcode-empty-secret": {
            "client_id": "Test Client ID Empty Secret",
            "user_id": "",
            "redirect_uri": "",
            "expires": "9999999999"
        }
    },
    "client_credentials" : {
        "Test Client ID": {
            "secret": "TestSecret"
        },
        "Test Client ID with Redirect Uri": {
            "secret": "TestSecret2",
            "redirect_uri": "http://brentertainment.com"
        },
        "Test Client ID with Multiple Redirect Uris": {
            "secret": "TestSecret3",
            "redirect_uri": "http://brentertainment.com http://morehazards.com"
        },
        "Test Client ID with Redirect Uri Parts": {
            "secret": "TestSecret4",
            "redirect_uri": "http://user:pass@brentertainment.com:2222/authorize/cb?auth_type=oauth"
        },
        "Test Some Other Client": {
            "secret": "TestSecret3"
        },
        "Test Client ID Empty Secret": {
            "secret": ""
        }
    },
    "user_credentials" : {
        "test-username": "testpass"
    },
    "refresh_tokens" : {
        "test-refreshtoken": {
            "refresh_token": "test-refreshtoken",
            "client_id": "Test Client ID",
            "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" : {
        "accesstoken-expired": {
            "access_token": "accesstoken-expired",
            "client_id": "Test Client ID",
            "expires": 1234567,
            "scope": null
        },
        "accesstoken-scope": {
            "access_token": "accesstoken-scope",
            "client_id": "Test Client ID",
            "expires": 99999999900,
            "scope": "testscope"
        },
        "accesstoken-malformed": {
            "access_token": "accesstoken-mallformed",
            "expires": 99999999900,
            "scope": "testscope"
        }
    },
    "jwt": {
	    "Test Client ID": {
	        "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"
    ]
}