google connect error - http-status-code-404

I am trying to login using google account connection..
but it show me an error
Forbidden
You don't have permission to access /market/modules/connect/easyauth.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at dkakeen.com Port 80
I contacted the developer and he said :
Your hosting probably blocks certain strings in urls, this is why you
get the Forbidden error. You will probably see more information about
the error in the error log in your hosting account. You could also ask
your hosting support if they have such security measures to block
parts of urls, and if they can disable them for you. This is the full
url that the script is trying to access and it cannot:
http://dkakeen.com/market/modules/connect/easyauth.php?auth=google&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fud&openid.response_nonce=2012-10-10T12%3A44%3A29ZJuJ_ahE5fLQx5Q&openid.return_to=http%3A%2F%2Fdkakeen.com%2Fmarket%2Fmodules%2Fconnect%2Feasyauth.php%3Fauth%3Dgoogle&openid.assoc_handle=AMlYA9Vntq_WQ9WEb85GI5Z32JS4E47Z6sRbimCf503Eht-w7zDq_wTZ&openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle%2Cns.ext1%2Cext1.mode%2Cext1.type.namePerson_first%2Cext1.value.namePerson_first%2Cext1.type.contact_email%2Cext1.value.contact_email%2Cext1.type.namePerson_last%2Cext1.value.namePerson_last&openid.sig=qVXb27ds2obrWeehvGRgUaZYCKM%3D&openid.identity=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawn507OyS3bO50BXsj02tgccdznijvVpyHY&openid.claimed_id=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawn507OyS3bO50BXsj02tgccdznij
vVpyHY&openid.ns.ext1=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&openid.ext1.mode=fetch_response&openid.ext1.type.namePerson_first=http%3A%2F%2Faxschema.org%2FnamePerson%2Ffirst&openid.ext1.value.namePerson_first=Classifieds&openid.ext1.type.contact_email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.ext1.value.contact_email=classifiedsaddict%40gmail.com&openid.ext1.type.namePerson_last=http%3A%2F%2Faxschema.org%2FnamePerson%2Flast&openid.ext1.value.namePerson_last=Addict&openid.ns.ext2=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fui%2F1.0&openid.ext2.mode=popup
How I fix it?

Related

Unable to create to obtain OpenId Configuration

I am using OpenIdConnect for Authentication with Azure AD. The application is hosted on IIS. I got below exception few days back:
IDX10803: Unable to create to obtain configuration from: 'https://login.microsoftonline.com/common/.well-known/openid-configuration'.
Stack Trace is: at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.d__3.MoveNext()
After 30 to 40 mins the application automatically started working normally. I just want to know the possible reasons for above exception. Is it a network issue or any specific reason. Thanks.
Well, as the error says it was unable to get the config from: https://login.microsoftonline.com/common/.well-known/openid-configuration.
This is most likely a network issue, or a problem with Azure AD.
It could also happen if you used an invalid tenant id, but this is not the case here since you seem to have used "common" which is valid for multi-tenant apps.

403 Forbidden message on File upload Asp.net mvc

I am getting error on test and development server for uploading file with azure blob storage.IT is uploading locally without any problem.We are using Nuget for File handling. On debugging we are getting error on container.CreateIfNotExist()
Could anybody help me solving the error.
Thanks in advance!
Based on your description, I assumed that you are using the azure storage client library WindowsAzure.Storage for uploading files to your blob storage.
On debugging we are getting error on container.CreateIfNotExist()
If you construct the CloudStorageAccount with the AccountName and AccountKey, please make sure your AccountKey is correct, and you could login into azure portal and check with it. If you construct the CloudStorageAccount via the account-level SAS token, please make sure the SAS token is valid and it contains the related permissions. Moreover, you could re-generate your account key or new SAS token to narrow this issue. Also, you could leverage fiddler to capture the network traces when executing the operations to narrow this issue.
Additionally, you need to check your server time. As Authentication for the Azure Storage Services states as follows:
The storage services ensure that a request is no older than 15 minutes by the time it reaches the service. This guards against certain security attacks, including replay attacks. When this check fails, the server returns response code 403 (Forbidden).
Also, you could Enabling Storage Logging and Accessing Log Data to retrieve the detailed error message.
Problem was Microsoft.ApplicationInsights 2.4.0.
Solved by downgrading to 2.3.0.
It is really strange but below links really helped me out to solve the issue
Azure Storage Emulator 403 Forbidden
Azure CloudBlobContainer.CreateIfNotExists() throws Forbidden (403) on Local Development
Thanks!

