mashtoken

package module
v0.0.0-...-dceaa68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 8 Imported by: 0

README

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)

Documentation

Overview

Package mashtoken implements getting a token from TIBCO Cloud Mashery

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

Types

type MyActivity

type MyActivity struct {
	// contains filtered or unexported fields
}

MyActivity is a stub for your Activity implementation

func (*MyActivity) Eval

func (a *MyActivity) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*MyActivity) Metadata

func (a *MyActivity) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL