src/controllers/VanillaSSOController.php
public function jsonResponse()
    {
        $user = Auth::getUser();

        //Change here whatever you need
        $ssoUser = new SSOUser();
        $ssoUser->id = $user->id;
        $ssoUser->name = $user->username;
        $ssoUser->email = $user->email;
        $ssoUser->roles = $user->roles;
        $ssoUser->profilepicture = "";

        $userInfo = $ssoUser->toArray();

        return VanillaSSO::WriteJsConnect($userInfo, $_GET, true);
    }
public function jsonResponse()
    {
        $user = Auth::getUser();

        //Change here whatever you need
        $ssoUser = new SSOUser();
        $ssoUser->id = $user->id;
        $ssoUser->name = $user->username;
        $ssoUser->email = $user->email;
        $ssoUser->roles = $user->roles;
        $ssoUser->profilepicture = "";

        $userInfo = $ssoUser->toArray();

        return VanillaSSO::WriteJsConnect($userInfo, $_GET, true);
    }
public function jsonResponse ( ) { $ user = Auth :: getUser ( ) ; //Change here whatever you need $ ssoUser = new SSOUser ( ) ; $ ssoUser -> id = $ user -> id ; $ ssoUser -> name = $ user -> username ; $ ssoUser -> email = $ user -> email ; $ ssoUser -> roles = $ user -> roles ; $ ssoUser -> profilepicture = "" ; $ userInfo = $ ssoUser -> toArray ( ) ; return VanillaSSO :: WriteJsConnect ( $ userInfo , $ _GET , true ) ; }
Produces jsonResponse.

@return Response
Produces jsonResponse .