question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Need different domains from metadata response

See original GitHub issue

Due to some unfortunate infrastructure we have the server hosted on one domain and the Cypress browser accessing it from another domain.

Dotnet allows me to specify a URL to get the metadata but that response needs to contain url that the browser can use.

http://auth0sim:5070/.well-known/openid-configuration

response:

{
issuer: "http://localhost:5070/.well-known/openid-configuration",
authorization_endpoint: "http://localhost:5070/.well-known/openid-configuration/authorize",
...

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mrsladekcommented, Nov 25, 2022

@ybelMekk The problem with Host header is that it is not longer supported to change it since JDK 12 (https://bugs.openjdk.org/browse/JDK-8213696).

Would it be possible to fix host of the metadata (or only the issuer) to a particular value with a config parameter? I think it would be necessary in this kind of scenarios.

0reactions
ybelMekkcommented, Nov 28, 2022

@ybelMekk The problem with Host header is that it is not longer supported to change it since JDK 12 (https://bugs.openjdk.org/browse/JDK-8213696).

Would it be possible to fix host of the metadata (or only the issuer) to a particular value with a config parameter? I think it would be necessary in this kind of scenarios.

It sounds useful yes, but the container, when requesting metadata e.g. a call to curl http://oauth2:8080/default/.well-known/openid-configuration gives:

{
  "issuer" : "http://oauth2:8080/default",
  "authorization_endpoint" : "http://oauth2:8080/default/authorize",
  "end_session_endpoint" : "http://oauth2:8080/default/endsession",
  "token_endpoint" : "http://oauth2:8080/default/token",
  "userinfo_endpoint" : "http://oauth2:8080/default/userinfo",
  "jwks_uri" : "http://oauth2:8080/default/jwks",
  "introspection_endpoint" : "http://oauth2:8080/default/introspect",
  "response_types_supported" : [ "query", "fragment", "form_post" ],
  "subject_types_supported" : [ "public" ],
  "id_token_signing_alg_values_supported" : [ "ES256", "ES384", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512" ]
}

then you call the jwks endpoint: curl http://oauth2:8080/default/jwks you will get some data, but if you say change the well known metadata issuer to: yolo

you’ll get what you want

{
  "issuer" : "http://yolo:8080/default"
......

but a curl to “http://yolo:8080/default” will give you curl: (6) Could not resolve host: yolo

So host of container and returned metadata must match, but we could set the issuer and metadata issuer to SERVER_HOSTNAME value as specified.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a FAQ bot for multiple categories with Azure Bot Service
In this tutorial, you learn how to: Create a project and tag question answer pairs into distinct categories with metadata; Create a separate...
Read more >
How can we deploy custom My Domain name via metadata API?
1 Answer 1 · But I can go into Setup > My Domains and change to a new domain. · @VarunC Oh. ·...
Read more >
Questions Metadata Can Answer - TDAN.com
– Do the attributes have restrictive domains? – What are the allowable values for the attributes? – What is the relationship between the...
Read more >
Meta Info Question - Qualtrics
The meta info question does not require any special editing or preparation. Simply add it to any page of your survey that every...
Read more >
Leveraging Structured Metadata for Improving Question ...
We show that leveraging metadata information from web pages can improve the performance of models for answer passage selection/re- ranking.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found