Uber SDK 中的 "SURGE CONFIRMATION REDIRECT URI" 是什么?

What is "SURGE CONFIRMATION REDIRECT URI" in Uber SDK?

我需要在我的项目中添加 REDIRECT_URI 才能执行 Uber 登录。这是代码-

.setRedirectUri("<REDIRECT_URI>")

如何在 Uber Developer Dashboard 中生成 "REDIRECT_URI"? 或者让我知道它的确切格式是什么?

您不会生成重定向 URI,它是您根据用于处理 OAuth 的服务器设置的 URI。此 URI 将用于在授权后重定向回。您可以在开发人员仪表板中设置默认 URI:

documentation explains 这个更详细:

"Once the Uber user authenticates and authorizes your app, Uber will issue an HTTP 302 redirect to the redirect_uri passed in or the default when none is explicitly provided. On that redirect, you will receive an authorization code, which is single use and expires in 10 minutes."

GET https://your-redirect-uri/?code=AUTHORIZATION_CODE

鉴于你问题的性质,我建议 check out this Introduction to Oauth2.0