I'd like to add basic authentication to my website. I followed the instructions in the MSDN article on Configure Basic Authentication (IIS 7)
To use the UI
- Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
- In Features View, double-click Authentication.
- On the Authentication page, select Basic Authentication.
- In the Actions pane, click Enable to use Basic authentication with the default settings.
- Optionally, in the Actions pane, click Edit to type the default domain and realm.
- In the Edit Basic Authentication Settings dialog box, in the Default domain text box, type a default domain or leave it blank. Users who do not provide a domain when they log on to your site are authenticated against this domain.
- In the Realm text box, type a realm or leave it blank. In general, you can use the same value for the realm name as you used for the default domain.
- Important
If you enter the default domain name in the Realm text box, your internal Microsoft Windows domain name may be exposed to external users during the user name and password challenge.- Click OK to close the Edit Basic Authentication Settings dialog box.
Here's what I've done so far:
Now I need to create a user account for the basic authentication.
Does anyone know how to create users in IIS Manager?
Scroll to the Security section in the Home pane, and then double-click Authentication. In the Authentication pane, select Basic Authentication, and then, in the Actions pane, click Enable.
To configure your web service client to use HTTP basic authentication, supply the HttpTransportProperties. Authenticator object in your client Java code, and specify a user name and a password. Set this configuration as an option of the web service client.
Right click on Computer and choose "Manage" (or go to Control Panel > Administrative Tools > Computer Management) and under "Local Users and Groups" you can add a new user. Then, give that user permission to read the directory where the site is hosted.
Note: After creating the user, be sure to edit the user and remove all roles.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With