【问题标题】:google oAuth redirect_uri in angularjsangularjs中的谷歌oAuth redirect_uri
【发布时间】:2016-12-16 11:34:14
【问题描述】:

如何使用重定向将参数传递给 firebase google auth。我需要传递一个自定义参数 redirect_uri 但我无法做到。 sn-p 在这里..

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);

【问题讨论】:

    标签: angularjs firebase google-authentication


    【解决方案1】:

    firebase 目前不支持

    【讨论】:

      【解决方案2】:

      根据setCustomParameters的当前文档:

      保留所需的 OAuth 2.0 参数,例如“client_id”、“redirect_uri”、 * 'scope'、'response_type' 和 'state' 是不允许的,将被忽略。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-01-04
        • 2016-11-10
        • 2015-05-17
        • 2012-07-31
        • 1970-01-01
        相关资源
        最近更新 更多