{"id":2190,"date":"2023-05-11T11:08:40","date_gmt":"2023-05-11T03:08:40","guid":{"rendered":"https:\/\/idaas-doc.cloudentify.com\/docs\/?p=2190"},"modified":"2023-06-12T20:13:44","modified_gmt":"2023-06-12T12:13:44","slug":"nextcloud","status":"publish","type":"post","link":"https:\/\/idaas-doc.cloudentify.com\/docs\/nextcloud\/","title":{"rendered":"NextCloud"},"content":{"rendered":"\n<h3><span id=\"i\">\u914d\u7f6e\u8fc7\u7a0b<\/span><\/h3>\n\n\n\n<h3><span id=\"1_IDaaSNextcloud\">1. IDaaS\u5e73\u53f0\u6dfb\u52a0Nextcloud<\/span><\/h3>\n\n\n\n<p>1.1  \u7528\u7ba1\u7406\u5458\u8d26\u53f7\u767b\u5f55<a href=\"https:\/\/idaasadmin.cloudentify.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u98de\u5929\u4e91\u4fe1IDaaS\u7ba1\u7406\u5e73\u53f0<\/a>\u3002<\/p>\n\n\n\n<p>1.2  \u70b9\u51fb\u3010\u5e94\u7528\u7ba1\u7406\u3011-\u3010\u4f01\u4e1a\u5e94\u7528\u5217\u8868\u3011\u67e5\u770b\u81ea\u5df1\u7684\u6240\u6709\u5e94\u7528\u3002<\/p>\n\n\n\n<p>1.3  \u70b9\u51fb\u3010\u6dfb\u52a0\u5e94\u7528\u3011\u6309\u94ae\uff0c\u9009\u62e9\u3010\u96c6\u6210\u5e94\u7528\u3011\uff0c\u70b9\u51fb\u3010\u8fdb\u5165\u5e94\u7528\u5e02\u573a\u3011\uff08\u6216\u8005\u70b9\u51fb\u3010\u5e94\u7528\u7ba1\u7406\u3011-\u3010\u5e94\u7528\u5e02\u573a\u3011\uff09\uff0c\u9009\u62e9\u3010Nextcloud\u3011\uff0c\u586b\u5165\u5e94\u7528\u540d\u79f0\u540e\uff0c\u70b9\u51fb\u3010\u4e0b\u4e00\u6b65\u3011\uff0c\u5728\u901a\u7528\u914d\u7f6e\u5904\u6309\u8981\u6c42\u586b\u5165\u4fe1\u606f\u540e\uff0c\u70b9\u51fb\u3010\u786e\u5b9a\u3011\uff0c\u5373\u53ef\u5728\u4f01\u4e1a\u5e94\u7528\u5217\u8868\u67e5\u770b\u65b0\u6dfb\u52a0\u7684\u5e94\u7528\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1015\" height=\"557\" src=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-68.png\" alt=\"\" class=\"wp-image-2194\" srcset=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-68.png 1015w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-68-300x165.png 300w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-68-768x421.png 768w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<p>\u5b57\u6bb5\u8bf4\u660e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u5b57\u6bb5<\/strong><\/td><td><strong>\u5b57\u6bb5\u8bf4\u660e<\/strong><\/td><\/tr><tr><td>\u96c6\u6210\u5e94\u7528\u540d\u79f0<\/td><td>\u901a\u5e38\u586b\u5199\u4e3aNextcloud\uff0c\u4e5f\u53ef\u81ea\u5b9a\u4e49\u3002\u6b64\u540d\u79f0\u4f1a\u5c55\u793a\u5728\u4f60\u7684\u5e94\u7528\u5217\u8868\u3002<\/td><\/tr><tr><td>\u8ba4\u8bc1\u5730\u5740<\/td><td>\u53ef\u968f\u610f\u586b\u5199\uff0c\u914d\u7f6e\u5b8c\u6210\u540e\u7528\u6237\u53ef\u590d\u5236\u8be5\u94fe\u63a5\u76f4\u63a5\u767b\u5f55\u5230Nextcloud\u3002<\/td><\/tr><tr><td>\u7528\u6237\u6807\u8bc6<\/td><td>\u8bbf\u95ee\u5e94\u7528\u65f6\u5145\u5f53\u7528\u6237\u6807\u8bc6\u7684\u5c5e\u6027<\/td><\/tr><tr><td>\u56de\u8c03\u5730\u5740<\/td><td>\u8f93\u5165Nextcloud\u7684\u56de\u8c03\u5730\u5740\uff0c\u683c\u5f0f\u4e3ahttp:\/\/IP\/apps\/sociallogin\/custom_oauth2\/\u5185\u90e8\u540d\u5b57\uff0c\u53ef\u4ee5\u5728\u300c2. Nextcloud\u5e73\u53f0\u914d\u7f6e\u300d\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5728\u767b\u5f55\u9875\u9762\u53f3\u952e\u901a\u8fc7\u201c\u590d\u5236\u94fe\u63a5\u201d\u83b7\u53d6<\/td><\/tr><tr><td>App Secret<\/td><td>\u7cfb\u7edf\u81ea\u52a8\u751f\u6210<\/td><\/tr><tr><td>Authorization\u7aef\u70b9<\/td><td>\u7cfb\u7edf\u81ea\u52a8\u751f\u6210<\/td><\/tr><tr><td>Token\u7aef\u70b9<\/td><td>\u7cfb\u7edf\u81ea\u52a8\u751f\u6210<\/td><\/tr><tr><td>\u7528\u6237\u4fe1\u606f\u7aef\u70b9<\/td><td>\u7cfb\u7edf\u81ea\u52a8\u751f\u6210<\/td><\/tr><tr><td>Issuer<\/td><td>\u7cfb\u7edf\u81ea\u52a8\u751f\u6210<\/td><\/tr><tr><td>\u670d\u52a1\u53d1\u73b0\u5730\u5740<\/td><td>\u7cfb\u7edf\u81ea\u52a8\u751f\u6210<\/td><\/tr><tr><td>JWKS\u516c\u94a5\u7aef\u70b9<\/td><td>\u7cfb\u7edf\u81ea\u52a8\u751f\u6210<\/td><\/tr><tr><td>\u5b89\u5168\u7b49\u7ea7<\/td><td>\u8be5\u5e94\u7528\u672a\u5173\u8054\u4efb\u4f55\u7b56\u7565\u65f6\uff0c\u5c06\u667a\u80fd\u5339\u914d\u5bf9\u5e94\u5b89\u5168\u7b49\u7ea7\u7684\u8ba4\u8bc1\u7b56\u7565\uff0c\u5177\u4f53\u7b56\u7565\u914d\u7f6e\u8be6\u60c5\u53ef\u5728\u3010\u8ba4\u8bc1\u7ba1\u7406\u3011-\u3010\u81ea\u9002\u5e94\u8ba4\u8bc1\u3011\u9875\u9762\u67e5\u770b\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>1.4  \u5728\u4f01\u4e1a\u5e94\u7528\u5217\u8868\u70b9\u51fb\u5e94\u7528\u56fe\u6807\uff0c\u5207\u6362\u5230\u3010\u8bbf\u95ee\u6388\u6743\u3011\u6807\u7b7e\u9875\uff0c\u6dfb\u52a0\u5141\u8bb8\u7528\u6237\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n\n\n\n<h3><span id=\"2_Nextcloud\">2. Nextcloud\u5e73\u53f0\u914d\u7f6e<\/span><\/h3>\n\n\n\n<p>2.1  \u4f7f\u7528\u7ba1\u7406\u5458\u8d26\u53f7\u767b\u5f55Nextcloud\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u5934\u50cf\uff0c\u9009\u62e9\u3010\u8bbe\u7f6e\u3011-\u3010\u7ba1\u7406\u3011-\u3010\u793e\u4ea4\u8d26\u53f7\u767b\u5f55\u3011\uff0c\u8fdb\u5165\u6dfb\u52a0\u8d26\u53f7\u9875\u9762\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1015\" height=\"516\" src=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-69.png\" alt=\"\" class=\"wp-image-2196\" srcset=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-69.png 1015w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-69-300x153.png 300w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-69-768x390.png 768w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<p>2.2  \u70b9\u51fb\u81ea\u5b9a\u4e49OAuth2\u540e\u9762\u7684\u271a\uff0c\u4e0b\u62c9\u9875\u9762\u627e\u5230\u4e0b\u56fe\u53f3\u4fa7\u586b\u5199\u914d\u7f6e\u4fe1\u606f\u90e8\u5206\uff0c\u6839\u636e\u56fe\u7247\u63d0\u793a\u4ece\u7ba1\u7406\u5e73\u53f0\u83b7\u53d6\u5bf9\u5e94\u7684\u5185\u5bb9\uff0c\u586b\u5199\u5b8c\u6210\u540e\uff0c\u6ed1\u52a8\u9875\u9762\u5230\u5e95\u7aef\uff0c\u70b9\u51fb\u3010\u4fdd\u5b58\u3011\u6309\u94ae\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1015\" height=\"591\" src=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-70.png\" alt=\"\" class=\"wp-image-2198\" srcset=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-70.png 1015w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-70-300x175.png 300w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-70-768x447.png 768w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n\n\n\n<p>\u63d0\u793a\uff1a\u9700\u8981\u66f4\u6539ProviderService.php\u6587\u4ef6\u4e2duid\u7684\u751f\u6210\u65b9\u5f0f\u3002<br>\u53c2\u8003\u4ee3\u7801\uff1a<br>$uid\u00a0=\u00a0$provider.&#8217;-&#8216;.$profileId;\u00a0\u6539\u4e3a$uid\u00a0=\u00a0$profileId;\u00a0<br>$uid\u00a0=\u00a0$provider.&#8217;-&#8216;.md5($profileId);\u00a0\u6539\u4e3a\u00a0$uid\u00a0=\u00a0md5($profileId);<\/p>\n\n\n\n<h3><span id=\"3\">3. \u4f53\u9a8c\u5355\u70b9\u767b\u5f55<\/span><\/h3>\n\n\n\n<p>3.1  \u767b\u5f55\u7528\u6237\u95e8\u6237\u7cfb\u7edf\u3002<\/p>\n\n\n\n<p>3.2  \u767b\u5f55\u6210\u529f\u540e\uff0c\u5728\u83dc\u5355\u680f\u3010\u5e94\u7528\u4e2d\u5fc3\u3011\u5904\uff0c\u53ef\u4ee5\u770b\u52301.3\u6dfb\u52a0\u7684Nextcloud\u5e94\u7528\uff0c\u70b9\u51fb\u5e94\u7528\u56fe\u6807\uff0c\u767b\u5f55 Nextcloud\u3002<\/p>\n\n\n\n<p>\u63d0\u793a\uff1a\u9700\u8981\u6309\u7167\u5173\u8054\u7b56\u7565\u4e2d\u7684\u89c4\u5219\uff0c\u8ba4\u8bc1\u901a\u8fc7\u540e\u767b\u5f55\u8fdb\u5176\u5e94\u7528\u7cfb\u7edf\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1015\" height=\"434\" src=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-71.png\" alt=\"\" class=\"wp-image-2200\" srcset=\"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-71.png 1015w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-71-300x128.png 300w, https:\/\/idaas-doc.cloudentify.com\/docs\/wp-content\/uploads\/2023\/05\/image-71-768x328.png 768w\" sizes=\"(max-width: 1015px) 100vw, 1015px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u9875\u9762\u4e3b\u8981\u4ecb\u7ecd\u5c06Nextcloud\u96c6\u6210\u5230IDaaS\u4e2d\u7684\u8fc7\u7a0b\uff0c\u4f7f\u7528\u6237\u53ef\u4ee5\u5728\u7528\u6237\u95e8\u6237\u5355\u70b9\u767b\u5f55Nextcloud\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/posts\/2190"}],"collection":[{"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/comments?post=2190"}],"version-history":[{"count":11,"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/posts\/2190\/revisions"}],"predecessor-version":[{"id":2265,"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/posts\/2190\/revisions\/2265"}],"wp:attachment":[{"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/media?parent=2190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/categories?post=2190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idaas-doc.cloudentify.com\/docs\/wp-json\/wp\/v2\/tags?post=2190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}