Giter VIP home page Giter VIP logo

plugin-microsoftud's Introduction

Microsoft OAuth User Directory Plugin

Overview

Microsoft UD provides federated logins for FarCry publishing platform using OAuth 2.0 for Microsoft accounts. You can set up Microsoft authentication as an option in the login, or the default login for immediate access to the webtop.

Microsoft UD Login

Installation

Part 1: MSFT App Configuration

Create a Microsoft Account and login to Azure App Registrations

Add an App

Add an App

Copy the Application Id to a text file for later. This will be the OAuth client ID.

Enter an application name and click Create

Enter name

Click Generate New Password and copy the generated password to a text file for later.

Enter name

You will need to add the links FarCry will be using. Click Add Platform and select Web. This is the value to enter:

  • redirect uris: http://[your domain here]/mudLogin/displayLogin

Part 2: FarCry Configuration

Download and add the microsoftud plugin to your project:

https://github.com/farcrycore/plugin-microsoftud

Your plugin will typically be stored in ./farcry/plugins/microsoftud and you can register it within your project by adding it to the ./www/farcryconstructor.cfm. For example:

<cfset THIS.plugins = "microsoftud,googleanalytics" /> 

Update the application (ie restart the application) to register the newly added plugin.

Configure the plugin:

  • Add the Client ID (aka Application ID) and Client Secret (aka Password) into the Microsoft User Directory configuration under ADMIN > Configuration.
  • Deploy the new content types - mudUser and mudGroup through the webtop ADMIN > Developer Tools > COAPI.
  • Create a Microsoft user group (Admin -> General Admin -> User Directory -> Microsoft Groups) for your specific email domain (anyone logging in with an email within this domain will be automatically assigned to this group)
  • Add your Group to the appropriate FarCry roles (Admin -> General Admin -> Roles & Permissions -> Roles)

But wait, there's more!

Often you will have an existing account in the application you have added MicosoftUD to.

This can lead to issues with:

  • history tracking
  • content ownership
  • the old account won't be disabled

In the Webtop there is a utility for merging an existing account into your Microsoft UD login account.

FarCry Merge Profile

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.