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
Copy file name to clipboardExpand all lines: docs/device-code-grant.md
+26-33Lines changed: 26 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Password grant handling
1
+
# Device grant handling
2
2
3
3
The device code grant type is designed for devices without a browser or with limited input capabilities. In this flow, the user authenticates on another device—like a smartphone or computer—and receives a code to enter on the original device.
4
4
@@ -23,47 +23,40 @@ namespace App\Controller;
23
23
24
24
use League\Bundle\OAuth2ServerBundle\Repository\DeviceCodeRepository;
25
25
use League\OAuth2\Server\Exception\OAuthServerException;
26
-
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
27
-
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
28
26
use Symfony\Component\Form\Extension\Core\Type\TextType;
29
27
use Symfony\Component\HttpFoundation\Request;
30
28
use Symfony\Component\HttpFoundation\Response;
31
29
use Symfony\Component\Routing\Attribute\Route;
32
30
33
-
class DeviceCodeController extends AbstractController
0 commit comments