Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Direct links to API Center documentation fail with AADSTS50011 redirect URI mismatch

Đang mở
#92 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

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
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure
Lĩnh vực
api, authentication

Hướng nghiên cứu

Tái hiện lỗi bằng URL trực tiếp đến tài liệu API, sau đó so sánh với việc đăng nhập từ gốc của portal. Truy vết chuyển hướng Entra ID và trạng thái xác thực riêng của tab được mô tả trong issue. Được xem là hoàn tất khi các liên kết trực tiếp tải được sau khi xác thực, chuyển hướng sử dụng URI root hoặc callback, và đường dẫn API được yêu cầu được giữ nguyên.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Bug Untriaged

Description

Navigating directly to a specific API's documentation URL fails to load the resource and breaks the Entra ID authentication flow. Users cannot deep-link or share direct API documentation pages with team members.

Reproduction steps

Steps to reproduce the behavior:

  1. Copy a direct link to an API definition: https://.portal..azure-apicenter.ms/apis/
  2. Open the link in an unauthenticated or fresh browser session (or a new tab/window).
  3. Observe the page error: "The specified API does not exist."
  4. Click Sign in.
  5. Observe the Entra ID sign-in failure error: AADSTS50011.# Expected behavior

Actual behavior

  • The page displays "The specified API does not exist." when accessed directly.

  • Attempting to authenticate from the deep link fails with:

  • AADSTS50011: The redirect URI 'https://.portal..azure-apicenter.ms/apis/' specified in the request does not match the redirect URIs configured for the application ''.

Auth state appears isolated to single-tab memory/session storage rather than persisting across tabs via cookies, breaking multi-tab workflows.

Expected behavior

  • Direct links should resolve correctly.

  • If unauthenticated, the portal should initiate the OAuth/Entra ID flow using the standard root redirect URI (e.g., https://.portal..azure-apicenter.ms/ or an auth callback route) and preserve the intended target path via an encoded state parameter or post-login redirect, rather than sending the full API path as the redirect_uri.

Current Workaround

  1. Navigate directly to the portal root: https://.portal..azure-apicenter.ms/
  2. Sign in from the homepage.
  3. Manually search for the target API.
Ngôn ngữ chính
PowerShell
Star
46
Fork
21
Merge trung bình
21 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/api-center

Tất cả issue của Azure/api-center

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.