Title: NationalClouds are wrongly prefixed · Issue #917 · microsoftgraph/msgraph-sdk-python-core · GitHub
Open Graph Title: NationalClouds are wrongly prefixed · Issue #917 · microsoftgraph/msgraph-sdk-python-core
X Title: NationalClouds are wrongly prefixed · Issue #917 · microsoftgraph/msgraph-sdk-python-core
Description: Describe the bug NationalClouds is defined in msgraph-sdk-python-core/src/msgraph_core/_enums.py Lines 33 to 43 in e54022a class NationalClouds(str, Enum): """Enumerated list of supported sovereign clouds""" China = 'https://microsoftgra...
Open Graph Description: Describe the bug NationalClouds is defined in msgraph-sdk-python-core/src/msgraph_core/_enums.py Lines 33 to 43 in e54022a class NationalClouds(str, Enum): """Enumerated list of supported sovereign...
X Description: Describe the bug NationalClouds is defined in msgraph-sdk-python-core/src/msgraph_core/_enums.py Lines 33 to 43 in e54022a class NationalClouds(str, Enum): """Enumerated list of supp...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-python-core/issues/917
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NationalClouds are wrongly prefixed","articleBody":"### Describe the bug\n\n`NationalClouds` is defined in https://github.com/microsoftgraph/msgraph-sdk-python-core/blob/e54022acf0b0779ad471d324dae460175408d2c3/src/msgraph_core/_enums.py#L33-L43 where all values are prefixed by `https`,\n\nhowever, since we pass them as allowed hosts to the `AzureIdentityAuthenticationProvider` by default in https://github.com/microsoftgraph/msgraph-sdk-python-core/blob/e54022acf0b0779ad471d324dae460175408d2c3/src/msgraph_core/authentication/azure_identity_authentication_provider.py#L22\n\nthey are fed to the `AllowedHostsValidator` which in https://github.com/microsoft/kiota-python/blob/b23edcbf268efdb81d14ef59cecc6c9565288248/packages/abstractions/kiota_abstractions/authentication/allowed_hosts_validator.py#L20 raises an exception if they are prefixed.\n\n### Expected behavior\n\nThe validator should either strip the urls or the enum should be updated.\n\n### How to reproduce\n\nInstantiate an `AzureIdentityAuthenticationProvider` with default allowed hosts.\n\n### SDK Version\n\n1.3.3\n\n### Latest version known to work for scenario above?\n\n_No response_\n\n### Known Workarounds\n\nPass allowed_hosts manually.\n\n### Debug output\n\n_No response_\n\n### Configuration\n\n_No response_\n\n### Other information\n\n_No response_","author":{"url":"https://github.com/Acurisu","@type":"Person","name":"Acurisu"},"datePublished":"2025-05-13T20:10:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/917/msgraph-sdk-python-core/issues/917"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4d75fe72-463a-3005-0976-f6ad0297abda |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE5A:557D6:9FD529:D4C2B1:6969C3EC |
| html-safe-nonce | 959506ac655090d791d6de33352f2f6dd77bcf4f60bc9495df1aa8a978d8e33c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTVBOjU1N0Q2OjlGRDUyOTpENEMyQjE6Njk2OUMzRUMiLCJ2aXNpdG9yX2lkIjoiMTgyNjk4NzMxNDYyNTc1ODE4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9eb7224881cc0d280c961377860a222e7aacb04ade21235550c175f31d907826 |
| hovercard-subject-tag | issue:3061118561 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-python-core/917/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2c47a4b94c86df3ed8c90886f103ce9dcaba6a64e1cad670ef796391c8676386/microsoftgraph/msgraph-sdk-python-core/issues/917 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2c47a4b94c86df3ed8c90886f103ce9dcaba6a64e1cad670ef796391c8676386/microsoftgraph/msgraph-sdk-python-core/issues/917 |
| og:image:alt | Describe the bug NationalClouds is defined in msgraph-sdk-python-core/src/msgraph_core/_enums.py Lines 33 to 43 in e54022a class NationalClouds(str, Enum): """Enumerated list of supported sovereign... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Acurisu |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-python-core git https://github.com/microsoftgraph/msgraph-sdk-python-core.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 242847794 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-python-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 242847794 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-python-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width