私は新しいOauthプロバイダのためにLaravel Socialisteを拡張していますが、authorize URLを変更するという単純な問題に問題があります。Laravel RedirectResponseを無効にします
RedirectResponse
によって生成されたURLはスコープデリミタ用%2C
代わりに+
、例えば、https://mycustomerprovider.com/oauth/authorize?scope=blah%2Cblahagainを有し、したがって、私は、この例mycustomprovider
では、使用している特定のプロバイダに障害が発生しました。
誰でもこの承認URLを変更して%2C
を+
に変更する方法を知っていますか?
return Socialite::driver('mycustomprovider')->redirect();
あなたvar_dump(Socialite::driver('mycustomprovider')->redirect())
場合は、ここではそれが含まれているものです:
RedirectResponse {#886 ▼
#targetUrl: "http://"
+headers: ResponseHeaderBag {#888 ▶}
#content: """
<!DOCTYPE html>\n
<html>\n
<head>\n
<meta charset="UTF-8" />\n
<meta http-equiv="refresh" content="1;url=https://mycustomerprovider.com/oauth/authorize?scope=blah%2Cblahagain" />\n
\n
<title>Redirecting to https://mycustomerprovider.com/oauth/authorize?scope=blah%2Cblahagain</title>\n
</head>\n
<body>\n
Redirecting to <a href="https://mycustomerprovider.com/oauth/authorize?scope=blah%2Cblahagain</a>.\n
</body>\n
</html>
"""
#version: "1.0"
#statusCode: 302
#statusText: "Found"
#charset: null
}