Giter Site home page Giter Site logo

jaapspiering / azure-oauth2-cambpm-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from camunda-consulting/azure-oauth2-cambpm-web

0.0 1.0 0.0 8 KB

Camunda BPM Spring Boot application that utilizes Spring Security and Microsoft Azure libraries to authenticate against Azure Active Directory.

Java 96.69% JavaScript 3.31%

azure-oauth2-cambpm-web's Introduction

azure-oauth2-cambpm-web

Introduction

This project is a running example of a Camunda BPM Spring Boot instance using OAuth2 via Spring Security to authenticate a user against Azure Active Directory. This project also makes use of Microsoft Azure AD Spring Boot Starter libraries.

Prerequisites

You must have the following:

  • An Azure account
  • Access to Azure portal (portal.azure.com)
  • Rights to create an Azure Postgresql database resource.
  • You need to create a User in AAD (like 'user1')
  • You need to be able to create Groups in AAD, and make your user a member of those groups as needed. Make sure one of the groups is 'camunda-admin', as this is a default admin group in Camunda.
  • You must be able to create an "App Registration" for your app (like 'spring-security-web-app')
  • In that App Registration, you need to be able to generate a secret in the 'Certificates & Secrets' section
  • In the Authentication section, you need to provide a Redirect URI. It should be something like http://localhost:8080/login/oauth2/code/azure (when running this example locally)
  • under 'API Permissions', add permissions for the Default Directory of:
    • User.Read
    • Directory.AccessAsUser.All

Obviously learning all about Azure is beyond the scope of this project. This is more of a Camunda BPM 'Quick Start' running example.

Instructions

Once Prerequisites have been met, you must update the application.yaml with the templated values that you have gathered from your Azure setup.

Then run 'mvn clean install'. Then you can start your Spring Boot app locally with 'mvn spring-boot:run', or via your preferred IDE method.

Finally navigate to "http://localhost:8080". You should get redirected to the Welcome screen. Select the 'Login with your Microsoft Credentials' link, then use the credentials of the Azure AD user that you created to log in. When complete, you should be logged in to Camunda as that user.

azure-oauth2-cambpm-web's People

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.