You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not carry authority port to the default instance discovery host #1052
When an AAD authority uses a non-default port and its host is not in MSAL4J's trusted host set, instance discovery is redirected to the default trusted host. The authority's port is currently copied to that discovery endpoint.
For example, https://custom.example:8443/tenant produces an instance discovery endpoint at https://login.microsoftonline.com:8443/common/discovery/instance.
Expected behavior
Use the authority's port only when instance discovery targets the authority host itself. When discovery uses the default trusted host, use its default HTTPS port.
The original authority and its port should remain unchanged for authorization and token requests.
Activity