Skip to content

Onify Blueprint: Authenticate against Microsoft Azure (AD) API using OAuth 2.0

License

Notifications You must be signed in to change notification settings

onify/blueprint-microsoft-azure-api-authenticate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Onify Blueprints

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

Onify Blueprint: Authenticate against Microsoft Azure (AD) API using OAuth 2.0

Onify Blueprint: Authenticate against Microsoft Azure (AD) API using OAuth 2.0

Requirements

  • Onify Hub
  • Onify Flow license
  • Camunda Modeler

Included

  • 1 x Flows

Setup

Microsoft Azure

You must register a new app in App registrations in Azure AD.

  1. Register your app (platform must be set to native (Mobile and desktop applications)).
  2. Set API permissions (eg. for Microsoft Graph or Dynamics 365).
  3. Grant admin consent.

For more information about setting up Microsoft Graph/Azure API credentials, see https://docs.microsoft.com/en-us/graph/auth-v2-service.

Onify

Add the following setting(s) to Onify.

Replace <TENANT>, <CLIENTID> and <CLIENTSECRET> with correct values.

{
  "key": "_azure_credentials",
  "name": "Microsoft Azure credentials",
  "value": "{\"tenant\":\"<TENANTID>\", \"client_id\":\"<CLIENTID>\", \"client_secret\":\"<CLIENTSECRET>\"}",
  "type": "object",
  "tag": [
    "azure",
    "credentials",
    "frontend"
  ],
  "category": "custom",
  "role": [
    "admin"
  ]
}

Deploy

  1. Open microsoft-azure-api-authenticate.bpmn in Camunda Modeler.
  2. Change form.scope in Generate Azure access token task (optional). See https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent for more info.
  3. Click Deploy current diagram and follow the steps.

Test

To test and run the flow, click Start current diagram.

Support

License

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