openidconnect-rs
openidconnect-rs copied to clipboard
Parsing issue with parsing service_documentation
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:
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