Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev - Added hook to allow other plugins to provide their own authenti… #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iugo-robert
Copy link

Description

Added a filter to the user object to allow other plugins to provide their own authentication methods. This change introduces a new filter duo_universal_authenticated_user which can be used to modify the authenticated user object or handle authentication in a custom way.

Motivation and Context

This change is required to provide flexibility in the authentication process, allowing other plugins to hook into the authentication flow and provide their own methods. It solves the problem of rigid authentication by enabling extensibility through WordPress filters.

How Has This Been Tested?

  • Verified that the filter duo_universal_authenticated_user is applied correctly during the authentication process.
  • Tested with a custom plugin to ensure it can modify the user object as expected.
  • Ensured that the default authentication process remains unaffected when no custom plugins are hooked into the filter.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant