cloud 9 and laravel5.1 not displaying validation error - laravel-5.1

new to laravel and experimenting on an ordering app using cloud9 and laravel5.1 . I was able to create authentication and make the ordering work. but my problem is when I try to login or register with the wrong credentials the error message is not displaying, and sometimes it shows up out of the blue.. does the https or http matters when laravel tries to redirect? you can view the full source code here: https://github.com/2n2n/food4lunch
you can try it by visiting this link: https://food4lunch-a2n2n-2.c9.io/

Instead of simply using redirect(), try using:
redirect()->intended($this->redirectPath(), 302, [], true);
to force Laravel to send as HTTPS. if it works then the issue is on redirect.

Related

Angular 8 and asp.net mvc routing is not working

I am new to the Angular 8 with asp.net mvc.
Facing issue with routing,
(1) Application home url: http://localhost/dashboard
it has all details with some model numbers in bootstrap table, when click on model number with group name it will route to https://localhost/dashboard details?Groupname=xyz&ModelNo=2300 this works fine.
(2) At this stage everything is good but when refresh the browser error is getting displaying
as,
This localhost page can't be found
No webpage was found for the web address https://localhost/dashboard details?Groupname=xyz&ModelNo=2300
HTTP ERROR 404
What I tried
(1) added location strategy and hash strategy- didn't worked
when added this on refresh IIS windows was getting displayed.
(2) used url rewrite same error displayed HTTP ERROR 404.
Need assistance to solve this problem
Got the solution by spending almost 3 days, need to change base href,
Got the hint from
https://github.com/angular/angular/issues/11046.

Authorized JavaScript origins not working localhost

Authorized JavaScript origins not working while Create client ID. i am trying to integrate google login from in my html page .. my localhost path is http://localhost/charts/ .. while adding http://localhost/charts/ to Authorized JavaScript origins files textbox showing error like this:Origin URIs must not contain a path or end with "/": http://localhost/charts/..
if any one can help me... here i am sending error screenshot
Try this will work http://localhost
hope this will helps you.
Please try removing /charts from the URL
http://localhost
I had a similar issue when trying to follow up a quickstart. I added http://localhost:8000 to Authorized Javascript origins, and then I went right after to load my browser - it didn't work. However it worked after 5 minutes or so. I guess you have to give it some time for the changes on the dashboard to take effect.
Some tips that might help:
Check if you are using a port and include it on the URIs.
Check your browser console for possible error information.
In my case I used python dev local server (http.server) to serve my app.

Doorkeeper client server

On railscast epidose "#353 OAuth with Doorkeeper", it has no client application set up. How to set up client application server to avoid the This webpage is not available on browser, instead return something.
I've already tried the following found on this link, but it still doesn't work for me.
Thanks!
Refer this repository by RyanB.
353-oauth-with-doorkeeper/oauth_client/

Microsoft Sign-In for ASP.NET MVC 5 web role

I have created Azure cloud service and in this cloud service I have a web role serving as a MVC web application. I followed this tutorial to use Microsoft account as the external authentication. When I try with the localhost it works perfectly. However, after I deploy the cloud service, I changed the redirect URL to the site url which is http://109e199cf5864b50ab25ac839f8c151d.cloudapp.net/. But this doesn't work. I can reach the authorization part, but after I login with the Microsoft account I got Error Message: An error occurred while processing your request. What should I do to make it work?
UPDATE:
I tried to remove the [Authorize] tag in my controller so that I don't need to login to see the view. After I deployed again, I got the Error Message directly!!
I didn't login at all! I checked the code this Error Message is actually the Error view from the template in the Shared folder. But there is no change of the code to return me this Error view! What I am missing with the deployment here?
In the comments of the blog post you referenced, the author (Ben Day) said there was an update to the redirect URI.
With the latest version of the ASP.NET Identity code, the redirect uri is a different value. So on account.live.com, the redirect url value for your app is now going to be “http://myapp-url/signin-microsoft”.
You may want to check that you have the correct values here.

Google Auth does not work in template asp.net mvc project

So I have VS 2013 update 4 and I created ASP.NET MVC application from template and configured Google authentication by using UseGoogleAuthentication method and passing client ID and secret. But for some reason once I click 'Accept' button google page I'm redirected to the page I expect but there is an error 500 in the browser console and nothing on the page itself.
I read a lot of articles and enabled all required APIs in Google Developer console. But nothing seems to work for me.
Also I have another custom authentication middleware that worked just fine before and stopped working once I enabled Google. I use nuget package version 3.0.1.
If I disable my custom auth middleware Google still does not work.
Please advise.
OK, here's why should probably stay with default values. So default redirect URL is /signin-google built-in to Google middleware. And because my URL is /Account/ExternalLoginCallback I thought it was a good idea to set it when configuring GoogleOAuth2AuthenticationOptions.
Once removed CallbackPath = new PathString("Account/ExternalLoginCallback") from configuration it just worked.

Resources