OAuth 2.0
API Auth2 VKontakte:
Request
GET /auth/vk/
Redirect String to front
{
"url":"https://api.instagram.com/oauth/authorizeresponse_type=code&client_id=fb655fa9713c4e8091033ef11bbdcf73&redirect_uri=http%3A%2F%2Flocalhost%2Fauth%2Finstagram%2F&scope=public_content&state=zQLdF0FL5c"
}
Response:
/oauth/success/?set_token='jwt_token_string'
Error while get code
HTTP code 401
Example response:
{"err": "user_denied User denied your request"}
API Auth2 Google:
Request
GET /auth/google/
Response:
/oauth/success/?set_token='jwt_token_string'
Error while get code
Example code
https://oauth2.example.com/auth?error=access_denied
HTTP code 401
Example response:
{"err": "access_denied"}
API Auth2 Instagram
Request
GET /auth/instagram/
Response:
/oauth/success/?set_token='jwt_token_string'
Instagram documentation about error while try get code
If your request for approval is denied by the user, then we will redirect the user to your redirect_uri with the following parameters:
error: access_denied
error_reason: user_denied
error_description: The user denied your request
http://your-redirect-uri?error=access_denied&error_reason=user_denied&error_description=The+user+denied+your+request
Error while get code
HTTP code 401
Example response:
{"err": "user_denied User denied your request"}