File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 2
2
"AzureAd" : {
3
3
"ClientId" : " 63e6d091-0e6d-4c8b-be67-d405e02ae3d8" ,
4
4
"Scopes" : " access_as_user" ,
5
- "CallbackPath" : " /signin-oidc" ,
6
5
"Authority" : " https://TrialTenantJmprieur.ciamlogin.com/"
7
6
},
8
7
"Logging" : {
9
8
"LogLevel" : {
10
- "Default" : " Information" ,
9
+ "Default" : " Information" ,
11
10
"Microsoft.AspNetCore" : " Warning"
12
11
}
13
12
},
14
13
"AllowedHosts" : " *"
15
- }
14
+ }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public async Task OnGet()
31
31
else
32
32
{
33
33
var error = await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
34
- throw new HttpRequestException ( $ "Invalid status code in the HttpResponseMessage: { response . StatusCode } : { error } ") ;
34
+ ViewData [ "ApiResult" ] = $ "Invalid status code in the HttpResponseMessage: { response . StatusCode } : { error } ";
35
35
}
36
36
}
37
37
}
Original file line number Diff line number Diff line change 5
5
"ClientCertificates" : [],
6
6
"CallbackPath" : " /signin-oidc" ,
7
7
"Authority" : " https://TrialTenantJmprieur.ciamlogin.com/" ,
8
+ "Prompt" : " login"
8
9
},
9
10
"DownstreamApi" : {
10
11
"BaseUrl" : " https://localhost:7082/weatherforecast" ,
11
- "Scopes" : " api://63e6d091-0e6d-4c8b-be67-d405e02ae3d8/access_as_user "
12
+ "Scopes" : [ " api://63e6d091-0e6d-4c8b-be67-d405e02ae3d8/.default " ]
12
13
},
13
14
"Logging" : {
14
15
"LogLevel" : {
15
- "Default" : " Information" ,
16
- "Microsoft.AspNetCore" : " Warning"
16
+ "Default" : " Information" ,
17
+ "Microsoft.AspNetCore" : " Warning" ,
18
+ "Microsoft.Identity" : " Information"
17
19
}
18
20
},
19
21
"AllowedHosts" : " *"
You can’t perform that action at this time.
0 commit comments