# コード/API呼び出しでユーザーの\_forum\_sessionと\_tを生成する方法、またはブラウザにログインせずに生成する方法は？

**URL:** https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895
**Category:** Feature
**Tags:** sso
**Created:** [2022 年 7 月 25 日午後 3:12 UTC](https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895 "2022-07-25T15:12:35Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [2022 年 7 月 26 日午後 3:31 UTC](https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895/9 "2022-07-26T15:31:25Z")

</div>

まだ、正確に何を達成しようとしているのか分かりません。

Discourse の認証を信頼できる情報源として別のウェブページを統合する必要がある場合は、[Discourse を SSO プロバイダーとして使用する](https://meta.discourse.org/t/using-discourse-as-an-identity-provider-sso-discourseconnect/32974)ことができます。

Discourse の API にサーバー間呼び出しを行う必要がある場合は、`/admin/api/keys` で API キーを作成できます。

どのような機能的なニーズに対応しようとしているのか教えていただけますか？

---

_[View the full topic](https://meta.discourse.org/t/how-can-generate-forum-session-and-t-for-an-user-through-code-api-call-or-without-login-to-browser/233895)._
