Support the ongoing development of Laravel.io →
Authentication Security
Last updated 1 year ago.
0

We came up with the following solution in case anyone else has the same question. Because the app under test will be running on it's own testing server, we can just remove authentication altogether. We'll do this by creating 2 auth service providers--one for extending Auth with our real authentication driver and another for extending Auth with a dummy driver. Inside of an environment-specific config for the testing server, we'll register the dummy service provider whereas production will register the normal provider.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

rms2219 rms2219 Joined 3 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.