google angularjs 中的 oAuth redirect_uri
google oAuth redirect_uri in angularjs
如何使用重定向将参数传递给 firebase google auth。我需要传递一个自定义参数 redirect_uri 但我做不到。片段放在这里..
var provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({
'redirect_uri': 'http://localhost:3002/auth-login'
});
//then i call the redirect function
firebase.auth().signInWithRedirect(provider);
目前在 firebase 中不受支持
根据 setCustomParameters
的现有文档:
Reserved required OAuth 2.0 parameters such as 'client_id', 'redirect_uri',
* 'scope', 'response_type' and 'state' are not allowed and will be ignored.
如何使用重定向将参数传递给 firebase google auth。我需要传递一个自定义参数 redirect_uri 但我做不到。片段放在这里..
var provider = new firebase.auth.GoogleAuthProvider();
provider.setCustomParameters({
'redirect_uri': 'http://localhost:3002/auth-login'
});
//then i call the redirect function
firebase.auth().signInWithRedirect(provider);
目前在 firebase 中不受支持
根据 setCustomParameters
的现有文档:
Reserved required OAuth 2.0 parameters such as 'client_id', 'redirect_uri', * 'scope', 'response_type' and 'state' are not allowed and will be ignored.