0

First - coming back to this project - never saw this issue before so asking if anybody else has - when I set the project down it was working perfectly. Additionally - several other projects on the same server using the same setup are working flawlessly.

So problem is this. I login, the login is valid (I'm using DirectoryTree/Laravel to authenticate against LDAP, and have logs showing authentication was successful. All other projects are also using DirectoryTree/Laravel - and since the login is processing I cant see this being the root cause).

I'm immediately redirected back to the / (correct behavior) - but the login form returns instead of loading the vue components when auth:check = true.

I can hard refresh the page - and suddenly I'm logged in. (Must clear cache hard refresh at the browser) same action whether on Firefox, Chrome, Edge. The log in is processed - but its like the session isnt being updated.

I'm using the normal login form with the ui:auth setup.

Anybody ever seen this?

7
  • 1
    When the / page loads, is ti https or http? Session cookies are generally only sent via secure connections so loading an http page will not send those cookies to the server. Commented Aug 21, 2020 at 19:38
  • The page is on https (self signed cert as in development server) Once again never saw this issue before. The login goes via https - the return is https. Soon as I do a hard refresh with clear cache - the session updates and I'm logged in. If I redirect to say /home instead of back to the "/" - logged in. But returning to "/" from "/home" without hard refresh - same thing. have to hard refresh again Commented Aug 21, 2020 at 19:53
  • You may be on to something tho - I disabled the redirect on the http site so I could test if this was in someway related. Logged in via the http site and everything worked. Commented Aug 21, 2020 at 19:56
  • Interesting, it might help to show your routes and the redirection bits of your login controller Commented Aug 21, 2020 at 20:01
  • Will update shortly - but it may require some explaining - removed the forcedHttps from my AppServiceProvider. On http - works perfectly. On https - is where I'm failing. Commented Aug 21, 2020 at 20:03

1 Answer 1

1

Turns out the issue was a web service worker I had forgotten I had on the HTTPS site. Best guess is its not recognizing that the site is online and is reloading information from the cache as it is a PWA application meant to be used on the internal network of the company. Once I removed the service worker - all was good. Never saw this action from it before so will investigate that further, but I have at least found the main error.

Closing this question and shout out to @Wesley Smith for getting my brain working.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.