Switching between Forms and Windows Authentication
There are a few changes that need to be made to switch authentication modes.
Change the authentication in IIS. This will be done differently depending on IIS version as well as what Portal Framework version the portal is currently using.
PFW4.9.1 & Prior
IIS6
- Open IIS.
- Click on the website.
- Right click the website and open the Properties.
- View the Directory Security tab & click ‘Edit’ in the ‘Authentication and access control section’
Forms Authentication Setup – the username should be the identity account
Windows Authentication Setup
- Change the authentication in the web.config
- Open the file and ctrl+f for ‘authentication’
- Forms authentication should look like the following
<authentication mode="Forms">
<forms defaultUrl="~/PortalShell.aspx" loginUrl="~/SessionEnded.aspx" slidingExpiration="true" timeout="1440" />
</authentication>
- Windows authentication should look like the following
<authentication mode="Windows">
<forms defaultUrl="~/PortalShell.aspx" loginUrl="~/SessionEnded.aspx" slidingExpiration="true" timeout="1440" />
</authentication>
- Save the file.
- Recycle the Application Pool
Application Pools > Right click the Passageways Application Pool > Select Recycle
IIS7-7.5
- Open IIS.
- Click on the website.
- Go to ‘Authentication’ in the features pane
- Change the Authentication Name Status
- This can be done by right clicking on the Authentication Name and changing the Status
If using Forms Authentication, set up should look like the following:
If using Windows authentication, set should look like the following:
- Recycle the Application Pool
Application Pools > Right click the Passageways Application Pool > Select Recycle
PFW4.10.1 and After
IIS6
- Open IIS.
- Click on the website.
- Right click the website and open the Properties.
- View the Directory Security tab & click ‘Edit’ in the ‘Authentication and access control section’
Forms Authentication Setup (same as before) – the username should be the identity account
Windows Authentication Setup
- Change the authentication in the web.config
- Open the file and ctrl+f for ‘authentication’
- Forms authentication should look like the following
<authentication mode="Forms">
<forms defaultUrl="~/PortalShell.aspx" loginUrl="~/SessionEnded.aspx" slidingExpiration="true" timeout="1440" />
</authentication>
- Windows authentication should look like the following
<authentication mode="Windows">
<forms defaultUrl="~/PortalShell.aspx" loginUrl="~/SessionEnded.aspx" slidingExpiration="true" timeout="1440" />
</authentication>
- Save the file.
- Recycle the Application Pool
Application Pools > Right click the Passageways Application Pool > Select Recycle
IIS7-7.5
- Open IIS.
- Click on the website.
- Go to ‘Authentication’ in the features pane
- Change the Authentication Name Status
- This can be done by right clicking on the Authentication Name and changing the Status
If using Forms Authentication, set up should look like the following (stays the same):
If using Windows authentication, set should look like the following:
- Recycle the Application Pool
Application Pools > Right click the Passageways Application Pool > Select Recycle
Comments
0 comments
Please sign in to leave a comment.