4
this 가이드에 이어 서버 측 oauth를하고 있습니다.YouTube에서 새로 고침 토큰을받지 못합니다. OAuth
나는 성공적으로 OAuth를 완료하지만 새로 고침 및 액세스 토큰 교환 인증 코드에 refresh_token
을 받고 있지 않다 단계 :
요청 :
POST /o/oauth2/token HTTP/1.1
HOST: accounts.google.com
content-type: application/x-www-form-urlencoded
content-length: 260
code=4/KEOuzih9jwfnHj7Rl1DeqHhcJF0goKPwtwR5IQ09ieg&client_id=****.apps.googleusercontent.com&client_secret=****&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2FsSignIn.html&grant_type=authorization_code
응답 :
{
"access_token" : "****",
"expires_in" : 3580,
"token_type" : "Bearer"
}
내가 빠진 것이 있습니까? 수행 될 필요가
감사 Abhishek! access_type을 오프라인으로 전달했지만 프롬프트 동의가 활성화되지 않았습니다. 이제 새로 고침 토큰을 반환합니다. – jremi