Authentication: OpenID Connect

auth_oidc
Maintained by Picture of James McQuillan James McQuillan, Picture of Zion Brewer Zion Brewer, Picture of Charles Verge Charles Verge, Picture of Nima Mojgani Nima Mojgani
The OpenID Connect plugin provides single-sign-on functionality using configurable identity providers.
1555 sites
1k downloads
30 fans

OpenID Connect Authentication Plugin

The OpenID Connect plugin provides single-sign-on functionality using configurable identity providers, including Azure Active Directory. It is used as part of the Office 365 suite of plugins to connect to Azure Active Directory, but can be configured to provide SSO for other OpenID Connect providers as well.


This is part of the suite of Office 365 plugins for Moodle.

This plugin is updated with stable releases. To follow active development on GitHub, click here.


Contributing

Before we can accept your pull request, you'll need to electronically complete Microsoft's Contributor License Agreement. If you've done this for other Microsoft projects, then you're already covered.

Why a CLA? (from the FSF)


Copyright

(c) Microsoft, Inc.  Code for this plugin is licensed under the GPLv3 license.

Any Microsoft trademarks and logos included in these plugins are property of Microsoft and should not be reused, redistributed, modified, repurposed, or otherwise altered or used outside of this plugin.

Sets

This plugin is part of set Office 365.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Picture of James McQuillan
James McQuillan (Lead maintainer)
Picture of Vinayak (Vin) Bhalerao
Vinayak (Vin) Bhalerao
Picture of Akinsaya Delamarre
Akinsaya Delamarre
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of James McQuillan
    Wed, 28 Sep 2016, 1:31 PM
    Hi Richard - can you provide any more information about what your users might be doing to initiate this? There are a few places where a user can switch to OpenID Connect, but it shouldn't happen without some kind of intentional action.
  • self portrait photograph
    Mon, 28 Nov 2016, 8:24 PM
    Hi, has there been any consideration of allowing configuration of multiple providers with this plugin? If a 3rd party developed this functionality, would it be in scope for merging upstream?
    E.g. O365 and HumanitarianID on the same Moodle site, both configured using the same instance of the OpenID connect plugin.
  • Picture of James McQuillan
    Tue, 29 Nov 2016, 4:02 AM
    @chris - we don't have a plan for that at the moment but do feel free to submit a pull request on GitHub. All development is done in a unified repository for Office 365 Moodle development - https://github.com/Microsoft/o365-moodle.
  • Picture of Hari Vege
    Wed, 1 Feb 2017, 1:47 AM
    I have a set of users already added into my moodle site with their email addresses being uni addresses and their username being their student ID. I now want them to login to their moodle account through their office 365 credentials and still access their original accounts instead of ending up creating new accounts. Any help in this regard.
  • Picture of James McQuillan
    Fri, 3 Feb 2017, 6:20 AM
    @hari vege - Have you connected the existing Moodle user accounts to their Office 365 accounts using the Office plugins? Not sure whether you need help doing that or whether you have done that and are experiencing problems.
  • Wazza
    Fri, 17 Feb 2017, 3:36 AM
    James, sorry for my late respons. I forgot to subscribe to this threat.

    I can't find out what my users are doing, but still they get switched to OpenID authentication in Moodle. I only notice this when I get reports about users not being able to login. Upon checking, I always find out that the users are switched to OpenID in stead of SAML.

    Is there any place where users can set this themselves? I can hardly imagine it. I think it happens when they click the Moodle TILE in the Office 365 environment. You know, the page where all the tiles are in Office 365 (tiles like Sharepoint, Delve, Word, etc. we have a Moodle tile there too.
  • Picture of Gopal Velusamy
    Fri, 17 Mar 2017, 1:08 PM
    Whether it's possible to do SSO using the OpenID connect plugin with Azure AD.
    Also Is there office 365 plugin mandatory for SSO with Azure AD?
  • Picture of James McQuillan
    Thu, 23 Mar 2017, 2:13 PM
    @richard - Are you on the newest version of the plugins? There was a specific situation, fixed around November, that could lead to a user being switched to OpenID Connect auth. It is possible for users to switch their authentication using the plugins, but this is disabled by default (controlled via capability that users are not given automatically). So next steps I would recommend that you upgrade to the newest version of the plugins, and verify you have not granted any auth/oidc capabilities to the users in question.
  • Picture of James McQuillan
    Thu, 23 Mar 2017, 2:14 PM
    @gopal You can do SSO with Azure AD using only this plugin. The rest of the Office 365 plugins provide additional features, but a simple SSO only requires this plugin.
  • Picture of Sung Choi
    Fri, 2 Jun 2017, 11:04 PM
    Hi,
    I just installed installed Office 365 integration plugin and following the configuration steps but can't do the step 2: Set system API user. When I click 'Set User' button, I see the page with 'Please configure OpenID Connect server endpoint.' and on the browser console, I see the message: '/local/o365/acp.php?mode=setsystemuser:1 GET http://example.com/local/o365/acp.php?mode=setsystemuser 404 (Not Found)'. And when I visited the Sign-on URL 'http://training.aerothreads.com/auth/oidc/' I get the same message, too. I feel like I am missing something obvious, but I can't figure out. Does anyone have similar experience and how did you resolve this?

    My Moodle version is 3.2.2+ (Build: 20170412)
  • Picture of Samuli Koskinen
    Tue, 11 Jul 2017, 9:06 PM
    Is there a way to get the 'email' attribute for the user, when using oidc to create a new account. This would be very crucial for me, since I got some automatic actions based on users email.
  • Picture of ajay kotnala
    Wed, 26 Jul 2017, 6:58 PM
    Hi,

    I am trying to consume this library with existing Identityserver 3 integration.
    I am using

    $plugin->version = 2016120501;
    $plugin->requires = 2016120500;
    $plugin->component = 'auth_oidc';
    $plugin->maturity = MATURITY_STABLE;
    $plugin->release = '3.2.0.1';

    and I have one client in Identityserver 3 with
    redirect URI
    Flow is Authorization code
    Logout Uri and almost everything.
    I have already tried this client(idsrv3) with another application and it is working fine.

    In DashboardSite --> administration -->Plugins -->Authentication -->OpenID Connect

    i have configure
    Provider name = OpenID Connect
    ClientId = same as idsrv3
    Authorization endpoint= https://myidentityserver3.com/identity
    Token Endpoint= https://myidentityserver3.com/identity/connect/token
    Redirect URI = https://localhost/moodle/auth/oidc/
    Authentication Method = Authorization Code Flow (recommended)

    but it is not showing any link or any changes on my login page.
    please suggest me if it works with identityserver3 or not.
    if yes then what is I am missing?

    Thanks,
    ajay kotnala
    kotnala.ajayk@gmail.com
  • Picture of Thomas College
    Wed, 2 Aug 2017, 9:57 PM
    We are currently using the OIDC plugin for Office 365 authentication. Would there be any benefit to moving from the OIDC plugin to the built in OAuth2 plugin available in Moodle 3.3 core? It seems to me that OIDC would be the better choice, but I was hoping to get input from those more knowledgeable than me.

    Thanks
  • Picture of Anderson Hsu
    Sat, 12 Aug 2017, 9:23 PM
    Can we use the plugin for SSO with confluence and moodle ? We try to find singal sign on plugin for confluence and moodle . Thanks a lot.
  • Picture of W Roes
    Wed, 8 Nov 2017, 5:57 PM
    What happens if a username (upn) is updated in ADFS? As far as I can see in loginflow/authcode.php/handlelogin it then tries to login with the old username even though this was updated in Moodle as well.

    Thanks,
    Willem
1 2 3
Please login to post comments