Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Enable authentication support in New Project Creation Wizard for AspNetCore projects #9583

Merged
merged 6 commits into from
Jan 23, 2020

Conversation

iantoalms
Copy link
Contributor

@iantoalms iantoalms commented Jan 22, 2020

Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1035347
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/820015
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/669931
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/669926
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/669911

User Stories:

  • 1035347 Angular template: Add Web Individual Auth (in-app) support
  • 820015 Web template: Add Individual Auth (in-app) support
  • 669931 Blazor server template: Add Individual Auth (in-app) support
  • 669926 React.js template: Add Individual Auth (in-app) support
  • 669911 MVC template: Add Individual Auth (in-app) support

Feature details:

Added support to detect if an AspDotNet Core project template has support for authentication options. We currently only support the Individual auth (local in-app) option. The user is presented with the option of configuring authentication during project creation (See screenshot below)

Screenshot:
image

Testing:

  • Tested all templates above
  • Ensured auth UI did not appear with templates that do not support it - e.g. DotNetCore console

Copy link
Member

@mrward mrward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other changes look good to me.

@iantoalms iantoalms requested review from nosami and rodrmoya January 22, 2020 17:26
@iantoalms iantoalms marked this pull request as ready for review January 22, 2020 17:26
@GouriKumari GouriKumari self-requested a review January 22, 2020 18:06
@GouriKumari
Copy link
Contributor

@iantoalms @rodrmoya : https://microsoft.sharepoint.com/:w:/t/vsformac/EVTNIrVjheRAu4-MXSAnMTABYH5BN56911eMadhvBDSQZw?e=XF1fqC , this include the validation details.
The behaviour looks similar in Visual Studio For Windows project. I validated with a single and multiple .NETCore installation.

@GouriKumari GouriKumari removed their request for review January 23, 2020 07:51
leftBorderEventBox.Name = "leftBorderEventBox";
mainHBox.Add (leftBorderEventBox);

var w1 = (Box.BoxChild)mainHBox [leftBorderEventBox];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of doing this, better to just call mainHBox.PackStart (or PackEnd) which has optional parameters for all Expand

configurationTopEventBox.Name = "configurationTopEventBox";
configurationVBox.Add (configurationTopEventBox);

var w2 = (Box.BoxChild)configurationVBox [configurationTopEventBox];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto here, just use PackStart instead of .Add and all this code

configurationTableEventBox.Add (configurationTable);
configurationVBox.Add (configurationTableEventBox);

var w7 = (Box.BoxChild)configurationVBox [configurationTableEventBox];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

targetFrameworkComboBox.Name = "targetFrameworkComboBox";
configurationTable.Add (targetFrameworkComboBox);

var w3 = (Table.TableChild)configurationTable [targetFrameworkComboBox];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and for Table's, just use Attach instead of Add, which has optional parameters for all the properties being set below

- Fix up formatting
- Move from IList to IReadOnlyList where appropriate
Fix issue with Web API template where NoAuth is only supported option
@iantoalms iantoalms force-pushed the iantoal/pr-Enable-Auth-For-AspDotNetCore branch from e6e1057 to 44fce79 Compare January 23, 2020 17:11
@rodrmoya rodrmoya merged commit 6d95d7e into master Jan 23, 2020
@rodrmoya rodrmoya deleted the iantoal/pr-Enable-Auth-For-AspDotNetCore branch January 23, 2020 22:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants