9f628696c74a6f9ab47f122312d948991c303852
[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    "dsl_definitions": {
16      "dynamic-rest-source": {
17        "type" : "token-auth",
18        "url" : "http://localhost:32778",
19        "token" : <token>
20      }
21    }
22    
23 basic-auth:
24 ~~~~~~~~~~~
25
26 .. code-block:: json
27    :linenos:
28       
29    "dsl_definitions": {
30      "dynamic-rest-source": {
31        "type" : "basic-auth",
32        "url" : "http://localhost:32778",
33        "username" : <username>,
34        "password": <password>
35     }
36    }
37    
38 ssl-basic-auth:
39 ~~~~~~~~~~~~~~~
40
41 .. code-block:: json
42    :linenos:
43       
44    "dsl_definitions": {
45      "dynamic-rest-source": {
46        "type" : "ssl-basic-auth",
47        "url" : "http://localhost:32778",
48        "keyStoreInstance": "JKS or PKCS12",
49        "sslTrust": "trusture",
50        "sslTrustPassword": <password>,
51        "sslKey": "keystore",
52        "sslKeyPassword: <password>
53     }
54    }