Hof Oidc Sign Inのロゴ

Hof Oidc Sign In

組織
openreachtech
hof-oidc-sign-in

Sign in through an external OpenID Connect identity provider in a Furo/Nuxt app: the full-page redirect to the provider, the callback page, and the return path kept across the trip. Use when adding a 'sign in with' button or an OIDC-only sign-in. Boundary: the session after sign-in follows the frontend cookie authentication convention; state, nonce, PKCE and the code exchange are the backend OIDC sign-in convention's.

概要

公開者openreachtech
リポジトリhora-skills-ort-furo
スキル名hof-oidc-sign-in
スター
32
フォーク
0
同梱ファイル
2
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    openreachtechがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Hof Oidc Sign In」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-oidc-sign-in
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-oidc-sign-in .claude/skills/hof-oidc-sign-in
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHof Oidc Sign Inを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にHof Oidc Sign Inを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Hof Oidc Sign Inは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

OIDC Sign-in (Frontend)

Use this skill when the user signs in at an external OpenID Connect identity provider (IdP) instead of typing a password into the app. The backend is a confidential client and runs the whole protocol ([[hor-oidc-sign-in]]): it creates state, nonce and the PKCE verifier, exchanges the code, and verifies the ID token. The frontend does three things only.

  1. Ask the backend where to go, then leave the app for the IdP with a full-page navigation.
  2. Remember where the user was heading, so the trip through the IdP does not lose it.
  3. On the callback page, hand code and state back to the backend and keep the access token it returns.

The skill ends where [[hof-cookie-authentication]] begins. signInWithOidc answers with the same accessToken that signIn does and sets the same HttpOnly refresh cookie, so the token goes into SessionStoreClerk, and renewing, request healing, the route gateway and sign-out run unchanged.

The flow

sign-in page                     backend                   identity provider
  | startOidcSignIn ------------->| state cookie, authorizationUrl
  |<------------------------------|
  | keep the return path
  | full-page navigate ------------------------------------>| user signs in
callback page <----------------------------- redirect_uri?code&state
  | signInWithOidc { code, state } ->| checks, exchange, session
  |<---------------------------------| accessToken + refresh cookie
  | saveToken, take the return path, navigate (replace)

Rules

  • Leave the app with a full-page navigation, navigateTo(authorizationUrl, { external: true }). The IdP is another origin, so a router push cannot reach it, and a popup or iframe breaks under third-party cookie blocking.
  • Both mutations send credentials: 'include'. startOidcSignIn receives the state cookie and signInWithOidc sends it back, the way the refresh cookie rides the cookie-authentication payloads.
  • The return path lives in one keeper class and one storage key, never as literals spread over the middleware, the sign-in page and the callback page (start).
  • Only a same-origin relative path is ever kept or followed. It starts with / and not with // or /\. Anything else falls back to the home path, so a crafted ?redirect= cannot turn the callback into an open redirect.
  • The return path goes to sessionStorage, and nothing else does. It is not a credential and it has to survive the page unload. The access token stays in memory, as [[hof-cookie-authentication]] requires.
  • The callback page is public (skipFilter), sends signInWithOidc once, and replaces the history entry it lands on, so Back never replays a spent code.
  • An IdP error or a failed callback offers a fresh start, never a retry of the same code and state. The backend spends the authorization row before the exchange, so the same pair cannot work twice.

Core

TopicDescriptionReference
StartThe startOidcSignIn client, OidcSignInStarter, the ReturnPathKeeper and the sign-in page button, including an OIDC-only appstart
CallbackThe signInWithOidc client, OidcCallbackReceiver and the callback pagecallback

The Launcher, Payload and Capsule of both mutations follow [[hof-graphql]]. Error codes extend app/constants-error.js as [[hof-cookie-authentication]] lays it out.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Hof Oidc Sign In」では何ができますか?

Sign in through an external OpenID Connect identity provider in a Furo/Nuxt app: the full-page redirect to the provider, the callback page, and the return path kept across the trip. Use when adding a 'sign in with' button or an OIDC-only sign-in. Boundary: the session after sign-in follows the frontend cookie authentication convention; state, nonce, PKCE and the code exchange are the backend OIDC sign-in convention's.

TypingMindでHof Oidc Sign Inを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Hof Oidc Sign Inはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHof Oidc Sign Inをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-oidc-sign-inを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Hof Oidc Sign Inを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Hof Oidc Sign Inで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHof Oidc Sign Inを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Hof Oidc Sign In」は無料ですか?

はい。openreachtechがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