# 登录帮助 - 正确的登录方式

**URL:** https://meta.discourse.org/t/login-help-correct-way-to-login/187436
**Category:** Support
**Created:** [2021年四月20日 02:56 UTC](https://meta.discourse.org/t/login-help-correct-way-to-login/187436 "2021-04-20T02:56:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![PBS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pbs/32/209265_2.png) [@PBS](https://meta.discourse.org/u/PBS)
#### Post date: [2021年四月20日 02:56 UTC](https://meta.discourse.org/t/login-help-correct-way-to-login/187436/1 "2021-04-20T02:56:29Z")

</div>

大家好，

尽管已有大量关于登录和单点登录（SSO）的帖子，我还是想确认一下我的实现方式是否正确。

我有一个使用 Bootstrap 和 Angular 构建的 HTML 页面（前端），采用特定主题，类似于仪表盘，会从 Discourse 抓取各种文章并在不同板块中展示。当用户点击某篇文章时，Discourse 页面将会显示，用户即可使用 Discourse 的所有功能，如回复等。

因此，对于这个 HTML 页面，我们需要实现一个自定义登录功能。该登录应能将用户登录到 Discourse，之后当用户在前端点击文章时，应能直接查看该话题，而无需再次登录。我们目前使用 REST API，已找到除登录外的所有相关接口。在可行的情况下，我们希望采用常规登录方式，而非通过 Google 或其他外部服务登录。

请问正确的做法是什么？

谢谢，  
Prashanth

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2021年四月21日 15:50 UTC](https://meta.discourse.org/t/login-help-correct-way-to-login/187436/2 "2021-04-21T15:50:33Z")

</div>

我认为您想要 [DiscourseConnect - 官方 Discourse 单点登录 (sso)](https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045)。
