You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**PS:** Don't forget change the `SESSION_LIFETIME` in the .env file to the time in minutes you want to keep the logged session.
@@ -44,7 +44,7 @@ In the file `app\Exceptions\Handler.php` find or overwrite the `unauthenticated`
44
44
45
45
change the file `config\auth.php` to:
46
46
47
-
```
47
+
```php
48
48
'guards' => [
49
49
'web' => [
50
50
'driver' => 'openid',
@@ -66,22 +66,24 @@ The client methods are available under the facade OpenId.
66
66
67
67
The authentication methods like the verifier `\Auth::check()` are available under the Facade `\Illuminate\Support\Facades\Auth`;
68
68
69
+
The facade Oauth2 provides all helpers needed to get and post data from the Oauth Server.
70
+
69
71
## _View components_
70
72
71
73
`@openidComponents`:
72
74
73
75
For load the user's logged menu, the fast access with the users permissions and render the Login Button in case you have not authenticated page, just call the Blade directive under your header component.
74
76
75
-
`@login(route.name)`:
77
+
`@login('route.name')`:
76
78
77
-
The login directive will call the route you
79
+
The login directive will call the route you pass or return the oauth path formated with the continue parameter to the required route.
78
80
79
81
## _Redirecting routes_
80
82
81
83
The dynamic route from Oauth system can redirect the user back to the source using the `?continue` url parameter.
82
84
83
85
The following example will be redirect back to the source after the user executes the actions needed in the Oauth Service page:
0 commit comments