服务堆栈是否允许使用 Google OpenId 连接进行身份验证?
Does Service stack allow authentication using Google OpenId connect?
我想在我的服务堆栈 Web 应用程序上添加 Google 身份验证,但它似乎不支持 OpenID 连接。它只支持旧版本的 Open Id 2.0。
https://docs.servicestack.net/openid
如果我想向服务堆栈网络应用程序添加 Google 身份验证,我是否必须使用旧版本的 Open Id 或者谁有更好的建议?
如果有人在他们的服务堆栈网站上进行了 google 身份验证,请告诉我他们做得如何以及是否有任何挑战?
AppHost.cs
//Load Plugins
Plugins.Add(new AuthFeature(() =>
new CustomAuthSession(),
new IAuthProvider[] { customProvider,
new GoogleAuthProvider(AppSettings)}));
我是否必须安装软件包才能使 Google Auth 正常工作?
大多数 ServiceStack 的 .NET Core 模板已经预先配置了 Google 身份验证支持,请参阅:
- https://github.com/NetCoreTemplates/razor
- https://github.com/NetCoreTemplates/script
- https://github.com/NetCoreTemplates/mvcauth
- https://github.com/NetCoreTemplates/mvcidentity
- https://github.com/NetCoreTemplates/mvcidentityserver
- https://github.com/NetCoreTemplates/vue-spa
- https://github.com/NetCoreTemplates/vuetify-spa
- https://github.com/NetCoreTemplates/vue-nuxt
- https://github.com/NetCoreTemplates/vue-lite
- https://github.com/NetCoreTemplates/react-spa
- https://github.com/NetCoreTemplates/react-lite
- https://github.com/NetCoreTemplates/angular-spa
我想在我的服务堆栈 Web 应用程序上添加 Google 身份验证,但它似乎不支持 OpenID 连接。它只支持旧版本的 Open Id 2.0。 https://docs.servicestack.net/openid
如果我想向服务堆栈网络应用程序添加 Google 身份验证,我是否必须使用旧版本的 Open Id 或者谁有更好的建议?
如果有人在他们的服务堆栈网站上进行了 google 身份验证,请告诉我他们做得如何以及是否有任何挑战?
AppHost.cs
//Load Plugins
Plugins.Add(new AuthFeature(() =>
new CustomAuthSession(),
new IAuthProvider[] { customProvider,
new GoogleAuthProvider(AppSettings)}));
我是否必须安装软件包才能使 Google Auth 正常工作?
大多数 ServiceStack 的 .NET Core 模板已经预先配置了 Google 身份验证支持,请参阅:
- https://github.com/NetCoreTemplates/razor
- https://github.com/NetCoreTemplates/script
- https://github.com/NetCoreTemplates/mvcauth
- https://github.com/NetCoreTemplates/mvcidentity
- https://github.com/NetCoreTemplates/mvcidentityserver
- https://github.com/NetCoreTemplates/vue-spa
- https://github.com/NetCoreTemplates/vuetify-spa
- https://github.com/NetCoreTemplates/vue-nuxt
- https://github.com/NetCoreTemplates/vue-lite
- https://github.com/NetCoreTemplates/react-spa
- https://github.com/NetCoreTemplates/react-lite
- https://github.com/NetCoreTemplates/angular-spa