<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>N8N | 伊東屋TECHブログ</title>
	<atom:link href="https://tech-itoya.com/tag/n8n/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech-itoya.com</link>
	<description>千葉県・船橋市の総合園芸店が運営する技術ブログ</description>
	<lastBuildDate>Wed, 29 Oct 2025 14:35:55 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>

<image>
	<url>https://tech-itoya.com/wp-content/uploads/2024/10/cropped-itoya-logo-32x32.png</url>
	<title>N8N | 伊東屋TECHブログ</title>
	<link>https://tech-itoya.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>N8NのアカウントをEntraID経由でSSO管理してみた</title>
		<link>https://tech-itoya.com/n8n%e3%81%ae%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%82%92entraid%e7%b5%8c%e7%94%b1%e3%81%a7%e7%ae%a1%e7%90%86%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f/</link>
					<comments>https://tech-itoya.com/n8n%e3%81%ae%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%82%92entraid%e7%b5%8c%e7%94%b1%e3%81%a7%e7%ae%a1%e7%90%86%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f/#respond</comments>
		
		<dc:creator><![CDATA[tori-dash]]></dc:creator>
		<pubDate>Sun, 05 Oct 2025 01:14:46 +0000</pubDate>
				<category><![CDATA[TECH記事]]></category>
		<category><![CDATA[EntraID]]></category>
		<category><![CDATA[N8N]]></category>
		<guid isPermaLink="false">https://tech-itoya.com/?p=350</guid>

					<description><![CDATA[目次 前提条件設定手順1: N8N 側で必要な情報を取得手順2: EntraID でエンタープライズアプリケーションを作成2-1. 新規アプリケーションの作成2-2. SAML シングルサインオンの設定2-3. メタデー [&#8230;]]]></description>
										<content:encoded><![CDATA[

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2" checked><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">前提条件</a></li><li><a href="#toc2" tabindex="0">設定</a><ol><li><a href="#toc3" tabindex="0">手順1: N8N 側で必要な情報を取得</a></li><li><a href="#toc4" tabindex="0">手順2: EntraID でエンタープライズアプリケーションを作成</a><ol><li><a href="#toc5" tabindex="0">2-1. 新規アプリケーションの作成</a></li><li><a href="#toc6" tabindex="0">2-2. SAML シングルサインオンの設定</a></li><li><a href="#toc7" tabindex="0">2-3. メタデータ情報の取得</a></li><li><a href="#toc8" tabindex="0">2-4. ユーザー・グループの割り当て</a></li></ol></li><li><a href="#toc9" tabindex="0">手順 3: N8N 側でメタデータを設定</a></li></ol></li></ol>
    </div>
  </div>

<h2 class="wp-block-heading"><span id="toc1">前提条件</span></h2>



<p>EntraID や N8N の管理者権限が作業時必要になります</p>



<ul class="wp-block-list">
<li><strong><span class="marker-under">Entra ID のグローバル管理者権限、またはアプリケーション管理者権限</span></strong></li>



<li><strong><span class="marker-under">N8N のインスタンスオーナーまたは管理者権限</span></strong></li>



<li><strong><span class="marker-under">N8N の契約プランが Buisiness or Enterprise であること</span></strong></li>
</ul>



<h2 class="wp-block-heading"><span id="toc2">設定</span></h2>



<h3 class="wp-block-heading"><span id="toc3">手順1: N8N 側で必要な情報を取得</span></h3>



<ol class="wp-block-list">
<li><strong>N8N に管理者権限でログイン</strong></li>



<li><strong>Settings &gt; SSO に移動</strong></li>



<li><strong>以下の情報をメモ：</strong>
<ul class="wp-block-list">
<li><strong>ACS URL (Redirect URL)</strong>: <code>https://your-n8n-domain.com/rest/sso/saml/acs</code></li>



<li><strong>Entity ID</strong>: <code>https://your-n8n-domain.com/rest/sso/saml/metadata</code></li>
</ul>
</li>
</ol>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="444" src="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-1-1024x444.png" alt="" class="wp-image-351" srcset="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-1-1024x444.png 1024w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-1-300x130.png 300w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-1-768x333.png 768w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-1-1536x666.png 1536w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-1.png 1848w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><span id="toc4">手順2: EntraID でエンタープライズアプリケーションを作成</span></h3>



<h4 class="wp-block-heading"><span id="toc5">2-1. 新規アプリケーションの作成</span></h4>



<ol class="wp-block-list">
<li><strong>Entra ID にサインイン</strong></li>



<li><strong>左トグルから [Entra ID] > [Enterprise applications] > [New application] をクリック</strong></li>



<li><strong>Create your own application をクリック</strong></li>



<li><strong>以下を入力して Create をクリック</strong>
<ul class="wp-block-list">
<li><strong>Name: n8n (任意)</strong></li>



<li><strong>選択: 「ギャラリーにない他のアプリケーションを統合する（Non-gallery）」</strong></li>
</ul>
</li>
</ol>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<details class="wp-block-details is-layout-flow wp-block-details-is-layout-flow"><summary><strong>💡TIPS: Gallery と Non-Gallery のアプリの違いについて</strong></summary>
<ul class="wp-block-list">
<li><strong>Gallery アプリ（ギャラリーアプリ）</strong>
<ul class="wp-block-list">
<li>Microsoft が事前に用意した、人気アプリとの統合テンプレート</li>



<li>SSO 連携等に必要な Identifier（Entity ID）や 必要なクレームなどが設定済み</li>



<li>Gallery で統合するアプリの例: Slack, Zoom, Salesforce, etc&#8230;</li>
</ul>
</li>



<li><strong>Non-Gallery アプリ（非ギャラリーアプリ）</strong>
<ul class="wp-block-list">
<li>ギャラリーにないアプリや、カスタム設定が必要なアプリを手動で統合する方法</li>



<li>Non-Gallery で統合するアプリの例: 社内開発アプリ, オンプレミスアプリ, ニッチな SaaS ツール&#8230;</li>
</ul>
</li>
</ul>
</details>
</blockquote>
</div>
</div>



<h4 class="wp-block-heading"><span id="toc6">2-2. SAML シングルサインオンの設定</span></h4>



<ol class="wp-block-list">
<li>作成したアプリケーションを開く</li>



<li>左メニューから Single sign-on を選択</li>



<li>SAML をクリックし、以下の項目を設定する</li>
</ol>



<div class="wp-block-group is-layout-constrained wp-block-group-is-layout-constrained">
<ul class="wp-block-list">
<li><strong>基本的な SAML 構成</strong>
<ul class="wp-block-list">
<li>手順1でコピーした情報を入力</li>



<li><strong>Identifier (Entity ID):</strong> <code>https://your-n8n-domain.com/rest/sso/saml/metadata</code></li>



<li><strong>Reply URL (Assertion Consumer Service URL):</strong> <code>https://your-n8n-domain.com/rest/sso/saml/acs</code></li>
</ul>
</li>



<li><strong>属性とクレーム</strong>
<ul class="wp-block-list">
<li><strong>Last Name クレームを追加</strong>
<ul class="wp-block-list">
<li>Name: lastname</li>



<li>Namespace: <a href="http://schemas.xmlsoap.org/ws/2005/05/identity/claims">http://schemas.xmlsoap.org/ws/2005/05/identity/claims</a></li>



<li>Source: Attribute</li>



<li>Source attribute: user.surname</li>
</ul>
</li>



<li><strong>First Name クレームを追加</strong>
<ul class="wp-block-list">
<li>Name: firstname</li>



<li>Namespace: <a href="http://schemas.xmlsoap.org/ws/2005/05/identity/claims">http://schemas.xmlsoap.org/ws/2005/05/identity/claims</a></li>



<li>Source: Attribute</li>



<li>Source attribute: user.givenname</li>
</ul>
</li>



<li><strong>UPN（User Principal Name）クレームを追加</strong>
<ul class="wp-block-list">
<li>Name: upn</li>



<li>Namespace: <a href="http://schemas.xmlsoap.org/ws/2005/05/identity/claims">http://schemas.xmlsoap.org/ws/2005/05/identity/claims</a></li>



<li>Source: Attribute</li>



<li>Source attribute: user.userprincipalname</li>
</ul>
</li>
</ul>
</li>
</ul>



<p>ex. 設定後の値</p>
</div>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="438" src="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-3-2-1024x438.png" alt="" class="wp-image-362" srcset="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-3-2-1024x438.png 1024w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-3-2-300x128.png 300w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-3-2-768x329.png 768w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-3-2-1536x658.png 1536w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-3-2.png 1906w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<details class="wp-block-details is-layout-flow wp-block-details-is-layout-flow"><summary><strong>💡Tips: SAML の設定項目の意味について</strong></summary>
<ul class="wp-block-list">
<li><strong><strong>基本的な SAML 構成</strong></strong>とは？
<ul class="wp-block-list">
<li><strong>Identifier (Entity ID):</strong>
<ul class="wp-block-list">
<li>N8N を一意に識別するための ID</li>



<li>「この SAML リクエストは、どのアプリケーションから来たのか？」を Entra ID が判断するために使用</li>



<li>世界中で唯一無二の識別子である必要がある</li>
</ul>
</li>



<li><strong>Reply URL (Assertion Consumer Service URL)</strong>:
<ul class="wp-block-list">
<li>認証完了後に SAML Response（認証結果）を受け取る URL</li>



<li>Entra ID が「認証成功しました！」という情報を送る先</li>



<li>セキュリティ上、この URL だけが SAML Response を受け取れる</li>
</ul>
</li>
</ul>
</li>



<li><strong>属性とクレーム</strong> とは？
<ul class="wp-block-list">
<li>SAML では 認証先のアプリ と EntraID 間でログインに必要な情報を受け渡すが、各アプリで何の情報が必要なのか異なる.</li>



<li>「認証のやり取りの中に何の情報をふくめるか？」を定義しているのクレーム</li>



<li>N8N ではクレーム情報をもとに：
<ul class="wp-block-list">
<li>ユーザーアカウントを作成/識別</li>



<li>ユーザー情報を表示</li>



<li>権限を割り当て（アプリによる）</li>
</ul>
</li>
</ul>
</li>
</ul>
</details>
</blockquote>



<h4 class="wp-block-heading"><span id="toc7">2-3. メタデータ情報の取得</span></h4>



<p><strong>SAML Certificates</strong> セクションから <strong>Metadata URL を取得：</strong></p>



<ol class="wp-block-list">
<li>シングルサインオンの設定画面から [SAML証明書] のセクションに移動</li>



<li><strong>App Federation Metadata Url</strong> をコピー
<ul class="wp-block-list">
<li>例: https://login.microsoftonline.com/[tenant-id]/federationmetadata/2007-06/federationmetadata.xml</li>
</ul>
</li>
</ol>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<details class="wp-block-details is-layout-flow wp-block-details-is-layout-flow"><summary><strong>💡Tips: SAML メタデータとは</strong></summary>
<p><strong>Entra ID が N8N に渡す「私の情報と使い方」</strong>：</p>



<ul class="wp-block-list">
<li><code>メタデータに含まれる情報:</code>
<ul class="wp-block-list">
<li>誰か？（Entity ID / Issuer）</li>



<li>どこに認証リクエストを送るか？（SSO URL）</li>



<li>どこにログアウトリクエストを送るか？（Logout URL）</li>



<li>どうやって安全に通信するか？（証明書）</li>



<li>どんなフォーマットで通信するか？（設定）</li>
</ul>
</li>
</ul>



<p><strong>ex. 実際のメタデータのサンプル</strong></p>



<pre class="wp-block-code"><code>&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;EntityDescriptor 
  xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
  entityID="https://sts.windows.net/12345678-abcd-1234-abcd-123456789abc/">
  
  &lt;!-- 1️⃣ IDプロバイダー（Entra ID）の基本情報 -->
  &lt;IDPSSODescriptor>
    
    &lt;!-- 2️⃣ 証明書（公開鍵）- 重要！ -->
    &lt;KeyDescriptor use="signing">
      &lt;X509Certificate>
        MIIDPjCCAiqgAwI...
      &lt;/X509Certificate>
    &lt;/KeyDescriptor>
    
    &lt;!-- 3️⃣ ログインURL（認証リクエストの送信先） -->
    &lt;SingleSignOnService 
      Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
      Location="https://login.microsoftonline.com/12345678.../saml2"/>
    
    &lt;!-- 4️⃣ ログアウトURL -->
    &lt;SingleLogoutService 
      Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
      Location="https://login.microsoftonline.com/12345678.../saml2/logout"/>
    
  &lt;/IDPSSODescriptor>
&lt;/EntityDescriptor></code></pre>
</details>
</blockquote>



<h4 class="wp-block-heading"><span id="toc8">2-4. ユーザー・グループの割り当て</span></h4>



<ol class="wp-block-list">
<li>左メニューから Users and groups を選択</li>



<li>「ユーザーまたはグループの追加」をクリック</li>



<li>N8N にアクセスさせるユーザーまたはグループを選択</li>



<li>Assign をクリック</li>
</ol>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="438" src="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-4-1024x438.png" alt="" class="wp-image-365" srcset="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-4-1024x438.png 1024w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-4-300x128.png 300w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-4-768x329.png 768w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-4-1536x658.png 1536w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-4.png 1906w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><span id="toc9">手順 3: N8N 側でメタデータを設定</span></h3>



<ol class="wp-block-list">
<li>N8N に戻り、<strong>Settings</strong> > <strong>SSO</strong> を開く</li>



<li><strong>Identity Provider Settings</strong> フィールドに Metadata URL を貼り付け</li>



<li>Activated トグルを押して SSO を有効化する</li>



<li><strong>Save</strong> をクリック</li>



<li>Test Settings ボタンをクリックし SSO がうまくいったかを確認
<ul class="wp-block-list">
<li>うまくいくと [SAML Connection Test was Successful] のメッセージがでます</li>
</ul>
</li>



<li>あとはログイン画面で SSO で sign-in するボタンが表示されます</li>
</ol>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="438" src="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-5-1024x438.png" alt="" class="wp-image-368" srcset="https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-5-1024x438.png 1024w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-5-300x128.png 300w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-5-768x329.png 768w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-5-1536x658.png 1536w, https://tech-itoya.com/wp-content/uploads/2025/10/tori-20251005-5.png 1906w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>
		<div class="wpulike wpulike-heart " ><div class="wp_ulike_general_class wp_ulike_is_restricted"><button type="button"
					aria-label="いいねボタン"
					data-ulike-id="350"
					data-ulike-nonce="e396106962"
					data-ulike-type="post"
					data-ulike-template="wpulike-heart"
					data-ulike-display-likers=""
					data-ulike-likers-style="popover"
					class="wp_ulike_btn wp_ulike_put_image wp_post_btn_350"></button><span class="count-box wp_ulike_counter_up" data-ulike-counter-value="+1"></span>			</div></div>
	]]></content:encoded>
					
					<wfw:commentRss>https://tech-itoya.com/n8n%e3%81%ae%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%82%92entraid%e7%b5%8c%e7%94%b1%e3%81%a7%e7%ae%a1%e7%90%86%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
