我将如何创建一个要求用户通过我自己的服务登录 Chrome 应用或扩展程序的身份验证系统?
TweetDeck 应用就是一个很好的例子,用户可以在应用内完全登录,无需访问外部网站。
最佳答案
Use the Chrome Identity API to authenticate users: the getAuthToken for users logged into their Google Account and the launchWebAuthFlow for users logged into a non-Google account. If your app uses its own server to authenticate users, you will need to use the latter.
来自https://developer.chrome.com/apps/app_identity .
以下是实现 Identity API 的应用示例:https://github.com/GoogleChrome/chrome-app-samples/blob/master/github-auth/index.js
关于javascript - 登录 Chrome 应用或扩展程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23139224/