-
Notifications
You must be signed in to change notification settings - Fork 2
/
ddoc.json
61 lines (61 loc) · 3.27 KB
/
ddoc.json
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
{
"_id": "_design/openiddict",
"views": {
"application": {
"reduce": "_count",
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.application') {\n emit(doc._id, doc._rev);\n }\n}"
},
"application.client_id": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.application') {\n emit(doc.client_id, doc._rev);\n }\n}"
},
"application.redirect_uris": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.application') {\n doc.redirect_uris.forEach(uri => {\n emit(uri, doc._rev);\n })\n }\n}"
},
"application.post_logout_redirect_uris": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.application') {\n doc.post_logout_redirect_uris.forEach(uri => {\n emit(uri, doc._rev);\n })\n }\n}"
},
"authorization": {
"reduce": "_count",
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.authorization') {\n emit(doc._id, doc._rev);\n }\n}"
},
"authorization.application_id": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.authorization') {\n emit(doc.application_id, doc._rev);\n }\n}"
},
"authorization.subject": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.authorization') {\n emit(doc.subject, doc._rev);\n }\n}"
},
"authorization.prune": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.authorization' && doc.status != 'inactive' && doc.status != 'valid') {\n emit([doc.creation_date, doc.expiration_date], doc._rev);\n }\n}"
},
"scope": {
"reduce": "_count",
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.scope') {\n emit(doc._id, doc._rev);\n }\n}"
},
"scope.name": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.scope') {\n emit(doc.name, doc._rev);\n }\n}"
},
"scope.resources": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.scope') {\n doc.resources.forEach(resource => {\n emit(resource, doc._rev);\n })\n }\n}"
},
"token": {
"reduce": "_count",
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.token') {\n emit(doc._id, doc._rev);\n }\n}"
},
"token.application_id": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.token') {\n emit(doc.application_id, doc._rev);\n }\n}"
},
"token.authorization_id": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.token') {\n emit(doc.authorization_id, doc._rev);\n }\n}"
},
"token.reference_id": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.token') {\n emit(doc.reference_id, doc._rev);\n }\n}"
},
"token.subject": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.token') {\n emit(doc.subject, doc._rev);\n }\n}"
},
"token.prune": {
"map": "function (doc) {\n if (doc.split_discriminator == 'openiddict.token' && doc.status != 'inactive' && doc.status != 'valid') {\n emit([doc.creation_date, doc.expiration_date], doc._rev);\n }\n}"
}
},
"language": "javascript"
}