SharePoint 2016: Forms Based Authentication – Part 4
In the previous article SharePoint 2016: Forms Based Authentication – Part 3 of this series on implementing FBA with SharePoint we saw the execution of Step 5 for the process.
In this last article of this series we are going to see the execution of Step 6 & 7 and for the sake of quick review am putting up the process diagram again in here.
Process Diagram
https://howtodowithsharepoint.files.wordpress.com/2016/07/1.png?w=800
Step 6: Add External Users
- Go to IIS
- Select the Web Application on the left navigation pane
- Click “.Net Users” on the right section
https://howtodowithsharepoint.files.wordpress.com/2016/07/2.png?w=800
Sometimes you might encounter the following error, this happens because the Default Provider is not set at the time you are trying to Add Users
https://howtodowithsharepoint.files.wordpress.com/2016/07/3.png?w=800
In order to set the default provider, you need to click the “Set Default Provider” link under Actions Pane on the right
https://howtodowithsharepoint.files.wordpress.com/2016/07/4.png?w=800
Select the membership provider as we configured in the earlier steps
https://howtodowithsharepoint.files.wordpress.com/2016/07/5.png?w=800
Now you can add the users.
Click the “Add” Link under the Actions Pane
https://howtodowithsharepoint.files.wordpress.com/2016/07/6.png?w=800
Adding user information as needed
https://howtodowithsharepoint.files.wordpress.com/2016/07/7.png?w=800
Click “Next”
https://howtodowithsharepoint.files.wordpress.com/2016/07/8.png?w=800
Click “Finish”
And we can see the first FBA user in our system
https://howtodowithsharepoint.files.wordpress.com/2016/07/9.png?w=800
Step 7: Test Forms Based Authentication
Browse the Web Application Via browser
We can see the Selection Window for the choosing the preferred Authentication mechanism
https://howtodowithsharepoint.files.wordpress.com/2016/07/10.png?w=800
Let’s choose Windows Authentication first since we did not give explicit permissions to the FBA User yet, that is why the system won’t allow the user to login to the SharePoint Site.
https://howtodowithsharepoint.files.wordpress.com/2016/07/11.png?w=800
And being an authenticated Windows User we are good to go and able to see the Web Application Home Page
Then click “Site Settings”
https://howtodowithsharepoint.files.wordpress.com/2016/07/12.png?w=800
Click “People and groups”
https://howtodowithsharepoint.files.wordpress.com/2016/07/13.png?w=800
Click “Add Users” to add a new user to the desired security group.
In here we are adding a new user to the Members Groups.
https://howtodowithsharepoint.files.wordpress.com/2016/07/14.png?w=800
Type the name of the FBA user that you have added
In here the FBA User name is “FBAUser”
https://howtodowithsharepoint.files.wordpress.com/2016/07/15.png?w=800
Share the site with FBA user
https://howtodowithsharepoint.files.wordpress.com/2016/07/16.png?w=800
We can see the FBA User added to the Group
https://howtodowithsharepoint.files.wordpress.com/2016/07/17.png?w=800
Now when we are going to browse the Web Application and go with Forms Based Authentication
Choosing this setting will present default login page as we selected in the earlier steps while enabling Web Application with FBA.
Enter FBA user name & password
https://howtodowithsharepoint.files.wordpress.com/2016/07/18.png?w=800
And since we granted the permission to this FBA User in the SharePoint Site, SharePoint allows you to login to the site using FBA user credentials.
https://howtodowithsharepoint.files.wordpress.com/2016/07/19.png?w=800
That is all for this series.
Hope you find it helpful.