Created
May 3, 2016 00:42
-
-
Save eeshansim/8e7e046df7f966086262b95d4bfdb741 to your computer and use it in GitHub Desktop.
Workato SDK Basic Authentication definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connection: { | |
fields: [ | |
{ | |
name: 'api_key', | |
optional: false, | |
hint: 'Profile (top right) > Settings > Your API Keys' | |
} | |
], | |
authorization: { | |
type: 'basic_auth', | |
# close.io uses api key only for authentication. treats apikey as username and password left blank | |
# curl -u "{your api_key}:" "https://app.close.io/api/v1/me/" | |
credentials: ->(connection) { | |
user(connection['api_key']) | |
password("") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment