File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 77use Auth0 \Laravel \Exception \AuthenticationException ;
88use Auth0 \Laravel \Entities \Credential ;
99use Auth0 \Laravel \Model \Stateful \User ;
10+ use Auth0 \SDK \Configuration \SdkConfiguration ;
1011use Illuminate \Support \Facades \Route ;
1112
1213uses ()->group ('auth ' , 'auth.guard ' , 'auth.guard.shared ' );
1314
1415beforeEach (function (): void {
16+ $ this ->secret = uniqid ();
17+
18+ config ([
19+ 'auth0.strategy ' => SdkConfiguration::STRATEGY_REGULAR ,
20+ 'auth0.domain ' => uniqid () . '.auth0.com ' ,
21+ 'auth0.clientId ' => uniqid (),
22+ 'auth0.clientSecret ' => $ this ->secret ,
23+ 'auth0.cookieSecret ' => uniqid (),
24+ 'auth0.routes.home ' => '/ ' . uniqid (),
25+ ]);
26+
27+ $ this ->laravel = app ('auth0 ' );
1528 $ this ->guard = auth ('testGuard ' );
29+ $ this ->sdk = $ this ->laravel ->getSdk ();
30+ $ this ->config = $ this ->sdk ->configuration ();
31+ $ this ->session = $ this ->config ->getSessionStorage ();
32+
1633 $ this ->user = new User (['sub ' => uniqid ('auth0| ' )]);
1734
1835 Route::middleware ('auth:auth0 ' )->get ('/test ' , function () {
You can’t perform that action at this time.
0 commit comments