SAML to MS Azure does not work with version 5.0.2
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- authentication, security
Hướng nghiên cứu
Bắt đầu tại apps/user_saml/lib/Controller/SAMLController.php quanh dòng 174 và theo dõi các thiết lập được truyền vào thư viện OneLogin SAML, đặc biệt là Settings.php ở dòng 141. So sánh hành vi giữa các phiên bản 5.0.1 và 5.0.2, đồng thời tái hiện đăng nhập SAML với MS Azure. Được coi là hoàn tất khi phiên bản 5.0.2 không còn báo thiếu các thiết lập IdP và đăng nhập thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I can also confirm that the login by SAML to MS Azure does not work with version 5.0.2 (NC = 24.0.2). Here the log output which orrurs when I try it:
{
"reqId": "h9UXc9Ah3BCbjwhP3BE3",
"level": 3,
"time": "2022-06-23T12:13:20+02:00",
"remoteAddr": "192.168.1.1",
"user": "--",
"app": "index",
"method": "GET",
"url": "/apps/user_saml/saml/login?originalUrl=&requesttoken=****token-removed****&idp=2",
"message": "Invalid array settings: idp_entityId_not_found, idp_sso_not_found, idp_cert_or_fingerprint_not_found_and_required",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0",
"version": "24.0.2.1",
"exception": {
"Exception": "OneLogin\\Saml2\\Error",
"Message": "Invalid array settings: idp_entityId_not_found, idp_sso_not_found, idp_cert_or_fingerprint_not_found_and_required",
"Code": 2,
"Trace": [
{
"file": "/var/www/nextcloud/apps/user_saml/3rdparty/vendor/onelogin/php-saml/src/Saml2/Auth.php",
"line": 177,
"function": "__construct",
"class": "OneLogin\\Saml2\\Settings",
"type": "->",
"args": [
[
true,
false,
"https://nextcloud-test.domain.local/apps/user_saml/saml",
[
false,
false,
false,
false,
false,
"And 9 more entries, set log level to debug to see all entries"
],
[
"https://nextcloud-test.domain.local/apps/user_saml/saml/metadata",
[
"https://nextcloud-test.domain.local/apps/user_saml/saml/acs"
],
"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified",
"",
""
],
"And 1 more entries, set log level to debug to see all entries"
]
]
},
{
"file": "/var/www/nextcloud/apps/user_saml/lib/Controller/SAMLController.php",
"line": 174,
"function": "__construct",
"class": "OneLogin\\Saml2\\Auth",
"type": "->",
"args": [
[
true,
false,
"https://nextcloud-test.domain.local/apps/user_saml/saml",
[
false,
false,
false,
false,
false,
"And 9 more entries, set log level to debug to see all entries"
],
[
"https://nextcloud-test.domain.local/apps/user_saml/saml/metadata",
[
"https://nextcloud-test.domain.local/apps/user_saml/saml/acs"
],
"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified",
"",
""
],
"And 1 more entries, set log level to debug to see all entries"
]
]
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 225,
"function": "login",
"class": "OCA\\User_SAML\\Controller\\SAMLController",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 133,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\User_SAML\\Controller\\SAMLController"
},
"login"
]
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 172,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\User_SAML\\Controller\\SAMLController"
},
"login"
]
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 298,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\User_SAML\\Controller\\SAMLController",
"login",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
[
"*** sensitive parameters replaced ***",
"user_saml.SAML.login"
]
]
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 1023,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/user_saml/saml/login"
]
},
{
"file": "/var/www/nextcloud/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/nextcloud/apps/user_saml/3rdparty/vendor/onelogin/php-saml/src/Saml2/Settings.php",
"Line": 141,
"CustomMessage": "--"
}
}
Downgrading to 5.0.1 helps.
Originally posted by @brunt82 in https://github.com/nextcloud/user_saml/issues/630#issuecomment-1164252723
- Ngôn ngữ chính
- PHP
- Star
- 106
- Fork
- 84
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 14
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/user_saml
-
Logout link is empty in environment-variable mode without login form (regression from #1235)Đang mở0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nextcloud/user_saml#1276 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0. Needs triage bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/user_saml
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Codeinwp/themeisle-companion#1014 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
repo:cms
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
craftcms/cms#20596 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Перевод устарел
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
Maintainer thường phản hồi trong vòng 1 ngày