2017-12-29 4 views
0

ADFS에 대한 openid 구성 메타 데이터에 액세스 할 때 반환되는 JSON 문서가 인코딩됨에 따라 모든 "/"문자가 "\"로 이스케이프됩니다. . AzureAD에 대한 메타 데이터에 액세스 할 때이 동작을 보지 못했습니다.ADFS openid-configuration JSON 메타 데이터가 AzureAD와 비교하여 인코딩되었습니다

ConfigurationManager<OpenIdConnectConfiguration> configManager = 
new ConfigurationManager<OpenIdConnectConfiguration>(stsDiscoveryEndpoint); 
OpenIdConnectConfiguration config = configManager.GetConfigurationAsync().Result; 

"발행 회사": "https://login.xxxxxx.com/adfs"

는 URL : https://login.xxxxxx.com/adfs/.well-known/openid-configuration

답변

0

이 켜지고 이것은의 ConfigurationManager를 사용하여 메타 데이터를 가져 오기 위해 시도하는 문제가 발생합니다 이 문제는 JSON 파일에서 이스케이프 처리와 관련이 없습니다. 이 오류는 문서를 가져 오는 비동기 작업 때문에 발생합니다.

오류 : IDX10803 : 'https://login.dometic.com/adfs/.well-known/openid-configuration'에서 구성을 가져올 수 없습니다.

await configManager.GetConfigurationAsync(). 
: 난에

configManager.GetConfigurationAsync().Result 

변경하는 경우

는 오류가 도망 갔어요

관련 문제