Code Monkey home page Code Monkey logo

redmine_omniauth_azure's Introduction

Redmine omniauth azure

This plugin is used to authenticate in redmine through Azure. It was more than inspired by redmine_omniauth_google see https://github.com/twinslash/redmine_omniauth_google and redmine_omniauth_github see https://github.com/ares/redmine_omniauth_github

Installation:

Choose folder /plugins, make command

git clone https://github.com/Gucin/redmine_omniauth_azure.git

Update gems and restart rails server.

Registration

To make possible to authenticate via Azure you must first to register application in Azure

  • Go to the registration link.
  • Goto Application tab, click "Add"
  • Choose "Add an application my organization is developing"
  • Choose "Web Application/OR Web API", fill in the "Name"
  • Fill in the "Sign-on URL" and "App ID URL" with your website corresponding address. Please ensure APP ID URL is unique
  • Goto Configure tab, find the "CLIENT_ID"
  • Generate a new key and remember the key value as "CLIENT_SECRET"
  • Fill your callback url to "REPLY URI"
  • Save your changes, and click "View Points" to get tenant id
  • The tenant id is a unique id for each application
    https://graph.windows.net/ff5ffbee-d997-4f49-a926-5f3c41bc45a3
    tenant id is ff5ffbee-d997-4f49-a926-5f3c41bc45a3
    

The registrations is complete.

Configuration

To make plugin to work properly

  • Login as administrator. In top menu select "Administration". Choose menu item Plugins. In plugins list choose "Redmine Omniauth Azure plugin". Press "Configure".
  • Fill Сlient ID & Client Secret & Tenant ID by corresponding values, obtained by Azure.
  • Put the check "Oauth authentification", to make it possible to login through Azure. Click Apply. Users can now to use apportunity to login via Azure.

Additionaly

  • Setup value Autologin in Settings on tab Authentification

Other options

By default, all domains are allowed to authenticate through Azure. To limit login through Azure for other domains you have to fill allowed domains in the text box field the "Allowed domains". Domains must be separated by newlines. For example:

onedomain.com
otherdomain.com

Work process

User goes to the login page (sign in) and clicks the button with Azure image. The plugin redirects him to Azure where user enters his the еmail & password from Azure. Azure redirects user back to plugins controller. Then the following cases:

  1. If auto registration is enabled, user is redirected to 'my/page'
  2. In other case user account is created and waited for admin activation

redmine_omniauth_azure's People

Contributors

geordee avatar gucin avatar hao-zhang-a51 avatar kinosang avatar masonzhang avatar

Watchers

 avatar  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.