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

Access policy does not apply for newly logged in user #286

Closed
aamplugin opened this issue Jun 16, 2023 · 0 comments
Closed

Access policy does not apply for newly logged in user #286

aamplugin opened this issue Jun 16, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@aamplugin
Copy link
Owner

When the WordPress core authenticates user with credentials, it does not set current user global variable and triggers redirect instead. This creates an issue for policies that define login redirects on the role level.

For example, this policy will not apply during user login process:

{
    "Param": [
        {
            "Key": "redirect:on:login",
            "Value": {
                "Type": "url_redirect",
                "Url": "https://demo.aamportal.com/members"
            },
            "Condition": {
                "In": {
                    "subscriber": "(*array)${USER.roles}"
                }
            }
        }
    ]
}
@aamplugin aamplugin self-assigned this Jun 16, 2023
@aamplugin aamplugin added the bug label Jun 16, 2023
@aamplugin aamplugin added this to the AAM - 6.9.12 milestone Jun 16, 2023
@aamplugin aamplugin added this to Ready For Release in Advanced Access Manager Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Advanced Access Manager
  
Ready For Release
Development

No branches or pull requests

1 participant