Fix formatting issues in RST files
[ccsdk/cds.git] / docs / datadictionary / restauth.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (C) 2019 IBM.
4
5
6 Resource Rest Authentication 
7 ----------------------------
8
9 token-auth:
10 ~~~~~~~~~~~
11
12 .. code-block:: json
13    :linenos:
14    
15    {
16       "dsl_definitions": {
17         "dynamic-rest-source": {
18           "type" : "token-auth",
19           "url" : "http://localhost:32778",
20           "token" : "<token>"
21         }
22       }
23    }
24    
25 basic-auth:
26 ~~~~~~~~~~~
27
28 .. code-block:: json
29    :linenos:
30       
31    {
32       "dsl_definitions": {
33         "dynamic-rest-source": {
34           "type" : "basic-auth",
35           "url" : "http://localhost:32778",
36           "username" : "<username>",
37           "password": "<password>"
38        }
39       }
40    }
41    
42 ssl-basic-auth:
43 ~~~~~~~~~~~~~~~
44
45 .. code-block:: json
46    :linenos:
47       
48    {
49       "dsl_definitions": {
50         "dynamic-rest-source": {
51           "type" : "ssl-basic-auth",
52           "url" : "http://localhost:32778",
53           "keyStoreInstance": "JKS or PKCS12",
54           "sslTrust": "trusture",
55           "sslTrustPassword": "<password>",
56           "sslKey": "keystore",
57           "sslKeyPassword": "<password>"
58        }
59       }
60    }