# 当论坛通过webview嵌入应用时自动登录

**URL:** https://meta.discourse.org/t/seamless-login-between-app-and-forum-via-webview-with-shared-auth0-authentication/372723
**Category:** Support
**Created:** [2025年七月3日 06:07 UTC](https://meta.discourse.org/t/seamless-login-between-app-and-forum-via-webview-with-shared-auth0-authentication/372723 "2025-07-03T06:07:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Qing\_Zeng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qing_zeng/32/490539_2.png) [@Qing\_Zeng](https://meta.discourse.org/u/Qing_Zeng)
#### Post date: [2025年七月3日 06:07 UTC](https://meta.discourse.org/t/seamless-login-between-app-and-forum-via-webview-with-shared-auth0-authentication/372723/1 "2025-07-03T06:07:35Z")

</div>

您好，

我们的论坛现在使用 Auth0 进行用户身份验证，我们的团队已通过 WebView 将论坛访问集成到我们的应用程序中。

但是，当用户从应用程序内部点击访问论坛时，他们仍然需要再次登录。

由于应用程序和论坛共享相同的用户账户，是否有办法绕过登录流程并实现无缝访问？

谢谢！

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2025年七月3日 07:04 UTC](https://meta.discourse.org/t/seamless-login-between-app-and-forum-via-webview-with-shared-auth0-authentication/372723/2 "2025-07-03T07:04:25Z")

</div>

您好，您是否遵循了此指南？

> [@Configure sign up and log in with Auth0 using the OAuth2 Basic Plugin](https://meta.discourse.org/t/configure-sign-up-and-log-in-with-auth0-using-the-oauth2-basic-plugin/64633):
>
> If you are using [Auth0](https://auth0.com/) as your identity provider this guide will show you how to setup authentication using the [Discourse OAuth2 Basic Plugin](https://meta.discourse.org/t/oauth2-basic-support/33879). Initial Steps Create an Auth0 account if you don’t already have one Install the [Discourse OAuth2 Basic Plugin](https://meta.discourse.org/t/oauth2-basic-support/33879). This plugin is already installed if you are on the [Business Plan](http://discourse.org/buy) if you are on the Pro Plan just ask us to upgrade you to Business! Configure Auth0 Applications → Create Application Give your client a name like “Discourse”, click on “Regul…

---

<div class="post-metadata">

### Author: ![Qing\_Zeng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qing_zeng/32/490539_2.png) [@Qing\_Zeng](https://meta.discourse.org/u/Qing_Zeng)
#### Post date: [2025年七月3日 07:20 UTC](https://meta.discourse.org/t/seamless-login-between-app-and-forum-via-webview-with-shared-auth0-authentication/372723/4 "2025-07-03T07:20:22Z")

</div>

是的，我们过去三个月已经设置了 Auth0 登录。最近，我们使用 WebView 将论坛链接添加到了我们的应用中。但是，当用户通过应用访问论坛时，即使他们已经登录了应用，他们也会在论坛上被再次提示登录。由于应用和论坛使用相同的账户，我们想知道是否有一种方法可以在用户已登录应用的情况下，跳过论坛的登录流程，从而实现无缝体验。
