简体   繁体   English

如何将twitter-digits Web SDK迁移到Firebase?

[英]How to migrate twitter-digits web SDK to Firebase?

We are using Digits Web SDK for our WordPress website . 我们将WordPress网站使用Digits Web SDK

Once we get the mobile confirmation from digits we are sending X-oAuth echo headers to our own auth server, which then does the next processing and returns our custom JWT. 一旦我们从数字中获得了移动确认,我们就将X-oAuth回显头发送到我们自己的身份验证服务器,该服务器随后进行下一步处理并返回我们的自定义JWT。

Recently we got the news that Digits will retire on 30th September 2017 . 最近,有消息称Digits将于2017年9月30日退休

We have gone through the migration instruction, but did not understand how it keeps our flow same as earlier? 我们已经完成了迁移指令,但是不了解它如何使流程保持与先前相同?

Isn't Firebase providing JS SDK instead of this Digits SDK ? Firebase是否提供JS SDK而非Digits SDK

How will we send the X-oAuth echo headers or any other user information to our server once user is authenticated using Firebase? 使用Firebase验证用户身份后,我们如何将X-oAuth回显标头或任何其他用户信息发送到我们的服务器?

Any help will be appreciated. 任何帮助将不胜感激。

Unfortunately, there is no easy one-click migration from Digits to Firebase and you need to develop new way of token verification. 不幸的是,从数字到Firebase的一键迁移并不容易,您需要开发新的令牌验证方法。

Twitter Digits used OAuth Echo headers, but Firebase does not provide it. Twitter Digits使用OAuth Echo标头,但Firebase不提供它。 Instead, Firebase provides ID Tokens (JWT tokens) 相反,Firebase提供ID令牌(JWT令牌)

This is how verify it on the backend side https://firebase.google.com/docs/auth/admin/verify-id-tokens 这是在后端https://firebase.google.com/docs/auth/admin/verify-id-tokens上进行验证的方法

Unfortunately, they do not have Ruby Admin SDK, so I wrote my own implementation of ID tokens verification in Ruby, maybe someone will find it useful https://medium.com/@igorkhomenko/how-to-validate-firebase-id-token-in-ruby-23f4f54c89ab 不幸的是,他们没有Ruby Admin SDK,所以我用Ruby编写了自己的ID令牌验证实现,也许有人会觉得它有用https://medium.com/@igorkhomenko/how-to-validate-firebase-id-令牌在-红宝石23f4f54c89ab

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Digits迁移到Firebase? - How do I migrate Digits to Firebase? firebase Admin SDK 与 firebase 控制台网页有何不同? - How firebase Admin SDK differs from firebase console web page? 如何在Firebase Messaging Web SDK中使用通知操作 - How can I use notification actions with Firebase Messaging Web SDK 何时/如何更新 Firebase Web SDK 版本号? - When/how to update Firebase web SDK version number? 我可以通过 firebase 云功能管理员 SDK 访问 twitter 身份验证数据吗? 如果是这样,怎么做? - Can I access twitter auth data via firebase cloud functions Admin SDK? If so, how? Firebase Web SDK 3.x ServerValue时间戳? - Firebase Web SDK 3.x ServerValue timestamp? 在Web和本机iOS Firebase SDK之间切换 - Switching between Web and Native iOS Firebase SDK Firebase 3.6.2 Web SDK缺少“严格使用” - Firebase 3.6.2 Web SDK missing “use strict” 如何从Crashlytics迁移到Firebase Crashlyics(Firebase项目不在列表中) - How to migrate from Crashlytics to Firebase Crashlyics (Firebase Project not in the list) 如何从 Fabric Crashlytics 迁移到 Firebase Crashlytics? - How to migrate from Fabric Crashlytics to Firebase Crashlytics?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM