# Discourse ウェブサイトへの自動ログイン

**URL:** <https://meta.discourse.org/t/login-to-discourse-website-automatically/125086>\
**Category:** Marketplace\
**Created:** [2019 年 8 月 7 日午前 4:52 UTC](https://meta.discourse.org/t/login-to-discourse-website-automatically/125086 "2019-08-07T04:52:28Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pebble](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pebble/32/150652_2.png) [@pebble](https://meta.discourse.org/u/pebble)\
**Post date:** [2019 年 8 月 23 日午後 12:38 UTC](https://meta.discourse.org/t/login-to-discourse-website-automatically/125086/7 "2019-08-23T12:38:49Z")

</div>

> [@angus](#):
>
> つまり、ユーザーに対してメールトークンを生成して返すエンドポイントを追加するプラグインが欲しいということですね。そして、トークンの有効期限が切れるたびに定期的にそれを呼び出すのでしょうか？

別のアプローチとして、アプリ内のリンクを独自のバックエンドに指向させる方法もあります。ユーザーがリンクをクリックした時点で適切なリンクが生成され、クライアントが何らかの形で正しい場所にリダイレクトされる仕組みです。

これにより、ユーザーがリンクをクリックする前に認証リンクを生成する必要がなくなります。

---

_[View the full topic](https://meta.discourse.org/t/login-to-discourse-website-automatically/125086)._
