I am using dedoc/scramble library to write Document API. But I am facing GET problem. For example I have this link http://127.0.0.1:8000/api/auth/google/callback?code=4%2F0AdLIrYeeHKx5YRnNmGPt9SrrXuOKVOPw9mH47TLrXMwA0SHYpGv3Tyc7h01_Eb_8syaT7A&scope=email+profile+openid+https%3A%2F%2 F www.googleapis.com% 2Fauth %2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&authuser=0&prompt=consent will make it display parameters outside the document
/**
* Get infomation google
*
* @param string $provider `google`
* @param string $code Authorization code. Example: 4/0AdLIrYeeHKx5YRnNmGPt9SrrXuOKVOPw9mH47TLrXMwA0SHYpGv3Tyc7h01_Eb_8syaT7A
* @param string $scope Scope of the authorization. Example: email profile openid https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
* @param int $authuser Authenticated user ID. Example: 0
* @param string $prompt Prompt type. Example: consent
* @param IlluminateHttpRequest $request HTTP request object
* @unauthenticated
*/
public function handleProviderCallback(Request $request, $provider = "google")
{
}
Document API library dedoc/scramble
Thành Sơn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.