passport-google-oauth2-example:使用 Google 通过 OAuth2 进行身份验证的 Express 4 应用程序

时间:2021-06-04 23:46:49
【文件属性】:
文件名称:passport-google-oauth2-example:使用 Google 通过 OAuth2 进行身份验证的 Express 4 应用程序
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-04 23:46:49
JavaScript Passport Google OAuth2 示例 这是一个使用 Google 通过 OAuth2 进行身份验证的 Express 4 应用程序。 基于Jared Hanson 的的,这个Express 4 应用程序使用Passport 和Passport Google OAuth 策略来使用户能够使用他们的Google 帐户进行身份验证。 可以从设置与 Google 进行身份验证所需的客户端 ID 和客户端密钥。 安装 git clone https://github.com/barberboy/passport-google-oauth2-example myapp cd myapp && npm install 在创建项目和 OAuth 2.0 客户端 ID 将 clientID、clientSecret 和 callbackURL 添加到 config/auth.json
【文件预览】:
passport-google-oauth2-example-master
----.gitignore(16B)
----README.md(2KB)
----views()
--------login.hbs(44B)
--------index.hbs(104B)
--------account.hbs(218B)
--------layout.hbs(382B)
----app.js(3KB)
----package.json(323B)
----config()
--------auth-example.json(217B)
----LICENSE.txt(1KB)

网友评论