Guillermo Espinoza 8 年 前
コミット
6b20b27093

+ 22 - 0
Controller/OAuthController.php

@@ -0,0 +1,22 @@
+<?php
+
+namespace Base\OAuthClientBundle\Controller;
+
+use Symfony\Bundle\FrameworkBundle\Controller\Controller;
+use Symfony\Component\HttpFoundation\Request;
+use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
+
+class OAuthController extends Controller
+{
+
+    /**
+     * @Route("/login_check", name="login_check")
+     * @param Request $request
+     * @return type
+     */
+    public function loginCheckAction(Request $request)
+    {
+        return $this->redirect($this->generateUrl('sonata_admin_dashboard'));
+    }
+
+}

+ 4 - 0
Resources/config/routing.yml

@@ -0,0 +1,4 @@
+base_o_auth_client:
+    resource: "@BaseOAuthClientBundle/Controller/"
+    type:     annotation    
+    prefix:   /

+ 0 - 11
Security/Core/User/CustomOAuthUser.php

@@ -3,20 +3,9 @@
 namespace Base\OAuthClientBundle\Security\Core\User;
 
 use HWI\Bundle\OAuthBundle\Security\Core\User\OAuthUser;
-use Doctrine\ORM\Mapping as ORM;
 
-/**
- * @ORM\Entity
- */
 class CustomOAuthUser extends OAuthUser
 {
-    
-    /**
-     * @ORM\Id
-     * @ORM\Column(type="integer")
-     * @ORM\GeneratedValue(strategy="AUTO")
-     */
-    protected $id;
 
     /**
      * @var array