UMich OIDC Login

plugin banner

Restrict access to the whole site or only certain parts based on OpenID Connect (OIDC) login and group membership information.

Author:Regents of the University of Michigan (profile at wordpress.org)
WordPress version required:6.0.0
WordPress version tested:6.3.1
Plugin version:1.2.0
Added to WordPress repository:01-11-2022
Last updated:12-09-2023
Rating, %:0
Rated by:0
Plugin URI:https://github.com/its-webhosting/umich-oidc-...
Total downloads:1 444
Active installs:100+
plugin download
Click to start download

This plugin is for a very specific use case: Your WordPress website is part of an organization that uses OpenID Connect (OIDC) for web single-sign-on as well as for group-based authorization. In that case, this plugin will let you restrict access to parts of your WordPress website based on OIDC login and group membership information.

This plugin has been tested with:

  • Shibboleth OIDC using the edumember_ismemberof attribute for LDAP group membership.

Features:

  • Allow site visitors to log in via OIDC without needing a WordPress user account.
  • Optionally allow WordPress users to log in via OIDC instead of using their WordPress password.
  • Optionally restrict access to the entire site to logged-in users or only members of specific groups.
  • Optionally restrict access to specific pages and posts to logged-in users or only members of specific groups.
  • Show parts of pages/posts/widgets only to logged-in users or members of specific groups.
  • Access restrictions apply to site visitors, feeds, the REST API, and XMLRPC.
  • Shortcodes (Gutenberg blocks planned for a future release)
    • umich_oidc_button – Generate a login or logout button.
    • umich_oidc_link – Generate a login or logout link.
    • umich_oidc_logged_in – Show content only if the visitor is logged in.
    • umich_oidc_member – Show content only if the visitor is a member of one or more groups.
    • umich_oidc_not_logged_in – Show content only if the visitor is NOT logged in.
    • umich_oidc_not_member – Show content only if the visitor NOT a member of the specified groups.
    • umich_oidc_url – Generate a login or logout URL.
    • umich_oidc_userinfo – Display information about the currently-logged-in OIDC user.

Restricting private content in search results

You can prevent content from showing up in web search engine results by restricting access to particular pages/posts.

Search results from WordPress’ built-in search will only show content that the searching user has access to.

WARNING: WordPress search plugins may show content that the user does not have access to, leaking private information. Please test search plugins before enabling them. If a search plugin provides an appropriate WordPress hook for limiting search results, contact us, and we may be able to add support for it to UMich OIDC Login.

Copyright and license information

Copyright (c) 2022 Regents of the University of Michigan.

This file is part of the UMich OIDC Login WordPress plugin.

UMich OIDC Login is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

UMich OIDC Login is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with UMich OIDC Login. If not, see https://www.gnu.org/licenses/.


Screenshots
FAQ
ChangeLog