Chrome extension login best practices

后端 未结 1 1474
青春惊慌失措
青春惊慌失措 2020-11-29 22:43

I\'m creating a Chrome extension popup and need login. For now, I will make my own authentication with a username and password, but what are best practices within an extensi

相关标签:
1条回答
  • 2020-11-29 22:55

    You should always use OAuth 2.0 for authentication within extensions. Never pass the username/password because an attacker can simply steal such information.

    An example from Chromium regarding OAuth in extensions is Tutorial: OAuth.

    Additionally, there's an experimental API available for OAuth 2.0, which is supposed to make the whole process a little easier. There's a comprehensive blog post, OAuth 2.0 from Chrome Extensions.

    0 讨论(0)
提交回复
热议问题