Replies: 1 comment
-
|
Hello @bchang11 https://developer.mozilla.org/en-US/docs/Web/API/URL Does that answer your question? I hope so because I can't quite grasp what the point of it is in the first place. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @panva,
I've been successfully using
openid-clientwith a custom fetch implementation for a while. Recently, I started working with an Identity Provider whose discovery metadata includes the default HTTPS port (:443) in its endpoint URLs.I observed that the
urlstring received by the function assigned to config[openidClient.customFetch] has the :443 port removed, compared to the URL listed in the IDP's discovery metadata.Example Metadata token_endpoint:
https://idp.example.com:443/oauth2/tokenExample url received by custom fetch:
https://idp.example.com/oauth2/tokenMy understanding is that this is likely standard URL normalization, as
:443is the default port for https.Could you confirm if this normalization (removing the default :443 port from URLs before passing them to the custom fetch function) is the expected behavior in
openid-client? I primarily want to ensure my understanding is correct.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions