Giter Site home page Giter Site logo

onify / blueprint-cloudblue-commerce-api-authenticate Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 391 KB

Onify Blueprint: Authenticate against CloudBlue Commerce API

Home Page: https://onify.co

License: MIT License

JavaScript 100.00%
bpmn cloudblue integration onify onify-blueprint onify-blueprints rest-api

blueprint-cloudblue-commerce-api-authenticate's Introduction

Onify Blueprints

Project Status: WIP โ€“ Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Test suite

Onify Blueprint: Authenticate against CloudBlue Commerce API

About

About CloudBlue

CloudBlue is a SaaS company that is helping businesses transform themselves, whatever their position in the supply chain. They provide a managed marketplace platform that takes the complexity out of distributing subscription- based solutions in the everything-as-a-service world. CloudBlue Commerce is multi-tier commerce platform that allows companies to build marketplaces.

Also checkout https://github.com/cloudblue.

About this Blueprint

In this Blueprint we show how to generate a access token to the CloudBlue Commerce REST API. From there you can then manage things like customers, orders and subscriptions.

Onify Blueprint: Authenticate against CloudBlue Commerce API

Requirements

Included

  • 1 x Flow (BPMN)

Setup

CloudBlue Commerce

Follow these instructions to get a API Subscription Key.

For more information about the CloudBlue Commerce API, please see https://apidocs.cloud.im/1.8/howto/ready.

Onify

Add the following settings in Onify.

Key Name Value Type Tag Role Description
cloudblue_baseurl CloudBlue Base URL <BASEURL> string cloudblue, frontend admin The Base URL for the API, eg. https://api.cloud.im/marketplace/eu
cloudblue_marketplace CloudBlue Marketplace <MARKETPLACE> string cloudblue, frontend admin The short name for the commercial marketplace, eg. se
cloudblue_subscriptionkey CloudBlue Subscription Key <KEY> password cloudblue, frontend admin Subscription to API services that contains certain limits on the API usage, for example, it defines the upper limit on the number of requests your system can send per a period of time.
cloudblue_username CloudBlue Username <USERNAME> string cloudblue, frontend admin Username is the login name to authenticate your system.
cloudblue_password CloudBlue Password <PASSWORD> password cloudblue, frontend admin Password for the user

Note: Creating settings via admin interface add a trailing _ in key. This is required for flow to work.

Deploy

  1. Open the BPMN diagram in Camunda Modeler.
  2. Deploy the BPMN diagram (click Deploy current diagram and follow the steps).

Run

This workflow should be run as a adhoc workflow and can be part of another process. Here is an example how to get a secret using a simple curl command.

curl -X 'POST' \
  'http://localhost:8181/api/v2/my/workflows/run/cloudblue-commerce-api-authenticate' \
  -H 'authorization: {auth-token}'

And here is the result:

{
    "output": {
        "token": "eyJhbGciOiJIUzM4NCJ9..."
    },
    "status": {
        "statuskey": "complete"
    }
}

You can also copy the flow elements into another flow if you want to get the same result but in another workflow without running it as a adhoc workflow.

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

blueprint-cloudblue-commerce-api-authenticate's People

Contributors

rolu01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.