-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!The bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedThis issue has been fixedExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-spafeature-templates
Milestone
Description
With 6/29 preview 6 builds (see https://github.com/aspnet/AspNetCore-ManualTests/issues/719) for exact builds used
React templates with No https selected have issues:
-
No auth, with no https is completely broken, the project does not seem to get created at all, no files are dropped, no error is raised, it just silently fails with an empty soln created (@phenning what's the best way for me to see the errors in this situation from VS/project creation?)
-
Individual auth with no https, creates the project, builds, npm install/test work, and launches but there are failures at runtime:
Unhandled Rejection (Error): Could not load settings for 'ReactP6IndAuth'
AuthorizeService.ensureUserManagerInitialized
C:/Users/haok/source/repos/ReactP6IndAuth/ReactP6IndAuth/ClientApp/src/components/api-authorization/AuthorizeService.js:184
181 |
182 | let response = await fetch(ApplicationPaths.ApiAuthorizationClientConfigurationUrl);
183 | if (!response.ok) {
> 184 | throw new Error(`Could not load settings for '${ApplicationName}'`);
| ^ 185 | }
186 |
187 | let settings = await response.json();
View compiled
async AuthorizeService.getUser
C:/Users/haok/source/repos/ReactP6IndAuth/ReactP6IndAuth/ClientApp/src/components/api-authorization/AuthorizeService.js:24
21 | return this._user.profile;
22 | }
23 |
> 24 | await this.ensureUserManagerInitialized();
| ^ 25 | const user = await this.userManager.getUser();
26 | return user && user.profile;
27 | }
View compiled
async AuthorizeService.isAuthenticated
C:/Users/haok/source/repos/ReactP6IndAuth/ReactP6IndAuth/ClientApp/src/components/api-authorization/AuthorizeService.js:15
12 | _popUpDisabled = true;
13 |
14 | async isAuthenticated() {
> 15 | const user = await this.getUser();
| ^ 16 | return !!user;
17 | }
18 |
View compiled
async LoginMenu.populateState
C:/Users/haok/source/repos/ReactP6IndAuth/ReactP6IndAuth/ClientApp/src/components/api-authorization/LoginMenu.js:27
24 | }
25 |
26 | async populateState() {
> 27 | const [isAuthenticated, user] = await Promise.all([authService.isAuthenticated(), authService.getUser()])
| ^ 28 | this.setState({
29 | isAuthenticated,
30 | userName: user && user.name
Metadata
Metadata
Assignees
Labels
✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!The bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedThis issue has been fixedExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.This is an issue in a component not contained in this repository. It is open for tracking purposes.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-spafeature-templates