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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
{
"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": {
"client_secret": "TestSecret"
},
"Test Client ID with Redirect Uri": {
"client_secret": "TestSecret2",
"redirect_uri": "http://brentertainment.com"
},
"Test Client ID with Multiple Redirect Uris": {
"client_secret": "TestSecret3",
"redirect_uri": "http://brentertainment.com http://morehazards.com"
},
"Test Client ID with Redirect Uri Parts": {
"client_secret": "TestSecret4",
"redirect_uri": "http://user:pass@brentertainment.com:2222/authorize/cb?auth_type=oauth"
},
"Test Some Other Client": {
"client_secret": "TestSecret3"
},
"Test Client ID Empty Secret": {
"client_secret": ""
},
"Test Client ID For Password Grant": {
"grant_types": "password",
"client_secret": ""
},
"Client ID With User ID": {
"client_secret": "TestSecret",
"user_id": "brent@brentertainment.com"
},
"oauth_test_client": {
"client_secret": "testpass",
"grant_types": "implicit password"
}
},
"user_credentials" : {
"test-username": {
"password": "testpass"
},
"testusername": {
"password": "testpass"
},
"johndoe": {
"password": "password"
}
},
"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"
}
},
"jti": [
{
"issuer": "Test Client ID",
"subject": "testuser@ourdomain.com",
"audience": "http://myapp.com/oauth/auth",
"expires": 99999999900,
"jti": "used_jti"
}
],
"client_supported_scopes" : {
"Test Client ID" : ["clientscope1", "clientscope2"],
"Test Client ID 2" : ["clientscope3"]
},
"client_default_scopes" : {
"Test Default Scope Client ID" : ["clientscope1", "clientscope2"],
"Test Default Scope Client ID 2" : ["clientscope3"]
},
"supported_scopes" : [
"scope1",
"scope2",
"scope3",
"supportedscope1",
"supportedscope2",
"supportedscope3",
"supportedscope4"
],
"keys": {
"public_key": "-----BEGIN CERTIFICATE-----\nMIICiDCCAfGgAwIBAgIBADANBgkqhkiG9w0BAQQFADA9MQswCQYDVQQGEwJVUzEL\nMAkGA1UECBMCVVQxITAfBgNVBAoTGFZpZ25ldHRlIENvcnBvcmF0aW9uIFNCWDAe\nFw0xMTEwMTUwMzE4MjdaFw0zMTEwMTAwMzE4MjdaMD0xCzAJBgNVBAYTAlVTMQsw\nCQYDVQQIEwJVVDEhMB8GA1UEChMYVmlnbmV0dGUgQ29ycG9yYXRpb24gU0JYMIGf\nMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8fpi06NfVYHAOAnxNMVnTXr/ptsLs\nNjP+uAt2eO0cc5J9H5XV8lFVujOrRu/JWi1TDmAvOaf/6A3BphIA1Pwp0AAqlZdw\nizIum8j0KzpsGYH5qReNQDwF3oUSKMsQCCGCDHrDYifG/pRi9bN1ZVjEXPr35HJu\nBe+FQpZTs8DewwIDAQABo4GXMIGUMB0GA1UdDgQWBBRe8hrEXm+Yim4YlD5Nx+1K\nvCYs9DBlBgNVHSMEXjBcgBRe8hrEXm+Yim4YlD5Nx+1KvCYs9KFBpD8wPTELMAkG\nA1UEBhMCVVMxCzAJBgNVBAgTAlVUMSEwHwYDVQQKExhWaWduZXR0ZSBDb3Jwb3Jh\ndGlvbiBTQliCAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQQFAAOBgQBjhyRD\nlM7vnLn6drgQVftW5V9nDFAyPAuiGvMIKFSbiAf1PxXCRn5sfJquwWKsJUi4ZGNl\naViXdFmN6/F13PSM+yg63tpKy0fYqMbTM+Oe5WuSHkSW1VuYNHV+24adgNk/FRDL\nFRrlM1f6s9VTLWvwGItjfrof0Ba8Uq7ZDSb9Xg==\n-----END CERTIFICATE-----",
"private_key": "-----B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