Skip to content

Add allowUnauthenticatedAll() convenience wrapper #706

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

Closed
wants to merge 2 commits into from

Conversation

dereuromark
Copy link
Member

@dereuromark dereuromark commented Apr 18, 2025

Resolves #645

setting the requireIdentity to false is not convenient for a specific controller

@dereuromark dereuromark added this to the 3.x milestone Apr 18, 2025
@ADmad
Copy link
Member

ADmad commented Apr 18, 2025

Give that the component already has a requireIdentity flag to disable identity check, just adding a convenience function which sets it to false would be a much easier solution.

public function disableIdentityCheck(): void
{
    $this->setConfig('requireIdentity', false);
}

@dereuromark dereuromark deleted the allowUnauthenticatedAll branch April 18, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allowUnauthenticated() for all actions
2 participants