Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Public API to extract TenantId out of Authority URL #3429

Closed
rabenshm opened this issue Jun 28, 2022 · 2 comments · Fixed by #3505
Closed

[Feature Request] Public API to extract TenantId out of Authority URL #3429

rabenshm opened this issue Jun 28, 2022 · 2 comments · Fixed by #3505

Comments

@rabenshm
Copy link

Is your feature request related to a problem? Please describe.
As we have been requested to use only .WithTenantId on the request level instead of .WithAuthority we would like to have public API common code to get the TenantId out of the Authority Url

Describe the solution you'd like
As described

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@bgavrilMS
Copy link
Member

Probably a static stand-alone method. ClientApplicationBase.GetTenantId(Uri authority) or an extension method on string / Uri.

@pmaytak
Copy link
Contributor

pmaytak commented Aug 4, 2022

Released in 4.46.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
3 participants