GithubHelp home page GithubHelp logo

lgdoor / azure-oauth-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from t-wanl/azure-oauth-plugin

0.0 1.0 0.0 83.05 MB

A Jenkins Plugin that supports authentication via Azure OAuth

License: MIT License

Java 99.12% HTML 0.88%

azure-oauth-plugin's Introduction

azure-oauth-plugin

A Jenkins Plugin that supports authentication via Azure OAuth

Setup In Azure Active Directory

Open Azure Active Directory, in Properties, copy Directory ID, it will be used as tenant in Jenkins

Register an application in AAD, copy the Application ID, it will be used as Client ID

In Application setting page, add a new entry http://{your-jenkins-domain}/securityRealm/finishLogin

In Application setting page, click Keys, generate a new key, copy the value, it will be used as Client Secret in Jenkins.

In Application setting page, click Required Permissions and select Windows Azure Service Management API, then select Access Azure Service Management as organization users (preview) and save. This API and permission is for manage resource in subscription

In Application setting page, click Required Permissions and select Microsoft Graph, then select Read all groups and Read directory data permissions in Application permissions section

Click Grant Permissions. If you are not an admin in your tenant, please contact admin to grant the permissions which declared as require admin in Enable Access page

Wait at most 20 minutes to let the permissions take effects.

Setup In Jenkins

Click Manage Jenkins in the left menu, then click Configure Global Security, check Enable security

Enable Azure Authentication

To enable Azure Authentication, check Azure OAuth Plugin and fill in the textbox copied from Azure portal.

Click Verify Application to make sure your input is valid.

Enable Azure Aurhorization

To enable Azure Authentication, check Azure Active Directory Role-Based Strategy

Click Save, click Manage Jenkins and then Manage and Assign Roles to manage roles and assign roles to Azure users or groups.

Assign Roles

If you are going to make roles for Azure users or groups, the format for User/group to add is Display Name(Object ID). You can wait for auto-completion of textbox and select one of them to make sure your input is valid.

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.