Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 5456:9008aea491bf
mod_http_oauth2: Reject duplicate list items in client registration
Useless waste of space
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 16 May 2023 21:10:55 +0200 |
| parents | 80a81e7f3c4e |
| children | 9156a4754466 |
comparison
equal
deleted
inserted
replaced
| 5455:80a81e7f3c4e | 5456:9008aea491bf |
|---|---|
| 761 default = "client_secret_basic"; | 761 default = "client_secret_basic"; |
| 762 }; | 762 }; |
| 763 grant_types = { | 763 grant_types = { |
| 764 type = "array"; | 764 type = "array"; |
| 765 minItems = 1; | 765 minItems = 1; |
| 766 uniqueItems = true; | |
| 766 items = { | 767 items = { |
| 767 type = "string"; | 768 type = "string"; |
| 768 enum = { | 769 enum = { |
| 769 "authorization_code"; | 770 "authorization_code"; |
| 770 "implicit"; | 771 "implicit"; |
| 776 }; | 777 }; |
| 777 }; | 778 }; |
| 778 default = { "authorization_code" }; | 779 default = { "authorization_code" }; |
| 779 }; | 780 }; |
| 780 application_type = { type = "string"; enum = { "native"; "web" }; default = "web" }; | 781 application_type = { type = "string"; enum = { "native"; "web" }; default = "web" }; |
| 781 response_types = { type = "array"; minItems = 1; items = { type = "string"; enum = { "code"; "token" } }; default = { "code" } }; | 782 response_types = { |
| 783 type = "array"; | |
| 784 minItems = 1; | |
| 785 uniqueItems = true; | |
| 786 items = { type = "string"; enum = { "code"; "token" } }; | |
| 787 default = { "code" }; | |
| 788 }; | |
| 782 client_name = { type = "string" }; | 789 client_name = { type = "string" }; |
| 783 client_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; | 790 client_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; |
| 784 logo_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; | 791 logo_uri = { type = "string"; format = "uri"; luaPattern = "^https:" }; |
| 785 scope = { type = "string" }; | 792 scope = { type = "string" }; |
| 786 contacts = { type = "array"; minItems = 1; items = { type = "string"; format = "email" } }; | 793 contacts = { type = "array"; minItems = 1; items = { type = "string"; format = "email" } }; |
