An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:memo: Add standalone OIDC user guide https://github.com/siyuan-note/siyuan/issues/18542
Daniela1d4304ab728
diff --git a/app/guide/20210808180117-6v0mkxr/.siyuan/sort.json b/app/guide/20210808180117-6v0mkxr/.siyuan/sort.jsonindex 253f5ff021..100ca95ece 100644--- a/app/guide/20210808180117-6v0mkxr/.siyuan/sort.json+++ b/app/guide/20210808180117-6v0mkxr/.siyuan/sort.json@@ -1 +1 @@-{"20200923234011-ieuun1p":1,"20200923234602-gy54e67":10,"20200923234731-h3zkwm2":3,"20200924093441-ft2rhps":1,"20200924095938-a9p5450":2,"20200924100110-vcg96wy":1,"20200924100635-ms0p9lb":7,"20200924100717-yzwzn64":22,"20200924100744-br924ar":11,"20200924100808-j9sddk9":2,"20200924100906-0u4zfq3":4,"20200924100950-9op5xi1":19,"20200924101106-19z4kaa":1,"20200924101200-gss5vee":4,"20200924101225-k254i8g":2,"20200924101256-f8b1sbi":3,"20201004194026-s8h2cog":20,"20201117112518-dott91x":6,"20201121224345-rc27qvo":11,"20201204184532-3qm9l8n":12,"20201210233038-3xr19g5":5,"20201222100222-q47d64s":3,"20201222100339-i5hzcph":2,"20201227201128-m1wrouw":21,"20201227201751-gv0fpx2":23,"20210110181011-fbhoesf":6,"20210117215840-jcl17fx":4,"20210127203829-qe2mzof":13,"20210331201142-4g923es":15,"20210505164949-c085p1d":3,"20210613191509-cbkxcbz":7,"20210615213222-vs5tzbd":16,"20210721112159-9p645xm":1,"20210721112206-mhr9wxi":2,"20210721160238-yvhbh0h":4,"20210808180303-6yi0dv5":1,"20210808180303-axh6q1d":4,"20210808180303-h361q1i":2,"20210808180303-l3qg72k":3,"20210808180303-xaduj2o":5,"20210824202056-udkf7wg":9,"20211010212318-3wx2kqb":14,"20220105101227-n5zpr1a":6,"20220415232231-pqcizol":1,"20220628204454-hhxohv5":2,"20220708103401-mgydrfg":3,"20221016204105-qx2aq0g":3,"20221223221636-ms2b4w9":17,"20230104152135-1iei0xa":24,"20230106104821-9nfphwm":1,"20230304000547-ibldj1z":18,"20230405172236-pg3l9eu":6,"20230429115711-ejbts4s":5,"20230506205948-yah52eb":10,"20230802114825-2jkkct7":5,"20230805231614-vqn28eh":7,"20230805231816-h1z9mpc":2,"20230805232018-hgrq0ju":1,"20230805232134-3d6mx2k":2,"20240113110040-7sgw8kl":2,"20240119211017-1vbbt95":4,"20240119212048-0huuevw":5,"20240208172514-9dsv6na":8,"20240317202444-5txwumu":9,"20240517031132-jmr5ihm":25,"20260612192252-sgw2paw":26,"20260613155453-sgecaav":0,"20260613212028-gozdm4e":5,"20260614104204-staofnm":27,"20260614113113-ss78888":7,"20260614113156-1jveexn":8,"20260617123409-cmygnqa":1,"20260804171004-aiagt03":1,"20260804171005-semnt03":2}\ No newline at end of file+{"20200923234011-ieuun1p":1,"20200923234602-gy54e67":10,"20200923234731-h3zkwm2":3,"20200924093441-ft2rhps":1,"20200924095938-a9p5450":2,"20200924100110-vcg96wy":1,"20200924100635-ms0p9lb":7,"20200924100717-yzwzn64":23,"20200924100744-br924ar":11,"20200924100808-j9sddk9":2,"20200924100906-0u4zfq3":4,"20200924100950-9op5xi1":19,"20200924101106-19z4kaa":1,"20200924101200-gss5vee":4,"20200924101225-k254i8g":2,"20200924101256-f8b1sbi":3,"20201004194026-s8h2cog":20,"20201117112518-dott91x":6,"20201121224345-rc27qvo":11,"20201204184532-3qm9l8n":12,"20201210233038-3xr19g5":5,"20201222100222-q47d64s":3,"20201222100339-i5hzcph":2,"20201227201128-m1wrouw":22,"20201227201751-gv0fpx2":24,"20210110181011-fbhoesf":6,"20210117215840-jcl17fx":4,"20210127203829-qe2mzof":13,"20210331201142-4g923es":15,"20210505164949-c085p1d":3,"20210613191509-cbkxcbz":7,"20210615213222-vs5tzbd":16,"20210721112159-9p645xm":1,"20210721112206-mhr9wxi":2,"20210721160238-yvhbh0h":4,"20210808180303-6yi0dv5":1,"20210808180303-axh6q1d":4,"20210808180303-h361q1i":2,"20210808180303-l3qg72k":3,"20210808180303-xaduj2o":5,"20210824202056-udkf7wg":9,"20211010212318-3wx2kqb":14,"20220105101227-n5zpr1a":6,"20220415232231-pqcizol":1,"20220628204454-hhxohv5":2,"20220708103401-mgydrfg":3,"20221016204105-qx2aq0g":3,"20221223221636-ms2b4w9":17,"20230104152135-1iei0xa":25,"20230106104821-9nfphwm":1,"20230304000547-ibldj1z":18,"20230405172236-pg3l9eu":6,"20230429115711-ejbts4s":5,"20230506205948-yah52eb":10,"20230802114825-2jkkct7":5,"20230805231614-vqn28eh":7,"20230805231816-h1z9mpc":2,"20230805232018-hgrq0ju":1,"20230805232134-3d6mx2k":2,"20240113110040-7sgw8kl":2,"20240119211017-1vbbt95":4,"20240119212048-0huuevw":5,"20240208172514-9dsv6na":8,"20240317202444-5txwumu":9,"20240517031132-jmr5ihm":26,"20260612192252-sgw2paw":27,"20260613155453-sgecaav":0,"20260613212028-gozdm4e":5,"20260614104204-staofnm":28,"20260614113113-ss78888":7,"20260614113156-1jveexn":8,"20260617123409-cmygnqa":1,"20260804171004-aiagt03":1,"20260804171005-semnt03":2,"20260804190002-oidcen1":21}diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201004194026-s8h2cog.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201004194026-s8h2cog.syindex 1b23ac4fd4..4a0d9d9cf7 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201004194026-s8h2cog.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20201004194026-s8h2cog.sy@@ -6,7 +6,7 @@"id": "20201004194026-s8h2cog","title": "Use on browser","type": "doc",- "updated": "20260804165000"+ "updated": "20260804193000"},"Children": [{@@ -254,7 +254,7 @@"HeadingLevel": 3,"Properties": {"id": "20260804120101-oidclog",- "updated": "20260804165000"+ "updated": "20260804193000"},"Children": [{@@ -264,48 +264,27 @@]},{- "ID": "20260804120102-oidcset",+ "ID": "20260804190502-oidcrf3","Type": "NodeParagraph","Properties": {- "id": "20260804120102-oidcset",- "updated": "20260804165000"+ "id": "20260804190502-oidcrf3",+ "updated": "20260804193000"},"Children": [{"Type": "NodeText",- "Data": "Configure OIDC login in "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Settings"- },- {- "Type": "NodeText",- "Data": " - "+ "Data": "For complete guidance on providers, callback URLs, claim rules, client sign-in, Docker configuration, and troubleshooting, see "},{"Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Authentication"+ "TextMarkType": "block-ref",+ "TextMarkBlockRefID": "20260804190002-oidcen1",+ "TextMarkBlockRefSubtype": "s",+ "TextMarkTextContent": "OIDC login"},{"Type": "NodeText",- "Data": ". Remote browser access requires a public HTTPS callback URL ending in /api/system/oidc/callback. SiYuan's local listening address is valid only for a local browser login and cannot be used as the fixed callback for remote browsers or mobile apps. Custom and Microsoft providers require an issuer URL, and GitHub requires a client secret. Every accepted identity receives administrator access. Keep the option that grants all authenticated users administrator access disabled when possible and use exact claim rules; an email rule should normally be combined with email_verified equal to true. Verify and save completes an actual provider login before activating the configuration. For Docker, configure SIYUAN_OIDC_ENABLED, SIYUAN_OIDC_PROVIDER, SIYUAN_OIDC_CLIENT_ID, and the applicable SIYUAN_OIDC_ISSUER_URL, SIYUAN_OIDC_CLIENT_SECRET, SIYUAN_OIDC_SCOPES, SIYUAN_OIDC_REDIRECT_URL, SIYUAN_OIDC_ALLOW_ALL, and SIYUAN_OIDC_CLAIM_RULES variables."- }- ]- },- {- "ID": "20260804120103-oidcmob",- "Type": "NodeParagraph",- "Properties": {- "id": "20260804120103-oidcmob",- "updated": "20260804165000"- },- "Children": [- {- "Type": "NodeText",- "Data": "Native mobile apps always use siyuan:/oidc-callback; register it exactly as written with the identity provider. Mobile configuration verification uses the same callback and is not saved unless the callback succeeds. Google does not accept this mobile callback form, so Google login is available only in browser and desktop flows. A redirect_uri mismatch usually means that the registered callback differs in scheme, slash, path, or port. Discovery failures usually indicate an incorrect issuer URL or an unreachable provider, while exchange failures commonly indicate an incorrect client ID or client secret."+ "Data": "."}]}diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20260804190002-oidcen1.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20260804190002-oidcen1.synew file mode 100644index 0000000000..73b70419dc--- /dev/null+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20260804190002-oidcen1.sy@@ -0,0 +1,1281 @@+{+ "ID": "20260804190002-oidcen1",+ "Spec": "2",+ "Type": "NodeDocument",+ "Properties": {+ "id": "20260804190002-oidcen1",+ "title": "OIDC login",+ "type": "doc",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160000-en00001",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804160000-en00001",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Overview"+ }+ ]+ },+ {+ "ID": "20260804160001-en00002",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160001-en00002",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC (OpenID Connect) login lets SiYuan use an existing identity provider for single sign-on alongside the browser lock screen password. Supported providers are Custom, Google, Microsoft, and GitHub."+ }+ ]+ },+ {+ "ID": "20260804160002-en00003",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160002-en00003",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Every identity accepted by the OIDC claim rules receives administrator access to the current workspace. OIDC does not provide per-user permissions or role mapping, so restrict the identities that can sign in."+ }+ ]+ },+ {+ "ID": "20260804160003-en00004",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804160003-en00004",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Before you begin"+ }+ ]+ },+ {+ "ID": "20260804160004-en00005",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804160004-en00005",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160005-en00006",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160005-en00006",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160006-en00007",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160006-en00007",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Register an application with the identity provider, obtain a client ID, and create a client secret when required"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160007-en00008",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160007-en00008",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160008-en00009",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160008-en00009",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Determine the browser, desktop, and mobile callback URLs you need and register each one with the identity provider"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160009-en0000a",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160009-en0000a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160010-en0000b",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160010-en0000b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Keep a working browser lock screen password or local access method so an incorrect configuration cannot lock you out remotely"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160011-en0000c",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804160011-en0000c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Configuration"+ }+ ]+ },+ {+ "ID": "20260804160012-en0000d",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160012-en0000d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Open "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "Settings"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "Authentication"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "OIDC login"+ },+ {+ "Type": "NodeText",+ "Data": ", complete the configuration, and enable OIDC login."+ }+ ]+ },+ {+ "ID": "20260804160013-en0000e",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804160013-en0000e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Provider and credentials"+ }+ ]+ },+ {+ "ID": "20260804160014-en0000f",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804160014-en0000f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160015-en0000g",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160015-en0000g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160016-en0000h",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160016-en0000h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Custom: enter an issuer URL that supports OpenID Connect Discovery and a client ID, plus a client secret when required by the provider"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160017-en0000i",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160017-en0000i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160018-en0000j",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160018-en0000j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Google: enter the Google OAuth client ID and client secret; SiYuan uses Google's fixed issuer URL automatically"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160019-en0000k",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160019-en0000k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160020-en0000l",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160020-en0000l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Microsoft: enter a tenant-specific issuer URL and client ID, plus the client secret configured for the application"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160021-en0000m",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160021-en0000m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160022-en0000n",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160022-en0000n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "GitHub: enter the OAuth App client ID and client secret; SiYuan adapts the default scopes automatically"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160023-en0000o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160023-en0000o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "For application and callback registration, see the "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Google OpenID Connect documentation",+ "TextMarkAHref": "https://developers.google.com/identity/openid-connect/openid-connect"+ },+ {+ "Type": "NodeText",+ "Data": ", "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Microsoft Entra application registration documentation",+ "TextMarkAHref": "https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"+ },+ {+ "Type": "NodeText",+ "Data": ", and "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "GitHub OAuth App documentation",+ "TextMarkAHref": "https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app"+ },+ {+ "Type": "NodeText",+ "Data": ". Provider consoles may change, so follow their current documentation."+ }+ ]+ },+ {+ "ID": "20260804160024-en0000p",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804160024-en0000p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Callback URLs"+ }+ ]+ },+ {+ "ID": "20260804160025-en0000q",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804160025-en0000q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160026-en0000r",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160026-en0000r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160027-en0000s",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160027-en0000s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Local browser and desktop: typically use "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "http://127.0.0.1:<port>/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": ". The registered URL must exactly match the actual scheme, host, port, path, and slashes"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160028-en0000t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160028-en0000t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160029-en0000u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160029-en0000u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Remote browser: enter a public HTTPS URL in OIDC redirect URL. Its path must be exactly "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": ", with no query, fragment, or user information"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160030-en0000v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160030-en0000v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160031-en0000w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160031-en0000w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Native mobile: always uses "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": ". Register it exactly with the provider. Google does not accept this callback form, so Google login is limited to browser and desktop clients"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160032-en0000x",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804160032-en0000x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Scopes"+ }+ ]+ },+ {+ "ID": "20260804160033-en0000y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160033-en0000y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "The default scopes are "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "openid profile email"+ },+ {+ "Type": "NodeText",+ "Data": ". They normally need no changes. Before using custom scopes, confirm that the provider still returns the claims required by your access rules. GitHub converts the default scopes to permissions needed to read the user and verified email addresses."+ }+ ]+ },+ {+ "ID": "20260804160034-en0000z",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804160034-en0000z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Claim rules"+ }+ ]+ },+ {+ "ID": "20260804160035-en00010",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160035-en00010",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "When “Grant administrator access to all authenticated users” is disabled, at least one claim rule is required. Rules use a JSON array. Multiple "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "values"+ },+ {+ "Type": "NodeText",+ "Data": " within one rule are OR conditions, while separate rules are AND conditions. Supported "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "operator"+ },+ {+ "Type": "NodeText",+ "Data": " values are "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "equals"+ },+ {+ "Type": "NodeText",+ "Data": " and "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": "."+ }+ ]+ },+ {+ "ID": "20260804160036-en00011",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "anNvbg==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804160036-en00011",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "anNvbg=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "[\n {\n \"claim\": \"email\",\n \"operator\": \"equals\",\n \"values\": [\"[email protected]\", \"[email protected]\"]\n },\n {\n \"claim\": \"email_verified\",\n \"operator\": \"equals\",\n \"values\": [\"true\"]\n }\n]\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804160037-en00012",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160037-en00012",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "This example permits only the two listed email addresses and requires the provider to report that the address is verified. For array claims such as "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "groups"+ },+ {+ "Type": "NodeText",+ "Data": ", "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": " can match a group name. Claim names and values must match the provider's actual response."+ }+ ]+ },+ {+ "ID": "20260804160038-en00013",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804160038-en00013",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Verify and save"+ }+ ]+ },+ {+ "ID": "20260804160039-en00014",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160039-en00014",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "After enabling OIDC, select "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "Verify and save"+ },+ {+ "Type": "NodeText",+ "Data": ". SiYuan opens the system browser and activates the new configuration only after a real login satisfies the claim rules. The previous configuration remains active if verification fails. Changing the OIDC configuration invalidates existing OIDC sessions and requires users to sign in again."+ }+ ]+ },+ {+ "ID": "20260804160040-en00015",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804160040-en00015",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Client sign-in"+ }+ ]+ },+ {+ "ID": "20260804160041-en00016",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804160041-en00016",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160042-en00017",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160042-en00017",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160043-en00018",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160043-en00018",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Browser: select OIDC sign-in on the login page; after authentication, SiYuan returns to the original address"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160044-en00019",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160044-en00019",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160045-en0001a",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160045-en0001a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Desktop: authentication runs in the system browser while SiYuan waits for the result"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160046-en0001b",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160046-en0001b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160047-en0001c",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160047-en0001c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Mobile: after system-browser authentication, "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": " returns to SiYuan; the provider must support this custom callback"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160048-en0001d",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804160048-en0001d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker configuration"+ }+ ]+ },+ {+ "ID": "20260804160049-en0001e",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160049-en0001e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker deployments can override workspace OIDC settings with the following environment variables. At minimum, enable OIDC, select a provider, and set the client ID. Configure the remaining variables as required by the provider, callback, and access policy."+ }+ ]+ },+ {+ "ID": "20260804160050-en0001f",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "dGV4dA==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804160050-en0001f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "dGV4dA=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "SIYUAN_OIDC_ENABLED\nSIYUAN_OIDC_PROVIDER\nSIYUAN_OIDC_ISSUER_URL\nSIYUAN_OIDC_CLIENT_ID\nSIYUAN_OIDC_CLIENT_SECRET\nSIYUAN_OIDC_SCOPES\nSIYUAN_OIDC_REDIRECT_URL\nSIYUAN_OIDC_ALLOW_ALL\nSIYUAN_OIDC_CLAIM_RULES\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804160051-en0001g",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160051-en0001g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Environment variables take effect when the kernel starts. A remote Docker deployment must also retain a browser lock screen password, a valid OIDC configuration, or an explicit authentication bypass. Otherwise, SiYuan refuses to start to avoid exposing the workspace without authentication."+ }+ ]+ },+ {+ "ID": "20260804160052-en0001h",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804160052-en0001h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Troubleshooting"+ }+ ]+ },+ {+ "ID": "20260804160053-en0001i",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804160053-en0001i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160054-en0001j",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160054-en0001j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160055-en0001k",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160055-en0001k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "redirect_uri mismatch"+ },+ {+ "Type": "NodeText",+ "Data": ": verify that the registered callback exactly matches the actual scheme, host, port, path, and trailing slash"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160056-en0001l",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160056-en0001l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160057-en0001m",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160057-en0001m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Provider discovery failure: check the Custom or Microsoft issuer URL, HTTPS usage, and whether SiYuan can reach the Discovery endpoint"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160058-en0001n",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160058-en0001n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160059-en0001o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160059-en0001o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Authorization code exchange failure: check the client ID, client secret, and callback URL"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160100-en0001p",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160100-en0001p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160101-en0001q",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160101-en0001q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Access denied after sign-in: inspect the provider's actual claims and data types, then check the claim names, operators, and values in the access rules"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160102-en0001r",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804160102-en0001r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Note"+ }+ ]+ },+ {+ "ID": "20260804160103-en0001s",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804160103-en0001s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160104-en0001t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160104-en0001t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160105-en0001u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160105-en0001u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Do not grant every user access through an untrusted identity provider without claim rules"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160106-en0001v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160106-en0001v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160107-en0001w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160107-en0001w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "For email-based access, also require "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "email_verified"+ },+ {+ "Type": "NodeText",+ "Data": " to equal "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "true"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160108-en0001x",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160108-en0001x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160109-en0001y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160109-en0001y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Client secrets are sensitive; do not place them in public documents, logs, or publicly readable deployment files"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804160110-en0001z",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804160110-en0001z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804160111-en00020",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804160111-en00020",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC provides authentication only. Every authenticated user is an administrator, so it cannot isolate data between users"+ }+ ]+ }+ ]+ }+ ]+ }+ ]+}diff --git a/app/guide/20210808180117-czj9bvb/.siyuan/sort.json b/app/guide/20210808180117-czj9bvb/.siyuan/sort.jsonindex c34c51d19c..219a1b9829 100644--- a/app/guide/20210808180117-czj9bvb/.siyuan/sort.json+++ b/app/guide/20210808180117-czj9bvb/.siyuan/sort.json@@ -1 +1 @@-{"20200812220555-lj3enxa":1,"20200813004551-gm0pbn1":19,"20200813004931-q4cu8na":1,"20200813013559-sgbzl5k":3,"20200813093015-u6bopdt":3,"20200813125307-pxsjela":2,"20200813131152-0wk5akh":4,"20200813163359-v04n73b":10,"20200822191536-rm6hwid":4,"20200825162036-4dx365o":1,"20200828105441-r76vmu5":22,"20200905090211-2vixtlf":2,"20200910201551-h4twhas":7,"20200915214115-42b8zma":11,"20200922102318-oz84yu3":2,"20201004184819-nj8ibyg":20,"20201117101902-2ewjjum":6,"20201121212605-9td1a62":11,"20201204181006-7bkppue":12,"20201210103036-1x3vm8t":5,"20201222093044-rx4zjoy":2,"20201222095049-hghafhe":3,"20201227173504-847cs1q":21,"20201227194925-7ipoiv6":23,"20210110175347-2xrwoiq":6,"20210117211155-56n4odu":4,"20210127202655-2334vvv":13,"20210331200042-94gs1hh":15,"20210505163537-oo97zov":3,"20210612224500-ywcms1m":7,"20210615211733-v6rzowm":16,"20210808180320-abz7w6k":2,"20210808180320-fqgskfj":1,"20210808180320-gyngv2x":3,"20210808180320-qgr0b3q":5,"20210808180321-hbvl5c2":6,"20210824201257-cy7icrc":9,"20211010211311-ffz0wbu":14,"20220415190432-r3xqn3r":1,"20220628204444-9n0y9h2":2,"20221016213308-uz5af79":3,"20221223215557-o6gfsoy":17,"20230104144904-39br4c6":24,"20230106101434-e6g4av3":1,"20230303235619-ex5l63e":18,"20230405155631-leo4vc6":6,"20230428153709-hioyy5l":7,"20230429114837-70asb4j":5,"20230506210010-houyyvy":10,"20230519105228-hm0y74i":8,"20230805222417-2lj3dvk":7,"20230805225107-qm1m2f5":2,"20230805230131-sn7obzb":1,"20230805230218-aea8icj":2,"20230808120347-3cob0nb":2,"20230808120347-mw3qrwy":4,"20230808120347-pzvmkik":1,"20230808120348-hynr7og":5,"20230808120348-lgcp9zm":3,"20230808120348-vaxi6eq":6,"20230808120348-yut741f":7,"20240113102857-c63dmo5":2,"20240119205452-o8xp4ve":4,"20240119205543-hknwwrl":5,"20240208113259-nykkvaq":8,"20240317200013-fim8wm8":9,"20240517031028-xqinazo":25,"20260612191136-feqbi1x":26,"20260612191214-ymtlxn2":25,"20260612191251-yhv20we":25,"20260613155453-n1se73o":2,"20260613211020-87z3rss":5,"20260614104254-4ifhixg":27,"20260617122823-56cr2zv":3,"20260804171000-aiagt01":1,"20260804171001-semnt01":2}\ No newline at end of file+{"20200812220555-lj3enxa":1,"20200813004551-gm0pbn1":19,"20200813004931-q4cu8na":1,"20200813013559-sgbzl5k":3,"20200813093015-u6bopdt":3,"20200813125307-pxsjela":2,"20200813131152-0wk5akh":4,"20200813163359-v04n73b":10,"20200822191536-rm6hwid":4,"20200825162036-4dx365o":1,"20200828105441-r76vmu5":23,"20200905090211-2vixtlf":2,"20200910201551-h4twhas":7,"20200915214115-42b8zma":11,"20200922102318-oz84yu3":2,"20201004184819-nj8ibyg":20,"20201117101902-2ewjjum":6,"20201121212605-9td1a62":11,"20201204181006-7bkppue":12,"20201210103036-1x3vm8t":5,"20201222093044-rx4zjoy":2,"20201222095049-hghafhe":3,"20201227173504-847cs1q":22,"20201227194925-7ipoiv6":24,"20210110175347-2xrwoiq":6,"20210117211155-56n4odu":4,"20210127202655-2334vvv":13,"20210331200042-94gs1hh":15,"20210505163537-oo97zov":3,"20210612224500-ywcms1m":7,"20210615211733-v6rzowm":16,"20210808180320-abz7w6k":2,"20210808180320-fqgskfj":1,"20210808180320-gyngv2x":3,"20210808180320-qgr0b3q":5,"20210808180321-hbvl5c2":6,"20210824201257-cy7icrc":9,"20211010211311-ffz0wbu":14,"20220415190432-r3xqn3r":1,"20220628204444-9n0y9h2":2,"20221016213308-uz5af79":3,"20221223215557-o6gfsoy":17,"20230104144904-39br4c6":25,"20230106101434-e6g4av3":1,"20230303235619-ex5l63e":18,"20230405155631-leo4vc6":6,"20230428153709-hioyy5l":7,"20230429114837-70asb4j":5,"20230506210010-houyyvy":10,"20230519105228-hm0y74i":8,"20230805222417-2lj3dvk":7,"20230805225107-qm1m2f5":2,"20230805230131-sn7obzb":1,"20230805230218-aea8icj":2,"20230808120347-3cob0nb":2,"20230808120347-mw3qrwy":4,"20230808120347-pzvmkik":1,"20230808120348-hynr7og":5,"20230808120348-lgcp9zm":3,"20230808120348-vaxi6eq":6,"20230808120348-yut741f":7,"20240113102857-c63dmo5":2,"20240119205452-o8xp4ve":4,"20240119205543-hknwwrl":5,"20240208113259-nykkvaq":8,"20240317200013-fim8wm8":9,"20240517031028-xqinazo":26,"20260612191136-feqbi1x":27,"20260612191214-ymtlxn2":25,"20260612191251-yhv20we":25,"20260613155453-n1se73o":2,"20260613211020-87z3rss":5,"20260614104254-4ifhixg":28,"20260617122823-56cr2zv":3,"20260804171000-aiagt01":1,"20260804171001-semnt01":2,"20260804190000-oidccn1":21}diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201004184819-nj8ibyg.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201004184819-nj8ibyg.syindex ac8deaef0f..14c0a0bb8c 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201004184819-nj8ibyg.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20201004184819-nj8ibyg.sy@@ -6,7 +6,7 @@"id": "20201004184819-nj8ibyg","title": "在浏览器上使用","type": "doc",- "updated": "20260804165001"+ "updated": "20260804193000"},"Children": [{@@ -253,7 +253,7 @@"HeadingLevel": 3,"Properties": {"id": "20260804120001-oidclog",- "updated": "20260804165001"+ "updated": "20260804193000"},"Children": [{@@ -263,48 +263,27 @@]},{- "ID": "20260804120002-oidcset",+ "ID": "20260804190500-oidcrf1","Type": "NodeParagraph","Properties": {- "id": "20260804120002-oidcset",- "updated": "20260804165001"+ "id": "20260804190500-oidcrf1",+ "updated": "20260804193000"},"Children": [{"Type": "NodeText",- "Data": "在 "+ "Data": "有关提供商、回调地址、准入规则、多端登录、Docker 配置和排障的完整说明,请参阅 "},{"Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "设置"+ "TextMarkType": "block-ref",+ "TextMarkBlockRefID": "20260804190000-oidccn1",+ "TextMarkBlockRefSubtype": "s",+ "TextMarkTextContent": "OIDC 登录"},{"Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "鉴权"- },- {- "Type": "NodeText",- "Data": " 中配置 OIDC 登录。远程浏览器访问必须配置以 /api/system/oidc/callback 结尾的公网 HTTPS 回调地址;思源的本机监听地址仅适用于本机浏览器登录,不能作为远程浏览器或移动端的固定回调地址。Custom 和 Microsoft 提供商需要填写签发者地址,GitHub 需要填写客户端密钥。通过准入规则的身份都会获得管理员权限,请尽量不要授予所有已认证用户管理员权限,并优先使用精确匹配规则;按邮箱准入时通常还应要求 email_verified 等于 true。配置只有在“验证并保存”完成一次真实的提供商登录后才会生效。Docker 部署需要配置 SIYUAN_OIDC_ENABLED、SIYUAN_OIDC_PROVIDER、SIYUAN_OIDC_CLIENT_ID,以及按需配置 SIYUAN_OIDC_ISSUER_URL、SIYUAN_OIDC_CLIENT_SECRET、SIYUAN_OIDC_SCOPES、SIYUAN_OIDC_REDIRECT_URL、SIYUAN_OIDC_ALLOW_ALL 和 SIYUAN_OIDC_CLAIM_RULES。"- }- ]- },- {- "ID": "20260804120003-oidcmob",- "Type": "NodeParagraph",- "Properties": {- "id": "20260804120003-oidcmob",- "updated": "20260804165001"- },- "Children": [- {- "Type": "NodeText",- "Data": "原生移动端固定使用 siyuan:/oidc-callback,请在身份提供商中原样注册;移动端配置验证也会使用该回调,只有成功返回思源后才会保存。Google 不接受该移动回调格式,因此 Google 仅支持浏览器和桌面端登录。出现 redirect_uri 不匹配通常表示注册的回调在协议、斜线、路径或端口上不完全一致;发现提供商失败通常表示签发者地址错误或无法访问,交换授权码失败则通常需要检查客户端 ID 和客户端密钥。"+ "Data": "。"}]}diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20260804190000-oidccn1.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20260804190000-oidccn1.synew file mode 100644index 0000000000..13b793ca54--- /dev/null+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20260804190000-oidccn1.sy@@ -0,0 +1,1281 @@+{+ "ID": "20260804190000-oidccn1",+ "Spec": "2",+ "Type": "NodeDocument",+ "Properties": {+ "id": "20260804190000-oidccn1",+ "title": "OIDC 登录",+ "type": "doc",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100000-cn00001",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804100000-cn00001",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "概述"+ }+ ]+ },+ {+ "ID": "20260804100001-cn00002",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100001-cn00002",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC(OpenID Connect)登录可以让思源通过已有的身份提供商完成单点登录,并与浏览器锁屏密码配合使用。支持的提供商包括 Custom、Google、Microsoft 和 GitHub。"+ }+ ]+ },+ {+ "ID": "20260804100002-cn00003",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100002-cn00003",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "通过 OIDC 准入规则的身份都会获得当前工作空间的管理员权限。OIDC 不提供多用户权限隔离或角色映射,启用前应严格限制允许登录的身份。"+ }+ ]+ },+ {+ "ID": "20260804100003-cn00004",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804100003-cn00004",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "使用前准备"+ }+ ]+ },+ {+ "ID": "20260804100004-cn00005",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804100004-cn00005",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100005-cn00006",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100005-cn00006",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100006-cn00007",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100006-cn00007",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "在身份提供商中注册应用,取得客户端 ID,并按提供商要求创建客户端密钥"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100007-cn00008",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100007-cn00008",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100008-cn00009",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100008-cn00009",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "确定需要使用的浏览器、桌面端和移动端回调地址,并在身份提供商中逐一注册"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100009-cn0000a",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100009-cn0000a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100010-cn0000b",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100010-cn0000b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "保留一个可用的浏览器锁屏密码或本地访问方式,避免错误配置导致远程访问被锁定"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100011-cn0000c",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804100011-cn0000c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "配置方式"+ }+ ]+ },+ {+ "ID": "20260804100012-cn0000d",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100012-cn0000d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "在 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "设置"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "鉴权"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "OIDC 登录"+ },+ {+ "Type": "NodeText",+ "Data": " 中填写配置并启用 OIDC 登录。"+ }+ ]+ },+ {+ "ID": "20260804100013-cn0000e",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804100013-cn0000e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "提供商和凭据"+ }+ ]+ },+ {+ "ID": "20260804100014-cn0000f",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804100014-cn0000f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100015-cn0000g",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100015-cn0000g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100016-cn0000h",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100016-cn0000h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Custom:填写符合 OpenID Connect Discovery 的签发者地址和客户端 ID,并按提供商要求填写客户端密钥"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100017-cn0000i",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100017-cn0000i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100018-cn0000j",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100018-cn0000j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Google:填写 Google OAuth 客户端 ID 和客户端密钥,签发者地址由思源自动使用 Google 的固定地址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100019-cn0000k",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100019-cn0000k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100020-cn0000l",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100020-cn0000l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Microsoft:填写租户专属的签发者地址、客户端 ID,并按应用配置填写客户端密钥"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100021-cn0000m",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100021-cn0000m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100022-cn0000n",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100022-cn0000n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "GitHub:填写 OAuth App 的客户端 ID 和客户端密钥;思源会自动调整默认授权范围"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100023-cn0000o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100023-cn0000o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "创建应用和注册回调地址时,可参阅 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Google OpenID Connect 文档",+ "TextMarkAHref": "https://developers.google.com/identity/openid-connect/openid-connect"+ },+ {+ "Type": "NodeText",+ "Data": "、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Microsoft Entra 应用注册文档",+ "TextMarkAHref": "https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"+ },+ {+ "Type": "NodeText",+ "Data": "和 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "GitHub OAuth App 文档",+ "TextMarkAHref": "https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app"+ },+ {+ "Type": "NodeText",+ "Data": "。提供商控制台的具体界面可能变化,请以其当前文档为准。"+ }+ ]+ },+ {+ "ID": "20260804100024-cn0000p",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804100024-cn0000p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "回调地址"+ }+ ]+ },+ {+ "ID": "20260804100025-cn0000q",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804100025-cn0000q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100026-cn0000r",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100026-cn0000r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100027-cn0000s",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100027-cn0000s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "本机浏览器和桌面端:通常使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "http://127.0.0.1:<端口>/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": ";身份提供商中登记的地址必须与实际协议、主机、端口、路径和斜线完全一致"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100028-cn0000t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100028-cn0000t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100029-cn0000u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100029-cn0000u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "远程浏览器:在 OIDC 回调地址中填写公开 HTTPS 地址,路径必须恰好是 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": ",不能包含查询参数、片段或用户信息"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100030-cn0000v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100030-cn0000v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100031-cn0000w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100031-cn0000w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "原生移动端:固定使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": ";需要在身份提供商中原样登记。Google 不接受该回调格式,因此 Google 登录仅支持浏览器和桌面端"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100032-cn0000x",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804100032-cn0000x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "授权范围"+ }+ ]+ },+ {+ "ID": "20260804100033-cn0000y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100033-cn0000y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "默认授权范围是 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "openid profile email"+ },+ {+ "Type": "NodeText",+ "Data": "。一般无需修改;自定义范围前应确认提供商返回的身份声明仍能满足准入规则。GitHub 会将默认范围转换为读取用户和已验证邮箱所需的权限。"+ }+ ]+ },+ {+ "ID": "20260804100034-cn0000z",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804100034-cn0000z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "准入规则"+ }+ ]+ },+ {+ "ID": "20260804100035-cn00010",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100035-cn00010",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "关闭“授予所有已认证用户管理员权限”后,必须至少配置一条准入规则。规则使用 JSON 数组:同一规则的多个 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "values"+ },+ {+ "Type": "NodeText",+ "Data": " 是“或”关系,不同规则之间是“与”关系;"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "operator"+ },+ {+ "Type": "NodeText",+ "Data": " 支持 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "equals"+ },+ {+ "Type": "NodeText",+ "Data": " 和 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": "。"+ }+ ]+ },+ {+ "ID": "20260804100036-cn00011",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "anNvbg==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804100036-cn00011",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "anNvbg=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "[\n {\n \"claim\": \"email\",\n \"operator\": \"equals\",\n \"values\": [\"[email protected]\", \"[email protected]\"]\n },\n {\n \"claim\": \"email_verified\",\n \"operator\": \"equals\",\n \"values\": [\"true\"]\n }\n]\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804100037-cn00012",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100037-cn00012",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "以上示例只允许两个指定邮箱登录,并要求提供商确认邮箱已经验证。若提供商使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "groups"+ },+ {+ "Type": "NodeText",+ "Data": " 等数组声明,可以使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": " 匹配其中的组名。规则名称和值必须与提供商实际返回的声明完全对应。"+ }+ ]+ },+ {+ "ID": "20260804100038-cn00013",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804100038-cn00013",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "验证并保存"+ }+ ]+ },+ {+ "ID": "20260804100039-cn00014",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100039-cn00014",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "启用 OIDC 后单击 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "验证并保存"+ },+ {+ "Type": "NodeText",+ "Data": "。思源会打开系统浏览器,只有完成一次真实登录并通过准入规则后才会激活新配置;验证失败时原配置继续生效。修改 OIDC 配置会使已有 OIDC 会话失效,用户需要重新登录。"+ }+ ]+ },+ {+ "ID": "20260804100040-cn00015",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804100040-cn00015",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "各客户端登录"+ }+ ]+ },+ {+ "ID": "20260804100041-cn00016",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804100041-cn00016",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100042-cn00017",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100042-cn00017",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100043-cn00018",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100043-cn00018",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "浏览器:在登录页选择使用 OIDC 登录,认证完成后返回原访问地址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100044-cn00019",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100044-cn00019",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100045-cn0001a",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100045-cn0001a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "桌面端:通过系统浏览器完成认证,思源会等待并接收登录结果"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100046-cn0001b",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100046-cn0001b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100047-cn0001c",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100047-cn0001c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "移动端:通过系统浏览器认证后使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": " 返回思源;身份提供商必须支持该自定义回调"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100048-cn0001d",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804100048-cn0001d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker 配置"+ }+ ]+ },+ {+ "ID": "20260804100049-cn0001e",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100049-cn0001e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker 部署可以通过以下环境变量覆盖工作空间中的 OIDC 配置。至少需要启用 OIDC、选择提供商并配置客户端 ID;其他变量按提供商、回调地址和准入策略填写。"+ }+ ]+ },+ {+ "ID": "20260804100050-cn0001f",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "dGV4dA==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804100050-cn0001f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "dGV4dA=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "SIYUAN_OIDC_ENABLED\nSIYUAN_OIDC_PROVIDER\nSIYUAN_OIDC_ISSUER_URL\nSIYUAN_OIDC_CLIENT_ID\nSIYUAN_OIDC_CLIENT_SECRET\nSIYUAN_OIDC_SCOPES\nSIYUAN_OIDC_REDIRECT_URL\nSIYUAN_OIDC_ALLOW_ALL\nSIYUAN_OIDC_CLAIM_RULES\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804100051-cn0001g",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100051-cn0001g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "环境变量在内核启动时生效。远程 Docker 部署还必须保留浏览器锁屏密码、有效 OIDC 配置或明确启用认证绕过,否则思源会拒绝启动,以免工作空间在无认证状态下暴露。"+ }+ ]+ },+ {+ "ID": "20260804100052-cn0001h",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804100052-cn0001h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "常见问题"+ }+ ]+ },+ {+ "ID": "20260804100053-cn0001i",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804100053-cn0001i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100054-cn0001j",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100054-cn0001j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100055-cn0001k",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100055-cn0001k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "redirect_uri mismatch"+ },+ {+ "Type": "NodeText",+ "Data": ":检查身份提供商登记的回调地址是否与实际协议、主机、端口、路径和末尾斜线完全一致"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100056-cn0001l",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100056-cn0001l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100057-cn0001m",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100057-cn0001m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "发现提供商失败:检查 Custom 或 Microsoft 的签发者地址是否正确、是否使用 HTTPS,以及思源能否访问 Discovery 地址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100058-cn0001n",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100058-cn0001n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100059-cn0001o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100059-cn0001o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "交换授权码失败:检查客户端 ID、客户端密钥和回调地址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100100-cn0001p",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100100-cn0001p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100101-cn0001q",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100101-cn0001q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "登录后被拒绝:检查身份提供商实际返回的声明、数据类型以及准入规则中的名称、运算符和值"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100102-cn0001r",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804100102-cn0001r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "注意"+ }+ ]+ },+ {+ "ID": "20260804100103-cn0001s",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804100103-cn0001s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100104-cn0001t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100104-cn0001t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100105-cn0001u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100105-cn0001u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "不要在没有准入规则的情况下向不受信任的身份提供商开放所有用户登录"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100106-cn0001v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100106-cn0001v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100107-cn0001w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100107-cn0001w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "按邮箱准入时,建议同时要求 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "email_verified"+ },+ {+ "Type": "NodeText",+ "Data": " 等于 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "true"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100108-cn0001x",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100108-cn0001x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100109-cn0001y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100109-cn0001y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "客户端密钥属于敏感信息,不要写入公开文档、日志或可公开读取的部署文件"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804100110-cn0001z",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804100110-cn0001z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804100111-cn00020",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804100111-cn00020",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC 只负责身份认证;通过认证的用户拥有管理员权限,不能用它实现不同用户的数据隔离"+ }+ ]+ }+ ]+ }+ ]+ }+ ]+}diff --git a/app/guide/20211226090932-5lcq56f/.siyuan/sort.json b/app/guide/20211226090932-5lcq56f/.siyuan/sort.jsonindex be5bd303be..a51a1cf747 100644--- a/app/guide/20211226090932-5lcq56f/.siyuan/sort.json+++ b/app/guide/20211226090932-5lcq56f/.siyuan/sort.json@@ -1 +1 @@-{"20211226114339-dk0gtpr":10,"20211226114929-08ap1r0":11,"20211226115043-afhev0g":4,"20211226115227-r1rty9v":3,"20211226115423-d5z1joq":1,"20211226115825-mhcslw2":1,"20211226120055-9mityht":1,"20211226120147-ib6yy3i":2,"20211226120247-63nd8y5":3,"20211226120349-rbkmozu":4,"20211226120422-bkzsd2e":5,"20211226120508-yzh70eh":6,"20211226120802-77aj0is":7,"20211226120854-dr1jfx2":2,"20211226120933-vnjgwwh":3,"20211226121109-f060fkg":4,"20211226121203-rjjngpz":5,"20211226121319-emrk2yy":1,"20211226121322-9argcys":3,"20211226121329-c5v3dto":23,"20211226121332-irgblss":4,"20211226121438-xaafdo8":2,"20211226121503-k3jma6m":1,"20211226121808-fnxmngk":2,"20211226122358-hctqcn5":22,"20211226122459-08mi5cq":21,"20211226122523-rl8356a":20,"20211226122549-jktxego":19,"20211226122707-8cr09co":16,"20211226122728-cnqf7rz":15,"20211226122814-r1rdpcx":14,"20211226122943-st7fpcj":13,"20211226123004-dplpw0o":12,"20211226123038-4umgpxy":11,"20211226123101-qjw03ab":9,"20211226123130-jpeg5b2":7,"20211226123154-fd5e001":6,"20211226123216-tlxw66f":4,"20211226123241-51pujtr":3,"20211226123302-akitvb1":2,"20220105101348-corstqc":6,"20220415232129-shpzg6r":1,"20220628204420-ui79vkt":2,"20220708102441-u6wopo9":3,"20221016213639-1nag9jj":3,"20221223221501-mops33i":17,"20230104151953-48hwkwf":24,"20230106104645-o838uew":1,"20230304000829-9jwu3po":18,"20230405172131-yb16aax":6,"20230429115206-ob8nl8t":5,"20230506211210-1roopyo":10,"20230805232636-zh0adz2":6,"20230805232719-04mqbcx":2,"20230805232903-erdoerp":1,"20230805232920-5fdco36":2,"20240113110500-dz2ae4n":2,"20240119210914-a2tm8c4":4,"20240119212000-qkldbjm":5,"20240208171522-y7dxcno":8,"20240317202230-l8duv3r":9,"20240508010647-8nuyk31":5,"20240517031052-mgoxs16":25,"20260612191214-ymtlxn2":26,"20260613155453-pxxzmhc":3,"20260613211829-rjgkboa":5,"20260614104322-shrqj15":27,"20260614113156-1jveexn":7,"20260614113219-gcm8mer":8,"20260617124140-ttdzn7n":4,"20260804171002-aiagt02":1,"20260804171003-semnt02":2}\ No newline at end of file+{"20211226114339-dk0gtpr":10,"20211226114929-08ap1r0":11,"20211226115043-afhev0g":4,"20211226115227-r1rty9v":3,"20211226115423-d5z1joq":1,"20211226115825-mhcslw2":1,"20211226120055-9mityht":1,"20211226120147-ib6yy3i":2,"20211226120247-63nd8y5":3,"20211226120349-rbkmozu":4,"20211226120422-bkzsd2e":5,"20211226120508-yzh70eh":6,"20211226120802-77aj0is":7,"20211226120854-dr1jfx2":2,"20211226120933-vnjgwwh":3,"20211226121109-f060fkg":4,"20211226121203-rjjngpz":5,"20211226121319-emrk2yy":1,"20211226121322-9argcys":3,"20211226121329-c5v3dto":24,"20211226121332-irgblss":4,"20211226121438-xaafdo8":2,"20211226121503-k3jma6m":1,"20211226121808-fnxmngk":2,"20211226122358-hctqcn5":23,"20211226122459-08mi5cq":22,"20211226122523-rl8356a":20,"20211226122549-jktxego":19,"20211226122707-8cr09co":16,"20211226122728-cnqf7rz":15,"20211226122814-r1rdpcx":14,"20211226122943-st7fpcj":13,"20211226123004-dplpw0o":12,"20211226123038-4umgpxy":11,"20211226123101-qjw03ab":9,"20211226123130-jpeg5b2":7,"20211226123154-fd5e001":6,"20211226123216-tlxw66f":4,"20211226123241-51pujtr":3,"20211226123302-akitvb1":2,"20220105101348-corstqc":6,"20220415232129-shpzg6r":1,"20220628204420-ui79vkt":2,"20220708102441-u6wopo9":3,"20221016213639-1nag9jj":3,"20221223221501-mops33i":17,"20230104151953-48hwkwf":25,"20230106104645-o838uew":1,"20230304000829-9jwu3po":18,"20230405172131-yb16aax":6,"20230429115206-ob8nl8t":5,"20230506211210-1roopyo":10,"20230805232636-zh0adz2":6,"20230805232719-04mqbcx":2,"20230805232903-erdoerp":1,"20230805232920-5fdco36":2,"20240113110500-dz2ae4n":2,"20240119210914-a2tm8c4":4,"20240119212000-qkldbjm":5,"20240208171522-y7dxcno":8,"20240317202230-l8duv3r":9,"20240508010647-8nuyk31":5,"20240517031052-mgoxs16":26,"20260612191214-ymtlxn2":27,"20260613155453-pxxzmhc":3,"20260613211829-rjgkboa":5,"20260614104322-shrqj15":28,"20260614113156-1jveexn":7,"20260614113219-gcm8mer":8,"20260617124140-ttdzn7n":4,"20260804171002-aiagt02":1,"20260804171003-semnt02":2,"20260804190001-oidctw1":21}diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122523-rl8356a.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122523-rl8356a.syindex ddbdb8b8ed..5f57dfc7c8 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122523-rl8356a.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122523-rl8356a.sy@@ -6,7 +6,7 @@"id": "20211226122523-rl8356a","title": "在瀏覽器上使用","type": "doc",- "updated": "20260804165002"+ "updated": "20260804193000"},"Children": [{@@ -239,7 +239,7 @@"HeadingLevel": 3,"Properties": {"id": "20260804120201-oidclog",- "updated": "20260804165002"+ "updated": "20260804193000"},"Children": [{@@ -249,48 +249,27 @@]},{- "ID": "20260804120202-oidcset",+ "ID": "20260804190501-oidcrf2","Type": "NodeParagraph","Properties": {- "id": "20260804120202-oidcset",- "updated": "20260804165002"+ "id": "20260804190501-oidcrf2",+ "updated": "20260804193000"},"Children": [{"Type": "NodeText",- "Data": "在 "+ "Data": "有關提供者、回呼位址、准入規則、多端登入、Docker 設定和疑難排解的完整說明,請參閱 "},{"Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "設定"+ "TextMarkType": "block-ref",+ "TextMarkBlockRefID": "20260804190001-oidctw1",+ "TextMarkBlockRefSubtype": "s",+ "TextMarkTextContent": "OIDC 登入"},{"Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "鑑權"- },- {- "Type": "NodeText",- "Data": " 中設定 OIDC 登入。遠端瀏覽器存取必須設定以 /api/system/oidc/callback 結尾的公開 HTTPS 回呼位址;思源的本機監聽位址僅適用於本機瀏覽器登入,不能作為遠端瀏覽器或行動端的固定回呼位址。Custom 和 Microsoft 提供者需要填寫簽發者位址,GitHub 需要填寫用戶端密鑰。通過準入規則的身分都會獲得管理員權限,請盡量不要授予所有已驗證使用者管理員權限,並優先使用精確比對規則;按電子郵件準入時通常還應要求 email_verified 等於 true。設定只有在「驗證並儲存」完成一次真實的提供者登入後才會生效。Docker 部署需要設定 SIYUAN_OIDC_ENABLED、SIYUAN_OIDC_PROVIDER、SIYUAN_OIDC_CLIENT_ID,以及按需設定 SIYUAN_OIDC_ISSUER_URL、SIYUAN_OIDC_CLIENT_SECRET、SIYUAN_OIDC_SCOPES、SIYUAN_OIDC_REDIRECT_URL、SIYUAN_OIDC_ALLOW_ALL 和 SIYUAN_OIDC_CLAIM_RULES。"- }- ]- },- {- "ID": "20260804120203-oidcmob",- "Type": "NodeParagraph",- "Properties": {- "id": "20260804120203-oidcmob",- "updated": "20260804165002"- },- "Children": [- {- "Type": "NodeText",- "Data": "原生行動端固定使用 siyuan:/oidc-callback,請在身分提供者中原樣註冊;行動端設定驗證也會使用此回呼,只有成功返回思源後才會儲存。Google 不接受此行動回呼格式,因此 Google 僅支援瀏覽器和桌面端登入。出現 redirect_uri 不相符通常表示註冊的回呼在通訊協定、斜線、路徑或連接埠上不完全一致;發現提供者失敗通常表示簽發者位址錯誤或無法存取,交換授權碼失敗則通常需要檢查用戶端 ID 和用戶端密鑰。"+ "Data": "。"}]}diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20260804190001-oidctw1.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20260804190001-oidctw1.synew file mode 100644index 0000000000..77f7877b1c--- /dev/null+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20260804190001-oidctw1.sy@@ -0,0 +1,1281 @@+{+ "ID": "20260804190001-oidctw1",+ "Spec": "2",+ "Type": "NodeDocument",+ "Properties": {+ "id": "20260804190001-oidctw1",+ "title": "OIDC 登入",+ "type": "doc",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130000-tw00001",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804130000-tw00001",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "概述"+ }+ ]+ },+ {+ "ID": "20260804130001-tw00002",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130001-tw00002",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC(OpenID Connect)登入可以讓思源透過既有的身分提供者完成單一登入,並與瀏覽器鎖屏密碼配合使用。支援的提供者包括 Custom、Google、Microsoft 和 GitHub。"+ }+ ]+ },+ {+ "ID": "20260804130002-tw00003",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130002-tw00003",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "通過 OIDC 准入規則的身分都會取得目前工作空間的管理員權限。OIDC 不提供多使用者權限隔離或角色對應,啟用前應嚴格限制允許登入的身分。"+ }+ ]+ },+ {+ "ID": "20260804130003-tw00004",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804130003-tw00004",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "使用前準備"+ }+ ]+ },+ {+ "ID": "20260804130004-tw00005",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804130004-tw00005",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130005-tw00006",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130005-tw00006",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130006-tw00007",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130006-tw00007",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "在身分提供者中註冊應用程式,取得用戶端 ID,並依提供者要求建立用戶端密鑰"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130007-tw00008",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130007-tw00008",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130008-tw00009",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130008-tw00009",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "確定需要使用的瀏覽器、桌面端和行動端回呼位址,並在身分提供者中逐一註冊"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130009-tw0000a",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130009-tw0000a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130010-tw0000b",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130010-tw0000b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "保留一個可用的瀏覽器鎖屏密碼或本機存取方式,避免錯誤設定導致遠端存取被鎖定"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130011-tw0000c",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804130011-tw0000c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "設定方式"+ }+ ]+ },+ {+ "ID": "20260804130012-tw0000d",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130012-tw0000d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "在 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "設定"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "鑑權"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "OIDC 登入"+ },+ {+ "Type": "NodeText",+ "Data": " 中填寫設定並啟用 OIDC 登入。"+ }+ ]+ },+ {+ "ID": "20260804130013-tw0000e",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804130013-tw0000e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "提供者和憑證"+ }+ ]+ },+ {+ "ID": "20260804130014-tw0000f",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804130014-tw0000f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130015-tw0000g",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130015-tw0000g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130016-tw0000h",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130016-tw0000h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Custom:填寫符合 OpenID Connect Discovery 的簽發者位址和用戶端 ID,並依提供者要求填寫用戶端密鑰"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130017-tw0000i",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130017-tw0000i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130018-tw0000j",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130018-tw0000j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Google:填寫 Google OAuth 用戶端 ID 和用戶端密鑰,簽發者位址由思源自動使用 Google 的固定位址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130019-tw0000k",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130019-tw0000k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130020-tw0000l",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130020-tw0000l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Microsoft:填寫租戶專屬的簽發者位址、用戶端 ID,並依應用程式設定填寫用戶端密鑰"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130021-tw0000m",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130021-tw0000m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130022-tw0000n",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130022-tw0000n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "GitHub:填寫 OAuth App 的用戶端 ID 和用戶端密鑰;思源會自動調整預設授權範圍"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130023-tw0000o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130023-tw0000o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "建立應用程式和註冊回呼位址時,可參閱 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Google OpenID Connect 說明文件",+ "TextMarkAHref": "https://developers.google.com/identity/openid-connect/openid-connect"+ },+ {+ "Type": "NodeText",+ "Data": "、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Microsoft Entra 應用程式註冊說明文件",+ "TextMarkAHref": "https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"+ },+ {+ "Type": "NodeText",+ "Data": "和 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "GitHub OAuth App 說明文件",+ "TextMarkAHref": "https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app"+ },+ {+ "Type": "NodeText",+ "Data": "。提供者主控台的具體介面可能變更,請以其目前文件為準。"+ }+ ]+ },+ {+ "ID": "20260804130024-tw0000p",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804130024-tw0000p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "回呼位址"+ }+ ]+ },+ {+ "ID": "20260804130025-tw0000q",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804130025-tw0000q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130026-tw0000r",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130026-tw0000r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130027-tw0000s",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130027-tw0000s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "本機瀏覽器和桌面端:通常使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "http://127.0.0.1:<連接埠>/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": ";身分提供者中登記的位址必須與實際通訊協定、主機、連接埠、路徑和斜線完全一致"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130028-tw0000t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130028-tw0000t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130029-tw0000u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130029-tw0000u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "遠端瀏覽器:在 OIDC 回呼位址中填寫公開 HTTPS 位址,路徑必須恰好是 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": ",不能包含查詢參數、片段或使用者資訊"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130030-tw0000v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130030-tw0000v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130031-tw0000w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130031-tw0000w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "原生行動端:固定使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": ";需要在身分提供者中原樣登記。Google 不接受此回呼格式,因此 Google 登入僅支援瀏覽器和桌面端"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130032-tw0000x",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804130032-tw0000x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "授權範圍"+ }+ ]+ },+ {+ "ID": "20260804130033-tw0000y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130033-tw0000y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "預設授權範圍是 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "openid profile email"+ },+ {+ "Type": "NodeText",+ "Data": "。一般不需要修改;自訂範圍前應確認提供者回傳的身分宣告仍能滿足准入規則。GitHub 會將預設範圍轉換為讀取使用者和已驗證電子郵件所需的權限。"+ }+ ]+ },+ {+ "ID": "20260804130034-tw0000z",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804130034-tw0000z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "准入規則"+ }+ ]+ },+ {+ "ID": "20260804130035-tw00010",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130035-tw00010",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "關閉「授予所有已驗證使用者管理員權限」後,必須至少設定一條准入規則。規則使用 JSON 陣列:同一規則的多個 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "values"+ },+ {+ "Type": "NodeText",+ "Data": " 是「或」關係,不同規則之間是「與」關係;"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "operator"+ },+ {+ "Type": "NodeText",+ "Data": " 支援 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "equals"+ },+ {+ "Type": "NodeText",+ "Data": " 和 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": "。"+ }+ ]+ },+ {+ "ID": "20260804130036-tw00011",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "anNvbg==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804130036-tw00011",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "anNvbg=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "[\n {\n \"claim\": \"email\",\n \"operator\": \"equals\",\n \"values\": [\"[email protected]\", \"[email protected]\"]\n },\n {\n \"claim\": \"email_verified\",\n \"operator\": \"equals\",\n \"values\": [\"true\"]\n }\n]\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804130037-tw00012",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130037-tw00012",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "以上範例只允許兩個指定電子郵件登入,並要求提供者確認電子郵件已經驗證。若提供者使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "groups"+ },+ {+ "Type": "NodeText",+ "Data": " 等陣列宣告,可以使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": " 比對其中的群組名稱。規則名稱和值必須與提供者實際回傳的宣告完全對應。"+ }+ ]+ },+ {+ "ID": "20260804130038-tw00013",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804130038-tw00013",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "驗證並儲存"+ }+ ]+ },+ {+ "ID": "20260804130039-tw00014",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130039-tw00014",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "啟用 OIDC 後點選 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "驗證並儲存"+ },+ {+ "Type": "NodeText",+ "Data": "。思源會開啟系統瀏覽器,只有完成一次真實登入並通過准入規則後才會啟用新設定;驗證失敗時原設定繼續生效。修改 OIDC 設定會使既有 OIDC 會話失效,使用者需要重新登入。"+ }+ ]+ },+ {+ "ID": "20260804130040-tw00015",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804130040-tw00015",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "各用戶端登入"+ }+ ]+ },+ {+ "ID": "20260804130041-tw00016",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804130041-tw00016",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130042-tw00017",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130042-tw00017",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130043-tw00018",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130043-tw00018",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "瀏覽器:在登入頁選擇使用 OIDC 登入,驗證完成後返回原存取位址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130044-tw00019",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130044-tw00019",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130045-tw0001a",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130045-tw0001a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "桌面端:透過系統瀏覽器完成驗證,思源會等待並接收登入結果"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130046-tw0001b",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130046-tw0001b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130047-tw0001c",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130047-tw0001c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "行動端:透過系統瀏覽器驗證後使用 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": " 返回思源;身分提供者必須支援此自訂回呼"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130048-tw0001d",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804130048-tw0001d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker 設定"+ }+ ]+ },+ {+ "ID": "20260804130049-tw0001e",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130049-tw0001e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker 部署可以透過以下環境變數覆寫工作空間中的 OIDC 設定。至少需要啟用 OIDC、選擇提供者並設定用戶端 ID;其他變數依提供者、回呼位址和准入策略填寫。"+ }+ ]+ },+ {+ "ID": "20260804130050-tw0001f",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "dGV4dA==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804130050-tw0001f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "dGV4dA=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "SIYUAN_OIDC_ENABLED\nSIYUAN_OIDC_PROVIDER\nSIYUAN_OIDC_ISSUER_URL\nSIYUAN_OIDC_CLIENT_ID\nSIYUAN_OIDC_CLIENT_SECRET\nSIYUAN_OIDC_SCOPES\nSIYUAN_OIDC_REDIRECT_URL\nSIYUAN_OIDC_ALLOW_ALL\nSIYUAN_OIDC_CLAIM_RULES\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804130051-tw0001g",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130051-tw0001g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "環境變數在核心啟動時生效。遠端 Docker 部署還必須保留瀏覽器鎖屏密碼、有效 OIDC 設定或明確啟用驗證繞過,否則思源會拒絕啟動,以免工作空間在無驗證狀態下暴露。"+ }+ ]+ },+ {+ "ID": "20260804130052-tw0001h",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804130052-tw0001h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "常見問題"+ }+ ]+ },+ {+ "ID": "20260804130053-tw0001i",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804130053-tw0001i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130054-tw0001j",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130054-tw0001j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130055-tw0001k",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130055-tw0001k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "redirect_uri mismatch"+ },+ {+ "Type": "NodeText",+ "Data": ":檢查身分提供者登記的回呼位址是否與實際通訊協定、主機、連接埠、路徑和結尾斜線完全一致"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130056-tw0001l",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130056-tw0001l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130057-tw0001m",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130057-tw0001m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "發現提供者失敗:檢查 Custom 或 Microsoft 的簽發者位址是否正確、是否使用 HTTPS,以及思源能否存取 Discovery 位址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130058-tw0001n",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130058-tw0001n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130059-tw0001o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130059-tw0001o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "交換授權碼失敗:檢查用戶端 ID、用戶端密鑰和回呼位址"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130100-tw0001p",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130100-tw0001p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130101-tw0001q",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130101-tw0001q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "登入後被拒絕:檢查身分提供者實際回傳的宣告、資料類型以及准入規則中的名稱、運算子和值"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130102-tw0001r",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804130102-tw0001r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "注意"+ }+ ]+ },+ {+ "ID": "20260804130103-tw0001s",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804130103-tw0001s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130104-tw0001t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130104-tw0001t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130105-tw0001u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130105-tw0001u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "不要在沒有准入規則的情況下向不受信任的身分提供者開放所有使用者登入"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130106-tw0001v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130106-tw0001v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130107-tw0001w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130107-tw0001w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "依電子郵件准入時,建議同時要求 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "email_verified"+ },+ {+ "Type": "NodeText",+ "Data": " 等於 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "true"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130108-tw0001x",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130108-tw0001x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130109-tw0001y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130109-tw0001y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "用戶端密鑰屬於敏感資訊,不要寫入公開文件、日誌或可公開讀取的部署檔案"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804130110-tw0001z",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804130110-tw0001z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804130111-tw00020",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804130111-tw00020",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC 只負責身分驗證;通過驗證的使用者擁有管理員權限,不能用它實作不同使用者的資料隔離"+ }+ ]+ }+ ]+ }+ ]+ }+ ]+}diff --git a/app/guide/20240530133126-axarxgx/.siyuan/sort.json b/app/guide/20240530133126-axarxgx/.siyuan/sort.jsonindex ee5cb39efd..4c7dbc047d 100644--- a/app/guide/20240530133126-axarxgx/.siyuan/sort.json+++ b/app/guide/20240530133126-axarxgx/.siyuan/sort.json@@ -1 +1 @@-{"20240530101000-0zd9si2":14,"20240530101000-1m5un7l":11,"20240530101000-1vvnhju":6,"20240530101000-35bbvcx":2,"20240530101000-3eaevtp":8,"20240530101000-3ourzoa":2,"20240530101000-3qhz7br":1,"20240530101000-3xv6jjr":9,"20240530101000-40hohog":20,"20240530101000-4cqkoel":24,"20240530101000-4p096e8":1,"20240530101000-4qitucx":1,"20240530101000-58z6rjh":2,"20240530101000-5gi76ax":9,"20240530101000-5k5d5i3":2,"20240530101000-6x9ivi7":12,"20240530101000-75auqcn":6,"20240530101000-78d5w10":4,"20240530101000-7yv4y5z":4,"20240530101000-875snki":7,"20240530101000-8m2dowc":10,"20240530101000-96n5y9v":1,"20240530101000-a91lmk2":3,"20240530101000-bb0qktp":1,"20240530101000-bgv304g":8,"20240530101000-boiita2":4,"20240530101000-bpj42r0":2,"20240530101000-cb37szr":7,"20240530101000-d31i9v5":2,"20240530101000-dro2zi9":5,"20240530101000-dytmky4":23,"20240530101000-e6z5okf":2,"20240530101000-ei5t6tt":18,"20240530101000-f16hpct":21,"20240530101000-flot1gj":6,"20240530101000-g3ugxml":5,"20240530101000-gc0tuyd":3,"20240530101000-gcdp3gl":3,"20240530101000-gvtksyj":1,"20240530101000-h0cp5vx":5,"20240530101000-hkgs92c":4,"20240530101000-hnu6o79":2,"20240530101000-hq9sn3k":1,"20240530101000-jp793ic":3,"20240530101000-mpln2lp":5,"20240530101000-mrlr6e9":4,"20240530101000-na9sys7":1,"20240530101000-odye3ea":3,"20240530101000-qf0xtkd":2,"20240530101000-scr2p21":6,"20240530101000-to5uvpi":13,"20240530101000-txrc7z1":16,"20240530101000-uxno1yp":3,"20240530101000-vejnh1k":1,"20240530101000-vql5s27":5,"20240530101000-wo49zvq":2,"20240530101000-xc13cm6":7,"20240530101000-xq26o73":22,"20240530101000-xr22qn8":4,"20240530101000-xsbxokr":19,"20240530101000-ynpmvl7":17,"20240530101000-zj4k048":3,"20240530101000-znj103k":10,"20240530101000-zprnpfi":15,"20240610233601-ylh1mvk":25,"20260612192417-fb4ueux":26,"20260613155453-sncbsow":1,"20260613211946-ods0v99":5,"20260614104715-xe51jlk":27,"20260614113219-gcm8mer":7,"20260617123701-ju7eee5":2,"20260804171006-aiagt04":1,"20260804171007-semnt04":2}\ No newline at end of file+{"20240530101000-0zd9si2":14,"20240530101000-1m5un7l":11,"20240530101000-1vvnhju":6,"20240530101000-35bbvcx":2,"20240530101000-3eaevtp":8,"20240530101000-3ourzoa":2,"20240530101000-3qhz7br":1,"20240530101000-3xv6jjr":9,"20240530101000-40hohog":20,"20240530101000-4cqkoel":25,"20240530101000-4p096e8":1,"20240530101000-4qitucx":1,"20240530101000-58z6rjh":2,"20240530101000-5gi76ax":9,"20240530101000-5k5d5i3":2,"20240530101000-6x9ivi7":12,"20240530101000-75auqcn":6,"20240530101000-78d5w10":4,"20240530101000-7yv4y5z":4,"20240530101000-875snki":7,"20240530101000-8m2dowc":10,"20240530101000-96n5y9v":1,"20240530101000-a91lmk2":3,"20240530101000-bb0qktp":1,"20240530101000-bgv304g":8,"20240530101000-boiita2":4,"20240530101000-bpj42r0":2,"20240530101000-cb37szr":7,"20240530101000-d31i9v5":2,"20240530101000-dro2zi9":5,"20240530101000-dytmky4":24,"20240530101000-e6z5okf":2,"20240530101000-ei5t6tt":18,"20240530101000-f16hpct":22,"20240530101000-flot1gj":6,"20240530101000-g3ugxml":5,"20240530101000-gc0tuyd":3,"20240530101000-gcdp3gl":3,"20240530101000-gvtksyj":1,"20240530101000-h0cp5vx":5,"20240530101000-hkgs92c":4,"20240530101000-hnu6o79":2,"20240530101000-hq9sn3k":1,"20240530101000-jp793ic":3,"20240530101000-mpln2lp":5,"20240530101000-mrlr6e9":4,"20240530101000-na9sys7":1,"20240530101000-odye3ea":3,"20240530101000-qf0xtkd":2,"20240530101000-scr2p21":6,"20240530101000-to5uvpi":13,"20240530101000-txrc7z1":16,"20240530101000-uxno1yp":3,"20240530101000-vejnh1k":1,"20240530101000-vql5s27":5,"20240530101000-wo49zvq":2,"20240530101000-xc13cm6":7,"20240530101000-xq26o73":23,"20240530101000-xr22qn8":4,"20240530101000-xsbxokr":19,"20240530101000-ynpmvl7":17,"20240530101000-zj4k048":3,"20240530101000-znj103k":10,"20240530101000-zprnpfi":15,"20240610233601-ylh1mvk":26,"20260612192417-fb4ueux":27,"20260613155453-sncbsow":1,"20260613211946-ods0v99":5,"20260614104715-xe51jlk":28,"20260614113219-gcm8mer":7,"20260617123701-ju7eee5":2,"20260804171006-aiagt04":1,"20260804171007-semnt04":2,"20260804190003-oidcja1":21}diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-40hohog.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-40hohog.syindex a5a6ca6b83..206ca90d46 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-40hohog.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-40hohog.sy@@ -7,7 +7,7 @@"id": "20240530101000-40hohog","title": "ブラウザ","type": "doc",- "updated": "20260804165003"+ "updated": "20260804193000"},"Children": [{@@ -275,7 +275,7 @@"HeadingLevel": 3,"Properties": {"id": "20260804120301-oidclog",- "updated": "20260804165003"+ "updated": "20260804193000"},"Children": [{@@ -285,48 +285,27 @@]},{- "ID": "20260804120302-oidcset",+ "ID": "20260804190503-oidcrf4","Type": "NodeParagraph","Properties": {- "id": "20260804120302-oidcset",- "updated": "20260804165003"+ "id": "20260804190503-oidcrf4",+ "updated": "20260804193000"},"Children": [{"Type": "NodeText",- "Data": "OIDC ログインは "+ "Data": "プロバイダー、コールバック URL、クレームルール、各クライアントでのログイン、Docker 設定、トラブルシューティングについては、"},{"Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "設定"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "認証"+ "TextMarkType": "block-ref",+ "TextMarkBlockRefID": "20260804190003-oidcja1",+ "TextMarkBlockRefSubtype": "s",+ "TextMarkTextContent": "OIDC ログイン"},{"Type": "NodeText",- "Data": " で設定します。リモートブラウザからアクセスする場合は、/api/system/oidc/callback で終わる公開 HTTPS コールバック URL が必要です。SiYuan のローカル待受アドレスはローカルブラウザでのログインにのみ使用でき、リモートブラウザやモバイルアプリの固定コールバック URL には使用できません。Custom および Microsoft プロバイダーでは発行者 URL が必要で、GitHub ではクライアントシークレットが必要です。許可ルールを満たすすべての ID には管理者権限が付与されます。可能な限り、認証済みのすべてのユーザーに管理者権限を付与するオプションは無効にし、完全一致のクレームルールを使用してください。メールアドレスによるルールには通常、email_verified が true であるという条件も追加します。「検証して保存」では、設定を有効にする前にプロバイダーで実際のログインを完了します。Docker では SIYUAN_OIDC_ENABLED、SIYUAN_OIDC_PROVIDER、SIYUAN_OIDC_CLIENT_ID を設定し、必要に応じて SIYUAN_OIDC_ISSUER_URL、SIYUAN_OIDC_CLIENT_SECRET、SIYUAN_OIDC_SCOPES、SIYUAN_OIDC_REDIRECT_URL、SIYUAN_OIDC_ALLOW_ALL、SIYUAN_OIDC_CLAIM_RULES を設定します。"- }- ]- },- {- "ID": "20260804120303-oidcmob",- "Type": "NodeParagraph",- "Properties": {- "id": "20260804120303-oidcmob",- "updated": "20260804165003"- },- "Children": [- {- "Type": "NodeText",- "Data": "ネイティブモバイルアプリでは常に siyuan:/oidc-callback を使用します。ID プロバイダーにこの文字列をそのまま登録してください。モバイルでの設定検証にも同じコールバックを使用し、SiYuan に正常に戻るまで設定は保存されません。Google はこの形式のモバイルコールバックを受け付けないため、Google ログインはブラウザ版とデスクトップ版でのみ利用できます。redirect_uri の不一致は通常、登録したコールバックのスキーム、スラッシュ、パス、またはポートが完全に一致していないことを示します。プロバイダーの検出に失敗する場合は通常、発行者 URL が正しくないかプロバイダーにアクセスできません。認可コードの交換に失敗する場合は通常、クライアント ID またはクライアントシークレットが正しくありません。"+ "Data": "を参照してください。"}]}diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20260804190003-oidcja1.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20260804190003-oidcja1.synew file mode 100644index 0000000000..f6f6d94bac--- /dev/null+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20260804190003-oidcja1.sy@@ -0,0 +1,1281 @@+{+ "ID": "20260804190003-oidcja1",+ "Spec": "2",+ "Type": "NodeDocument",+ "Properties": {+ "id": "20260804190003-oidcja1",+ "title": "OIDC ログイン",+ "type": "doc",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190000-ja00001",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804190000-ja00001",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "概要"+ }+ ]+ },+ {+ "ID": "20260804190001-ja00002",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190001-ja00002",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC(OpenID Connect)ログインを使用すると、既存の ID プロバイダーによるシングルサインオンを、ブラウザの画面ロックパスワードと併用できます。Custom、Google、Microsoft、GitHub に対応しています。"+ }+ ]+ },+ {+ "ID": "20260804190002-ja00003",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190002-ja00003",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC のクレームルールで許可された ID には、現在のワークスペースの管理者権限が付与されます。OIDC はユーザーごとの権限分離やロールマッピングを提供しないため、ログインを許可する ID を厳密に制限してください。"+ }+ ]+ },+ {+ "ID": "20260804190003-ja00004",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804190003-ja00004",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "事前準備"+ }+ ]+ },+ {+ "ID": "20260804190004-ja00005",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804190004-ja00005",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190005-ja00006",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190005-ja00006",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190006-ja00007",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190006-ja00007",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "ID プロバイダーにアプリケーションを登録し、クライアント ID と、必要な場合はクライアントシークレットを取得します"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190007-ja00008",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190007-ja00008",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190008-ja00009",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190008-ja00009",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "使用するブラウザ、デスクトップ、モバイルのコールバック URL を決め、ID プロバイダーにそれぞれ登録します"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190009-ja0000a",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190009-ja0000a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190010-ja0000b",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190010-ja0000b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "設定ミスによるリモートからのロックアウトを防ぐため、有効な画面ロックパスワードまたはローカルアクセス手段を残します"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190011-ja0000c",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804190011-ja0000c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "設定方法"+ }+ ]+ },+ {+ "ID": "20260804190012-ja0000d",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190012-ja0000d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "設定"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "認証"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "OIDC ログイン"+ },+ {+ "Type": "NodeText",+ "Data": " で必要な項目を入力し、OIDC ログインを有効にします。"+ }+ ]+ },+ {+ "ID": "20260804190013-ja0000e",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804190013-ja0000e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "プロバイダーと認証情報"+ }+ ]+ },+ {+ "ID": "20260804190014-ja0000f",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804190014-ja0000f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190015-ja0000g",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190015-ja0000g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190016-ja0000h",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190016-ja0000h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Custom:OpenID Connect Discovery に対応する発行者 URL とクライアント ID を入力し、プロバイダーが必要とする場合はクライアントシークレットも入力します"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190017-ja0000i",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190017-ja0000i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190018-ja0000j",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190018-ja0000j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Google:Google OAuth のクライアント ID とクライアントシークレットを入力します。発行者 URL には Google の固定 URL が自動的に使用されます"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190019-ja0000k",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190019-ja0000k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190020-ja0000l",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190020-ja0000l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Microsoft:テナント固有の発行者 URL とクライアント ID、およびアプリケーションに設定したクライアントシークレットを入力します"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190021-ja0000m",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190021-ja0000m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190022-ja0000n",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190022-ja0000n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "GitHub:OAuth App のクライアント ID とクライアントシークレットを入力します。既定のスコープは思源が自動的に調整します"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190023-ja0000o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190023-ja0000o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "アプリケーションとコールバックの登録については、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Google OpenID Connect ドキュメント",+ "TextMarkAHref": "https://developers.google.com/identity/openid-connect/openid-connect"+ },+ {+ "Type": "NodeText",+ "Data": "、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "Microsoft Entra アプリ登録ドキュメント",+ "TextMarkAHref": "https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"+ },+ {+ "Type": "NodeText",+ "Data": "、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "a",+ "TextMarkTextContent": "GitHub OAuth App ドキュメント",+ "TextMarkAHref": "https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app"+ },+ {+ "Type": "NodeText",+ "Data": "を参照してください。プロバイダーの管理画面は変更される場合があるため、最新の公式ドキュメントに従ってください。"+ }+ ]+ },+ {+ "ID": "20260804190024-ja0000p",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804190024-ja0000p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "コールバック URL"+ }+ ]+ },+ {+ "ID": "20260804190025-ja0000q",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804190025-ja0000q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190026-ja0000r",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190026-ja0000r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190027-ja0000s",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190027-ja0000s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "ローカルブラウザとデスクトップ:通常は "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "http://127.0.0.1:<ポート>/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": " を使用します。登録 URL は実際のスキーム、ホスト、ポート、パス、スラッシュと完全に一致する必要があります"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190028-ja0000t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190028-ja0000t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190029-ja0000u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190029-ja0000u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "リモートブラウザ:OIDC リダイレクト URL に公開 HTTPS URL を入力します。パスは "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "/api/system/oidc/callback"+ },+ {+ "Type": "NodeText",+ "Data": " と完全に一致し、クエリ、フラグメント、ユーザー情報を含めることはできません"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190030-ja0000v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190030-ja0000v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190031-ja0000w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190031-ja0000w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "ネイティブモバイル:常に "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": " を使用します。プロバイダーにそのまま登録してください。Google はこの形式を受け付けないため、Google ログインはブラウザとデスクトップでのみ使用できます"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190032-ja0000x",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804190032-ja0000x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "スコープ"+ }+ ]+ },+ {+ "ID": "20260804190033-ja0000y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190033-ja0000y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "既定のスコープは "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "openid profile email"+ },+ {+ "Type": "NodeText",+ "Data": " です。通常は変更する必要はありません。カスタムスコープを使用する場合は、アクセスルールに必要なクレームが引き続き返されることを確認してください。GitHub では、ユーザー情報と検証済みメールアドレスの取得に必要な権限へ自動的に変換されます。"+ }+ ]+ },+ {+ "ID": "20260804190034-ja0000z",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804190034-ja0000z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "クレームルール"+ }+ ]+ },+ {+ "ID": "20260804190035-ja00010",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190035-ja00010",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "「認証済みのすべてのユーザーに管理者権限を付与」を無効にした場合、1 つ以上のクレームルールが必要です。ルールは JSON 配列で記述します。同じルール内の複数の "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "values"+ },+ {+ "Type": "NodeText",+ "Data": " は OR、異なるルール間は AND として評価されます。"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "operator"+ },+ {+ "Type": "NodeText",+ "Data": " には "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "equals"+ },+ {+ "Type": "NodeText",+ "Data": " または "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": " を使用できます。"+ }+ ]+ },+ {+ "ID": "20260804190036-ja00011",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "anNvbg==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804190036-ja00011",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "anNvbg=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "[\n {\n \"claim\": \"email\",\n \"operator\": \"equals\",\n \"values\": [\"[email protected]\", \"[email protected]\"]\n },\n {\n \"claim\": \"email_verified\",\n \"operator\": \"equals\",\n \"values\": [\"true\"]\n }\n]\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804190037-ja00012",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190037-ja00012",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "この例では、指定した 2 つのメールアドレスだけを許可し、プロバイダーがメールアドレスを検証済みとして返すことも要求します。"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "groups"+ },+ {+ "Type": "NodeText",+ "Data": " などの配列クレームでは、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "contains"+ },+ {+ "Type": "NodeText",+ "Data": " を使用してグループ名を照合できます。クレーム名と値は、プロバイダーの実際の応答と一致させてください。"+ }+ ]+ },+ {+ "ID": "20260804190038-ja00013",+ "Type": "NodeHeading",+ "HeadingLevel": 3,+ "Properties": {+ "id": "20260804190038-ja00013",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "検証して保存"+ }+ ]+ },+ {+ "ID": "20260804190039-ja00014",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190039-ja00014",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC を有効にした後、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "検証して保存"+ },+ {+ "Type": "NodeText",+ "Data": " を選択します。システムブラウザで実際のログインを完了し、クレームルールを満たした場合にのみ新しい設定が有効になります。検証に失敗した場合は以前の設定が維持されます。OIDC 設定を変更すると既存の OIDC セッションは無効になり、再ログインが必要です。"+ }+ ]+ },+ {+ "ID": "20260804190040-ja00015",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804190040-ja00015",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "各クライアントでのログイン"+ }+ ]+ },+ {+ "ID": "20260804190041-ja00016",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804190041-ja00016",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190042-ja00017",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190042-ja00017",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190043-ja00018",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190043-ja00018",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "ブラウザ:ログイン画面で OIDC ログインを選択し、認証後に元のアドレスへ戻ります"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190044-ja00019",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190044-ja00019",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190045-ja0001a",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190045-ja0001a",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "デスクトップ:システムブラウザで認証し、思源が結果を待って受け取ります"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190046-ja0001b",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190046-ja0001b",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190047-ja0001c",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190047-ja0001c",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "モバイル:システムブラウザでの認証後、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "siyuan:/oidc-callback"+ },+ {+ "Type": "NodeText",+ "Data": " で思源へ戻ります。プロバイダーがこのカスタムコールバックに対応している必要があります"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190048-ja0001d",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804190048-ja0001d",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker の設定"+ }+ ]+ },+ {+ "ID": "20260804190049-ja0001e",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190049-ja0001e",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Docker では、以下の環境変数でワークスペースの OIDC 設定を上書きできます。少なくとも OIDC の有効化、プロバイダー、クライアント ID が必要です。その他の変数はプロバイダー、コールバック、アクセス方針に応じて設定します。"+ }+ ]+ },+ {+ "ID": "20260804190050-ja0001f",+ "Type": "NodeCodeBlock",+ "IsFencedCodeBlock": true,+ "CodeBlockFenceChar": 96,+ "CodeBlockFenceLen": 3,+ "CodeBlockOpenFence": "YGBg",+ "CodeBlockInfo": "dGV4dA==",+ "CodeBlockCloseFence": "YGBg",+ "Properties": {+ "id": "20260804190050-ja0001f",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeCodeBlockFenceOpenMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ },+ {+ "Type": "NodeCodeBlockFenceInfoMarker",+ "CodeBlockInfo": "dGV4dA=="+ },+ {+ "Type": "NodeCodeBlockCode",+ "Data": "SIYUAN_OIDC_ENABLED\nSIYUAN_OIDC_PROVIDER\nSIYUAN_OIDC_ISSUER_URL\nSIYUAN_OIDC_CLIENT_ID\nSIYUAN_OIDC_CLIENT_SECRET\nSIYUAN_OIDC_SCOPES\nSIYUAN_OIDC_REDIRECT_URL\nSIYUAN_OIDC_ALLOW_ALL\nSIYUAN_OIDC_CLAIM_RULES\n"+ },+ {+ "Type": "NodeCodeBlockFenceCloseMarker",+ "Data": "```",+ "CodeBlockFenceLen": 3+ }+ ]+ },+ {+ "ID": "20260804190051-ja0001g",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190051-ja0001g",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "環境変数はカーネル起動時に適用されます。リモートの Docker 配置では、画面ロックパスワード、有効な OIDC 設定、または明示的な認証バイパスのいずれかも必要です。いずれもない場合、認証なしでワークスペースが公開されることを防ぐため、思源は起動を拒否します。"+ }+ ]+ },+ {+ "ID": "20260804190052-ja0001h",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804190052-ja0001h",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "トラブルシューティング"+ }+ ]+ },+ {+ "ID": "20260804190053-ja0001i",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804190053-ja0001i",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190054-ja0001j",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190054-ja0001j",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190055-ja0001k",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190055-ja0001k",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "redirect_uri mismatch"+ },+ {+ "Type": "NodeText",+ "Data": ":登録したコールバックと実際のスキーム、ホスト、ポート、パス、末尾のスラッシュが完全に一致するか確認します"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190056-ja0001l",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190056-ja0001l",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190057-ja0001m",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190057-ja0001m",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "プロバイダーの検出に失敗する:Custom または Microsoft の発行者 URL、HTTPS の使用、思源から Discovery エンドポイントへ接続できるかを確認します"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190058-ja0001n",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190058-ja0001n",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190059-ja0001o",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190059-ja0001o",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "認可コードの交換に失敗する:クライアント ID、クライアントシークレット、コールバック URL を確認します"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190100-ja0001p",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190100-ja0001p",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190101-ja0001q",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190101-ja0001q",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "ログイン後に拒否される:プロバイダーが返す実際のクレームとデータ型を確認し、アクセスルールのクレーム名、演算子、値を見直します"+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190102-ja0001r",+ "Type": "NodeHeading",+ "HeadingLevel": 2,+ "Properties": {+ "id": "20260804190102-ja0001r",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "注意"+ }+ ]+ },+ {+ "ID": "20260804190103-ja0001s",+ "Type": "NodeList",+ "ListData": {},+ "Properties": {+ "id": "20260804190103-ja0001s",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190104-ja0001t",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190104-ja0001t",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190105-ja0001u",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190105-ja0001u",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "クレームルールを設定せず、信頼できない ID プロバイダーのすべてのユーザーにアクセスを許可しないでください"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190106-ja0001v",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190106-ja0001v",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190107-ja0001w",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190107-ja0001w",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "メールアドレスで許可する場合は、"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "email_verified"+ },+ {+ "Type": "NodeText",+ "Data": " が "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "code",+ "TextMarkTextContent": "true"+ },+ {+ "Type": "NodeText",+ "Data": " であることも要求してください"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190108-ja0001x",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190108-ja0001x",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190109-ja0001y",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190109-ja0001y",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "クライアントシークレットは機密情報です。公開ドキュメント、ログ、公開読み取り可能なデプロイファイルに記載しないでください"+ }+ ]+ }+ ]+ },+ {+ "ID": "20260804190110-ja0001z",+ "Type": "NodeListItem",+ "ListData": {+ "Tight": true,+ "BulletChar": 42,+ "Marker": "Kg==",+ "Num": -1+ },+ "Properties": {+ "id": "20260804190110-ja0001z",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "ID": "20260804190111-ja00020",+ "Type": "NodeParagraph",+ "Properties": {+ "id": "20260804190111-ja00020",+ "updated": "20260804193000"+ },+ "Children": [+ {+ "Type": "NodeText",+ "Data": "OIDC は認証のみを提供します。認証されたすべてのユーザーは管理者になるため、ユーザー間のデータ分離には使用できません"+ }+ ]+ }+ ]+ }+ ]+ }+ ]+}