Ezhilarasi | f95be21 | 2019-04-15 20:35:17 +0530 | [diff] [blame] | 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 | "dsl_definitions": { |
| 12 | "dynamic-rest-source": { |
| 13 | "type" : "token-auth", |
| 14 | "url" : "http://localhost:32778", |
| 15 | "token" : "Token 0123456789abcdef0123456789abcdef01234567" |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | basic-auth: |
| 20 | |
| 21 | "dsl_definitions": { |
| 22 | "dynamic-rest-source": { |
| 23 | "type" : "basic-auth", |
| 24 | "url" : "http://localhost:32778", |
| 25 | "username" : "bob", |
| 26 | "password": "marley" |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | ssl-basic-auth: |
| 31 | |
| 32 | "dsl_definitions": { |
| 33 | "dynamic-rest-source": { |
| 34 | "type" : "ssl-basic-auth", |
| 35 | "url" : "http://localhost:32778", |
| 36 | "keyStoreInstance": "JKS or PKCS12", |
| 37 | "sslTrust": "trusture", |
| 38 | "sslTrustPassword": "trustore password", |
| 39 | "sslKey": "keystore", |
| 40 | "sslKeyPassword: "keystore password" |
| 41 | } |
| 42 | } |