Getting http error 500 access denied from web api

Background: I am working on a product which is built using AngularJS in the front-end, and Microsoft Web Api in the back-end. The website is hosted on a Windows Server 2012 machine running IIS. We are using Windows authentication to connect to the machine.
The problem: Calling various API methods work flawlessly for me and the majority of users. But for some of the users, they cant perform certain API calls. Most of the endpoints work and return valid data, but a few methods never even gets reached.
This is the error in the iislog: 2016-05-26 12:25:23 xx.xx.xxx.xx POST /api/controller/method - 80 domain\user xx.xx.x.xx Mozilla/5.0+(compatible;+MSIE+10.0;+Windows+NT+6.1;+WOW64;+Trident/6.0) http://xxxxxx.com/#/Pagename 500 0 0 514
In the console in google chrome it says: Error: Access denied.
I have set the api to log all exceptions to a database, and no error is shown. So my theory is that the api doesnt even get reached when trying to perform these specific http methods.
I have tried searching for answers, but without any luck. Does anyone have any idea?
I finally found a solution to my problem, the exception being thrown was a DbEntityValidationException. It was thrown because some of the users names were too long to be inserted into the database table. It was not catched and properly displayed by my own general exception handling. I had to follow this guide to get the proper exception logged:
https://stackoverflow.com/a/6258174/3592773
Thanks for all the help and I hope this might help someone else in the future.

Why is the Google App Engine SDK for Windows flagged as a security risk by Google?

I'm using app engine for windows and when I try to deploy the app to the cloud, I'm asked for a username and password. When I enter the username and password, I get the following error:
Password for xxxxx#xxxxx.xxx: Invalid username or password.
2014-11-06 18:48:41,628 ERROR appcfg.py:2417 An error occurred processing file '': HTTP Error 401: > > > Unauthorized. Aborting.
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
2014-11-06 18:48:41 (Process exited with code 1)
Then, I got an email from Google stating, that an attempt was made to login my account and it was blocked. If it wasn't me, take the following steps. But, if it was me:
If this was you
You can switch to an app made by Google such as Gmail to access your account (recommended) or > change your settings at https://www.google.com/settings/security/lesssecureapps so that your >account is no longer protected by modern security standards.
Any ideas? I'd hate to lower my security standards. Is this some sort of bug?
Use OAuth2 rather than a username and password to authenticate when uploading your app.
Looks like you are hitting the same issue as this guy.
As I told him there:
Go here under Account permissions -> Access for less secure apps -> Settings make sure its set to enabled.
Otherwise you will have to use the console.
You might be accessing google servers via some proxy. And google being a LOCATION geek, over-intelligently blocks you. Try authenticating it once, and it should not be a problem from then on, provided proxy or IP addresses does not change frequently. NOTE: i might be completely wrong as well.

Server Error in appspot.com application

Running my application on local with dev_appserver for finding event list from Google calendar and it works fine.
when I deployed through app-engine (deployment done successful) and when I run the file it gives me below error
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
Google lot about this error still unable to find solution for the same
my app.yaml file structure.
- url: /calendar
script: webserverflow12.py
When I run this appspot.com/calendar. It is giving me mentioned error.
Any idea what changes need to do to run my application on live?
I feel that you didn't changed your client id and client secret which u registered for appspot.com domain when deploying to appengine server. So you are getting this error.
Check your application logs from your GAE admin page.
Hopefully you'll find some info there to help debug.

Resources