Laravel basic auth redirects to HTTPS route after login - laravel

I added laravel’s built-in authentication to an existing project. This is a local project without certificates.
After login I was redirected to the dashboard page but chrome showed an “ERR_SSL_PROTOCOL_ERROR” message. I looked into it for a couple of hours and I found that the dashboard's page was opening as HTTPS, when I changed the url to HTTP It showed the dashboard page. For some reason the auth’s routes are being redirected to the site as HTTPS.
I'm new to laravel and I don't understand what’s happening.

I did some reverse engineering and found that in my AppServiceProvider were the configurations that redirected my routes to HTTPS.
Load Blade assets with https in Laravel

Related

Django sign up with facebook return an error

*as Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and sub-domains of your app to the App Domains field in your app settings.**
im using http://127.0.0.1:8000
so here is how i have set my facebook
domain App domains is 127.0.0.1
Then the url to the sign up page on django is
http://127.0.0.1:8000/user
first you need to install django ssl server then dont access with 127.0.0.1 but use localhost even though it will redirect you to 127.0.0.1 just use localhost:8000
Then on login to admin and on sites rename the domain name to localhost:8000
go to facebook development and add the following
domain name = localhost
go to add platform on bottom of the page and add website then fill this way
http://localhost:8000
HOW TO INSTALL DJANGO SSLSERVER
https://github.com/teddziuba/django-sslserver
HOPE IT WORKS😖😖

Laravel - Login redirect problem for subdomain

i have a site
http://mysite.test/login
now if i will attempt
http://mysite.test/admin
it will redirect me to
http://mysite.test/login
this is very fine. but now i have subdomain for same site.
http://company.mysite.test/
and this URL serves as login page as well. but when i hit
http://company.mysite.test/admin
it is redirecting me to
http://company.mysite.test/login
which is is entirely wrong. it must be redirected to
http://company.mysite.test/
for subdomain. what should i do?
Change you login route to Route::get('/');
you'll also need to make changes to your Authenticate middleware that manages redirects to login page.

Laravel Socialite facebook login: Can't Load URL: The domain of this URL isn't included in the app's domains

I know this question has asked before many times. I've tried every one but no luck,
I my situation,
Website url: https://mywebsite.com/qa
redirect url: https://mywebsite.com/qa/login/facebook/callback
I have added my domain to app domain, redirect url to valid oAuth redirect url. But same error.
I even created a new app.
However facebook authentication is working fine with https://mywebsite.com/ domain. It's is a different app and a website.
The issue happens only with the site in the sub folder.
Any help ?
Thank you.
EDIT
Screenshot
Can you check if "Valid OAuth Redirect URIs" in Facebook app "Facebook login" setting is properly defined like shown in screenshot attached ?
Also have you checked if your app has strict mode enabled ?
This error occurs if your OAuth setting is not correct.
I would suggest to check all settings of your app thoroughly.

Facebook Socialite, Login not working as expected (redirect to website fails) - Laravel 5.6

Facebook Registration works fine and users are redirected to the website but when users try to log-in using their FB account then it does not seem to work, that is, users are not redirected to the website instead loads facebook.com .
I checked the url before facebook asks user to enter fb password and it seems like permission denied is shown as below, but not sure what does that mean?:
callback%3Ferror%3Daccess_denied%26error_code%3D200%26error_description%3DPermissions%2Berror%26error_reason%3Duser_denied
I have added https which I thought could be the cause of error but then so many websites still use fb login successfully even when they don't have SSL (https). Also, SSL (https) does not seem to resolve the issue.
I am not sure how to debug this issue because not sure what is causing this, Laravel Socialite is straight-forward. Other Socialite Login I tried for example: Google+ seems to work just fine.
Any help is appreciated.
If You would like to see any part of the code, let me know in the comment.

magento homepage can be accessed both by http and https

I'm trying to setup Let's encrypt SSL for a Magento website at
https://turbofun.no/
It shows SSL correctly. However, the problem is if i access it using
http://turbofun.no/
It shows normal page without https. I think it should automatically redirect viewer to https because it is homepage.
I read some topics about adding rewrite rules to redirect all http to https but i just want to use https on homepage, checkoutpage, customer login page.
Do you know what i missed in configuration? Thank you

Resources