openidconnect-rs icon indicating copy to clipboard operation
openidconnect-rs copied to clipboard

Parsing issue with parsing service_documentation

Open tanekim88 opened this issue 3 years ago • 0 comments

In discovery.rs, I am seeing the following code, which does not allow service_documentation to be a non-empty and non_url at the same time:

image

https://618898.app.netsuite.com/.well-known/openid-configuration has a field "service_documenation" with a value of "TBD" (To be determined). It's not a full url, so it throws a parsing error when the following code is run.

let provider_metadata = CoreProviderMetadata::discover(
    &IssuerUrl::new("https://618898.app.netsuite.com".to_string())?,
    http_client,
)?;

=>

Error: Failed to parse server response

Caused by: 0: service_documentation: relative URL without a base at line 17 column 33 1: relative URL without a base at line 17 column 33

tanekim88 avatar Apr 04 '22 09:04 tanekim88