Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
activity.go
activity.json
activity_test.go

README.md

Mash Token

Use the TIBCO Cloud Mashery V3 API to get a login token to perform other calls

Installation

flogo install github.com/retgits/flogo-components/activity/mashtoken

Link for flogo web:

https://github.com/retgits/flogo-components/activity/mashtoken

Schema

Inputs and Outputs:

{
    "inputs": [
        {
            "name": "username",
            "type": "string",
            "required": true
        },
        {
            "name": "password",
            "type": "string",
            "required": true
        },
        {
            "name": "scope",
            "type": "string",
            "required": true
        },
        {
            "name": "basicauth",
            "type": "string",
            "required": true
        }
    ],
    "outputs": [
        {
            "name": "accesstoken",
            "type": "string"
        },
        {
            "name": "tokentype",
            "type": "string"
        },
        {
            "name": "expiresin",
            "type": "string"
        },
        {
            "name": "refreshtoken",
            "type": "string"
        },
        {
            "name": "scope",
            "type": "string"
        }
    ]
}

Inputs

Input Description
username The username for which you want to generate a token
password The password associated with the username
scope The scope for which you want to generate the token (this is the Area ID)
basicauth The username / password combination used to connect to Mashery (must be in format user:pass and is likely not the same as the username and password above)

Ouputs

Output Description
accesstoken The access token generated by the Mashery API
tokentype The type of token generated by the Mashery API
expiresin The amount of time (seconds) in which the token expires
refreshtoken The token to use to refresh the access token
scope The scope for which the access token is valid (Area)