SharePoint Automatic Signin issueshttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues2018-04-25T20:55:19Zhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/1Access Denied after implementing the solution2018-04-25T20:55:19ZLaurent SittlerAccess Denied after implementing the solutionMy steps to reproduce:
- Installing the solution
- Register the cmdlet
- changing the login page via CA
I browsed to our environment and couldn't login
=> Did an IISRESET, closed and reopend my browser with no luck
=> revert the loginpage back to the default (access denied not solved)
=> uninstall solution (access denied not solved).
after a while when I reinstalled the solution and configured the ip ranges i'll get the following error in the eventviewer:
The strange thing is that after a second attempt to choose for the default login page, I was been able to login back into the site (okay, via the old way)
```
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 31/08/2010 10:44:39
Event time (UTC): 31/08/2010 8:44:39
Event ID: 0dc11755fcc248d885e5db74785f5b7a
Event sequence: 59
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1036207141/ROOT-1-129277177904787389
Trust level: WSS_Minimal
Application Virtual Path: /
Application Path: C:\\inetpub\\wwwroot\\wss\\VirtualDirectories\\7300\\
Machine name: SRV-SP-01
Process information:
Process ID: 10204
Process name: w3wp.exe
Account name: DOMAIN\\*****
Exception information:
Exception type: KeyNotFoundException
Exception message: The given key was not present in the dictionary.
Request information:
Request URL: http://sharepoint/_login/autosignin.aspx?ReturnUrl=An unhandled exception has occurred.f_layoutsAn unhandled exception has occurred.fAuthenticate.aspx31/08/2010 10:44:39fSource31/08/2010 10:44:39d%252F&Source=%2F
Request path: /_login/autosignin.aspx
User host address: 10.0.0.91
User:
Is authenticated: False
Authentication Type:
Thread account name: DOMAIN\\*****
Thread information:
Thread ID: 9
Thread account name: DOMAIN\\*****
Is impersonating: False
Stack trace: at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at OrbitOne.SharePoint.Claims.SignIn.AutoSignin.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
```My steps to reproduce:
- Installing the solution
- Register the cmdlet
- changing the login page via CA
I browsed to our environment and couldn't login
=> Did an IISRESET, closed and reopend my browser with no luck
=> revert the loginpage back to the default (access denied not solved)
=> uninstall solution (access denied not solved).
after a while when I reinstalled the solution and configured the ip ranges i'll get the following error in the eventviewer:
The strange thing is that after a second attempt to choose for the default login page, I was been able to login back into the site (okay, via the old way)
```
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 31/08/2010 10:44:39
Event time (UTC): 31/08/2010 8:44:39
Event ID: 0dc11755fcc248d885e5db74785f5b7a
Event sequence: 59
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1036207141/ROOT-1-129277177904787389
Trust level: WSS_Minimal
Application Virtual Path: /
Application Path: C:\\inetpub\\wwwroot\\wss\\VirtualDirectories\\7300\\
Machine name: SRV-SP-01
Process information:
Process ID: 10204
Process name: w3wp.exe
Account name: DOMAIN\\*****
Exception information:
Exception type: KeyNotFoundException
Exception message: The given key was not present in the dictionary.
Request information:
Request URL: http://sharepoint/_login/autosignin.aspx?ReturnUrl=An unhandled exception has occurred.f_layoutsAn unhandled exception has occurred.fAuthenticate.aspx31/08/2010 10:44:39fSource31/08/2010 10:44:39d%252F&Source=%2F
Request path: /_login/autosignin.aspx
User host address: 10.0.0.91
User:
Is authenticated: False
Authentication Type:
Thread account name: DOMAIN\\*****
Thread information:
Thread ID: 9
Thread account name: DOMAIN\\*****
Is impersonating: False
Stack trace: at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at OrbitOne.SharePoint.Claims.SignIn.AutoSignin.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
```https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/2Transparent Login not working2018-04-25T20:57:25ZLaurent SittlerTransparent Login not workingAfter following all the deployment steps, the transparent login serves the forms based authentication in Intranet zone. Is there a way we can track the IP or any other mechanism to verify whether it is configured correctly.After following all the deployment steps, the transparent login serves the forms based authentication in Intranet zone. Is there a way we can track the IP or any other mechanism to verify whether it is configured correctly.https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/3Keynotfoundexception2018-04-25T21:00:44ZLaurent SittlerKeynotfoundexceptionHi,
I am unable to get to the signin page itself after deploying the solution and doing required configuration.
It throws keynotfoundexception.
I am using windows and ADFS authentication in default zone and my site is SSL site.
Please find screenshot attached of the error.
Waiting for response.
![keynotfound](/uploads/3dad34619170db59dcf81561cb58db3b/keynotfound.PNG)Hi,
I am unable to get to the signin page itself after deploying the solution and doing required configuration.
It throws keynotfoundexception.
I am using windows and ADFS authentication in default zone and my site is SSL site.
Please find screenshot attached of the error.
Waiting for response.
![keynotfound](/uploads/3dad34619170db59dcf81561cb58db3b/keynotfound.PNG)https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/4Not working for ipv6 addresses2018-04-25T21:01:58ZLaurent SittlerNot working for ipv6 addressesI downloaded the latest source code and deployed. This code is not working for IPv6 addresses. Is there a way that we can make this one working for IPv6 addresses.
I looked at the source code and this looking for only IPv4 addresses.
Thanks,I downloaded the latest source code and deployed. This code is not working for IPv6 addresses. Is there a way that we can make this one working for IPv6 addresses.
I looked at the source code and this looking for only IPv4 addresses.
Thanks,https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/5ClaimsSignInAdmin Not Installed Error2018-04-25T21:03:02ZLaurent SittlerClaimsSignInAdmin Not Installed ErrorHi, While I try to Activate the solution I got the error...
The Windows PowerShell snap-in 'ClaimsSignInAdmin' is not installed on this machine.
I work around for this but I am unable to get solution, Same is working on another machine.
Thanks in AdvanceHi, While I try to Activate the solution I got the error...
The Windows PowerShell snap-in 'ClaimsSignInAdmin' is not installed on this machine.
I work around for this but I am unable to get solution, Same is working on another machine.
Thanks in Advancehttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/6Autosingin.aspx page returns 404 error2018-04-25T21:04:11ZLaurent SittlerAutosingin.aspx page returns 404 errorUsers are not transparently redirected to the propper login page and instead there is a 404 error.
Also, the documentation says to specify a custom login page using "_login/autosignin.aspx" but i believe the "_login/" portion needs to be omitted.Users are not transparently redirected to the propper login page and instead there is a 404 error.
Also, the documentation says to specify a custom login page using "_login/autosignin.aspx" but i believe the "_login/" portion needs to be omitted.https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/7blank site /_login/autosignin.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%...2018-04-25T21:06:18ZLaurent Sittlerblank site /_login/autosignin.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252FSeiten%252Fdefault%252Easpx&Source=%2FSeiten%2Fdefault%2EaspxThe Windows Authentication redirect works not. It shows as below:
Without logging anyting..
![orbiteone](/uploads/4654ea7d14315aac2a97b86c5c056743/orbiteone.png)The Windows Authentication redirect works not. It shows as below:
Without logging anyting..
![orbiteone](/uploads/4654ea7d14315aac2a97b86c5c056743/orbiteone.png)https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/8Default site mapping does not work2018-04-25T21:07:57ZLaurent SittlerDefault site mapping does not workAccording to the documentation, the default site mapping is entered like this:
```
To set the default login page (the page that will be used if no IP match) use default as key value:
$config.SingInPageMappings.Add("default","<path>")
$config.Update()
```
This is not working, something is appending an additional "_login/" to the URL and external users are being redirected to https://sharepoint.website.com/_login/_login/default.aspx. I have tried various combinations of mappings "default.aspx, /default.aspx, ./default.aspx) and then external users just get a page can not be displayed error.According to the documentation, the default site mapping is entered like this:
```
To set the default login page (the page that will be used if no IP match) use default as key value:
$config.SingInPageMappings.Add("default","<path>")
$config.Update()
```
This is not working, something is appending an additional "_login/" to the URL and external users are being redirected to https://sharepoint.website.com/_login/_login/default.aspx. I have tried various combinations of mappings "default.aspx, /default.aspx, ./default.aspx) and then external users just get a page can not be displayed error.https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/9Client tooling2018-05-03T14:33:40ZLaurent SittlerClient toolingWhen we configured both windows and claims authentication we could not sign in to SharePoint from a client application like Word or Excel.
When we opend Word and want to save the document to SharePoint we get the login page of the claim provider. When we login to the claim provider we get a access denied message of SharePoint. Using the browser it all worked well.
After some investegation we found that the class autosignin inherits from Page. We have changed the inheritance to 'IdentityModelSignInPageBase'. This solved our problem with client tooling
[BAM.SP2013.AutoSignIn.rar](/uploads/212915263edf66e54dead2dfcf7f4ee7/BAM.SP2013.AutoSignIn.rar)When we configured both windows and claims authentication we could not sign in to SharePoint from a client application like Word or Excel.
When we opend Word and want to save the document to SharePoint we get the login page of the claim provider. When we login to the claim provider we get a access denied message of SharePoint. Using the browser it all worked well.
After some investegation we found that the class autosignin inherits from Page. We have changed the inheritance to 'IdentityModelSignInPageBase'. This solved our problem with client tooling
[BAM.SP2013.AutoSignIn.rar](/uploads/212915263edf66e54dead2dfcf7f4ee7/BAM.SP2013.AutoSignIn.rar)https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/10sharepoint 2013 compatible2018-04-25T21:20:05ZLaurent Sittlersharepoint 2013 compatiblePlease find the SharePoint 2013 compatible here: https://github.com/vairam-svs/spautosignin/pulse
Also, this has some improvements where the configuration uses CIDR network configuration.Please find the SharePoint 2013 compatible here: https://github.com/vairam-svs/spautosignin/pulse
Also, this has some improvements where the configuration uses CIDR network configuration.https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/11Site collection Host header2018-04-25T21:22:55ZLaurent SittlerSite collection Host headerWhen we are using an web application without host headers and use site collection host headers we get an Object reference not set to an instance of an object.
After looking at the code of the file 'autosignin.aspx.cs' there are 2 rows to get the zone of the current url. but this one is empty.
So instead of using these 2 rows
```
SPAlternateUrl u = app.AlternateUrls[Request.Url];
SPUrlZone zone = u.UrlZone;
```
We can get the zone from the SPContext.Current.Site.Zone. so the 2 rows above can be replaces by the following row
```
SPUrlZone zone = SPContext.Current.Site.Zone;
```When we are using an web application without host headers and use site collection host headers we get an Object reference not set to an instance of an object.
After looking at the code of the file 'autosignin.aspx.cs' there are 2 rows to get the zone of the current url. but this one is empty.
So instead of using these 2 rows
```
SPAlternateUrl u = app.AlternateUrls[Request.Url];
SPUrlZone zone = u.UrlZone;
```
We can get the zone from the SPContext.Current.Site.Zone. so the 2 rows above can be replaces by the following row
```
SPUrlZone zone = SPContext.Current.Site.Zone;
```https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/12Add-PSSnapin ClaimsSignInAdmin2018-04-25T21:26:28ZLaurent SittlerAdd-PSSnapin ClaimsSignInAdminCould you help, I keep getting this error "The Windows PowerShell snap-in 'Claims.SignIn' is not installed on this computer" while running config.PS file.
I have also tried to register it with " installutil:C:\Windows\Microsoft.NET\Framework\v4.0.30319>InstallUtil.exe" Registration is successful but still cant load snapin.
Anybody encountered this? thanks for help in advance.Could you help, I keep getting this error "The Windows PowerShell snap-in 'Claims.SignIn' is not installed on this computer" while running config.PS file.
I have also tried to register it with " installutil:C:\Windows\Microsoft.NET\Framework\v4.0.30319>InstallUtil.exe" Registration is successful but still cant load snapin.
Anybody encountered this? thanks for help in advance.https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/13ClaimsSignIn module not installed error.2018-04-25T21:27:58ZLaurent SittlerClaimsSignIn module not installed error."The Windows PowerShell snap-in 'ClaimsSignIn' is not installed on this computer" error is appearing while doing the configuration.
Any help is much appreciated."The Windows PowerShell snap-in 'ClaimsSignIn' is not installed on this computer" error is appearing while doing the configuration.
Any help is much appreciated.https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/14Issue with Apps Management2018-04-25T21:29:43ZLaurent SittlerIssue with Apps ManagementI had followed the instructions for my SharePoint 2013 environment as per https://sharepointobservations.wordpress.com/2015/02/24/sharepoint-2013-configure-automatic-sign-in-with-mixed-authentication/#comment-1612
This solution works great is resolving issues with Search and OWA documents, whereas it has to use NT credentials to crawl the SharePoint content, however, this solution breaks the ability to use SharePoint Apps.
When attempting to render a SharePoint App, the following exception is noted:
```
[NullReferenceException: Object reference not set to an instance of an object.]
OrbitOne.SharePoint.Claims.SignIn.AutoSignin.OnLoad(EventArgs e) +249\n System.Web.UI.Control.LoadRecursive() +94
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2951
```I had followed the instructions for my SharePoint 2013 environment as per https://sharepointobservations.wordpress.com/2015/02/24/sharepoint-2013-configure-automatic-sign-in-with-mixed-authentication/#comment-1612
This solution works great is resolving issues with Search and OWA documents, whereas it has to use NT credentials to crawl the SharePoint content, however, this solution breaks the ability to use SharePoint Apps.
When attempting to render a SharePoint App, the following exception is noted:
```
[NullReferenceException: Object reference not set to an instance of an object.]
OrbitOne.SharePoint.Claims.SignIn.AutoSignin.OnLoad(EventArgs e) +249\n System.Web.UI.Control.LoadRecursive() +94
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2951
```https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/15Issue with Open Document Library in Explorer View2018-04-25T21:31:06ZLaurent SittlerIssue with Open Document Library in Explorer ViewWhen I have installed this solution, we can't open a DL in a Explorer View. why?When I have installed this solution, we can't open a DL in a Explorer View. why?https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/16First time install2018-05-03T12:12:33ZLaurent SittlerFirst time installhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/17IP2018-05-03T12:16:47ZLaurent SittlerIPhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/18Wildcards2018-05-03T12:29:13ZLaurent SittlerWildcardshttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/19F5 Load Balancers2018-05-03T12:31:29ZLaurent SittlerF5 Load Balancershttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/20Login form as Home page2018-05-03T12:34:46ZLaurent SittlerLogin form as Home pagehttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/21Provide Link On FBA Form For Intranet Users Logging In From Outside Of Subnet2018-05-03T12:40:46ZLaurent SittlerProvide Link On FBA Form For Intranet Users Logging In From Outside Of Subnethttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/22Unable to login2018-05-03T13:04:03ZLaurent SittlerUnable to loginhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/23Object reference not set to an instance of an object.2018-05-03T13:13:55ZLaurent SittlerObject reference not set to an instance of an object.https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/24404 Not Found2018-05-03T13:14:29ZLaurent Sittler404 Not Foundhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/25setup on an https site2018-05-03T13:17:11ZLaurent Sittlersetup on an https sitehttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/26What to do with the code2018-05-03T13:17:35ZLaurent SittlerWhat to do with the codehttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/27Force non-WIA to ADFS or external Trust2018-05-03T13:22:21ZLaurent SittlerForce non-WIA to ADFS or external Trusthttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/28Exception with Alternate Mappings2018-05-03T13:28:32ZLaurent SittlerException with Alternate Mappingshttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/29URL for static windows authentication2018-05-03T13:31:04ZLaurent SittlerURL for static windows authenticationhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/30IP for local Sharepoint Server Using Windows Auth2018-05-03T13:38:02ZLaurent SittlerIP for local Sharepoint Server Using Windows Authhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/31Sign in as a different user restricted to FBA login2018-05-03T13:39:41ZLaurent SittlerSign in as a different user restricted to FBA loginhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/32404 Error2018-05-03T13:41:13ZLaurent Sittler404 Errorhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/33Question on setting the default path2018-05-03T13:44:14ZLaurent SittlerQuestion on setting the default pathhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/34WildCard mapping for provider2018-05-03T13:50:19ZLaurent SittlerWildCard mapping for providerhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/35Mapping logon to browser type rather than IP2018-05-03T13:50:50ZLaurent SittlerMapping logon to browser type rather than IPhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/36set default to use Windows Auth2018-05-03T13:54:19ZLaurent Sittlerset default to use Windows Authhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/37Cannot logout after loggedin2018-05-03T13:54:53ZLaurent SittlerCannot logout after loggedinhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/38Blank page during redirect to autosignin.aspx2018-05-03T14:19:38ZLaurent SittlerBlank page during redirect to autosignin.aspxhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/39Redirect Forms users to custom login page2018-05-03T14:25:18ZLaurent SittlerRedirect Forms users to custom login pagehttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/40automatic signin with document library2018-05-03T14:28:31ZLaurent Sittlerautomatic signin with document libraryhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/41Compatibility with SharePoint 20132018-05-03T14:31:28ZLaurent SittlerCompatibility with SharePoint 2013https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/42SharePoint 20132018-05-03T14:33:40ZLaurent SittlerSharePoint 2013https://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/43Problem with default site mapping2018-05-03T14:47:15ZLaurent SittlerProblem with default site mappinghttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/44Strange problem with multiple web applications2018-05-03T14:50:29ZLaurent SittlerStrange problem with multiple web applicationshttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/45Will this work for W.A & Anonymous Access2018-05-03T14:51:04ZLaurent SittlerWill this work for W.A & Anonymous Accesshttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/46sharepoint 2013 compatible fork2018-05-03T14:51:43ZLaurent Sittlersharepoint 2013 compatible forkhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/47ADFS Timeout issues with Auto sign-in page2018-05-03T14:52:26ZLaurent SittlerADFS Timeout issues with Auto sign-in pagehttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/48How to configure an exclusion2018-05-03T14:53:12ZLaurent SittlerHow to configure an exclusionhttps://gitlab.lsonline.fr/CodePlex/spautomaticsignin/-/issues/49please delete2018-05-03T14:54:17ZLaurent Sittlerplease delete