我想爲Google Developer Console中的「安裝的應用」類配置重定向網址的自定義端口。在Google OAuth 2.0中爲「localhost」重定向網址配置自定義端口
繼https://developers.google.com/accounts/docs/OAuth2InstalledApp的說明,事實證明,這應該是可能的:
redirect_uri=http://localhost:9004&
要去控制檯( 「console.developers.google.com」), 「資格證書」 和「創建新的客戶端ID「,我無法找到該字段,在哪裏輸入自定義端口號。有誰知道如何做到這一點?
謝謝!
對於已安裝的應用程序,redirect_url是固定的,它可以是'urn:ietf:wg:oauth:2.0:oob'或'http:// localhost',如果你想使用,你不能在控制檯中編輯端口,只要使用它,像'redirect_uri = http:// localhost:9004',它可以工作。 –