Advertisement
lenegirl

authproviders.json

Oct 1st, 2016
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.93 KB | None | 0 0
  1. {
  2.     "type": "object",
  3.     "title": "Authprovider schema",
  4.     "$schema": "http://json-schema.org/draft-04/schema",
  5.     "required": ["provider_key", "provider_type"],
  6.     "properties": {
  7.         "id": {
  8.             "type": ["integer", "null"],
  9.             "_db_settings": {
  10.                 "type": "id_field",
  11.                 "required": true,
  12.                 "primary_key": true
  13.             }
  14.         },
  15.         "provider_key": {
  16.             "type": "string",
  17.             "_db_settings": {
  18.                 "type": "string",
  19.                 "required": true
  20.             },
  21.             "_processors": ["encrypt"]
  22.         },
  23.         "provider_type": {
  24.             "type": "choice",
  25.             "_db_settings": {
  26.                 "type": "choice",
  27.                 "choices": ["simple", "facebook", "google", "twitter"],
  28.                 "default": "simple",
  29.                 "required": true
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement