These credentials do not authorize access - here-api

I signed up in here.com developer program and created a project on 21st November 2017. I have got my APP_ID and APP_CODE from the developer console for that project and I am using those in the request below.
https://wse.cit.api.here.com/2/findsequence.json?start=50.0715%2C8.2434&destination1=50.1073%2C8.6647&destination2=49.8728%2C8.6326&destination3=50.0505%2C8.5698&destination4=50.1218%2C8.9298&end=50.0021%2C8.259&improveFor=time&mode=fastest%3Bcar&app_id=APP_ID&app_code=APP_CODE
When I run this request I keep getting the following message:
{"faultCode":"s6a22042f-3092-40a9-94c4-1de81b80eea4","responseCode": "403","message":"These credentials do not authorize access. Please contact your customer representative or submit a request here https://developer.here.com/contact-us to upgrade your account. You can also get valid credentials by registering for a free trial license on https://developer.here.com."}
In the developer console it states it might take 1 hour for the APP_ID and APP_CODE to be completely registered and it's already 2 days and I am still getting that message.
Could you please help what I need to do to make this work?
Thank you very much in advance.

Please use the Production environment, where the credentials are valid and would be working. Production environment will not contain the "cit" in the url.
https://wse.api.here.com/2/findsequence.json?start=50.0715%2C8.2434&destination1=50.1073%2C8.6647&destination2=49.8728%2C8.6326&destination3=50.0505%2C8.5698&destination4=50.1218%2C8.9298&end=50.0021%2C8.259&improveFor=time&mode=fastest%3Bcar&app_id=App_Id&app_code=App_Code

Related

OAuth2 do not get the access token

I configured an Authorization Dynamic value. All is correct but when I clicked the "Get the access token" button.
The access token is not copied in the token input
enter image description here
And all requests with the authentication are failed.
But if I copied manually the access token, all requests works.
What is the problem ?
I reinstalled the application without success
We are aware of some issues with the OAuth2 integration in Paw 3.2 which we aim to fix in the following weeks. Try to install the previous release http://paw.cloud/download/3.1.10 which should help here.
Please accept our apologies for any inconvenience caused!
The Paw Team

Getting a "Request Rejected" response when trying to access some admin pages

I have logged into my Drupal 7 site as an admin and I was trying to put the site into maintenance mode but I get this response when ever I try:
"The requested URL was rejected. Please consult with your administrator. Your support ID is: 1272530.."
I have checked the permissions and it seems like my admin accounts has all the permissions granted. What could be the issue
Try this method. Hope you will get result or at least you get some idea.
Option 1: Clear your cache and browser then try to hit the url.
Option 2: Try from different network.
Option 3: Try cloning your site locally and check whether it's working in local system. I think firewall may be the issue in your web site server.

ASP.NET web api login with facebook stopped working

I am developing an ASP.net web app which uses Facebook authentication and up until August or September the Facebook login feature was working correctly.
I took a break from developing the app for a month or so, and recently resumed development. I tried it again recently to login to the app with Facebook, and I get this error message:
"URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs."
I haven't changed any code from my app since September or August, so something must have changed in the way Facebook processes its logins.
I have made changes to the Facebook app settings to try and fix this but nothing works.
My current settings look like this:
Client OAuth Login: Yes
Web OAuth Login: Yes
All the other settings under the Facebook Login product are set to No.
My current redirect URIs look like this:
https://myapp.azurewebsites.net/api/ExternalLogin/Facebook
https://myapp.azurewebsites.net/api/ExternalLogin/FacebookCallback
https://myapp.azurewebsites.net/api/signin-facebook
https://myapp.azurewebsites.net/api/ExternalLogin/Facebook/signin-facebook
Originally I only had the "/FacebookCallback" URI. I only added the others following suggestions from other questions here on Stack-overflow, but I am still getting the same error message.
Can anyone help me figure out what am I missing?
Please make sure:
Your App IDs and Secret Keys are correct. The App IDs and Secret Keys are all different for each app. These often cause the problem.
Your App domain set to:
myapp.azurewebsites.net
Your site URL set to:
http://myapp.azurewebsites.net/
You have set URI properly like:
http://myapp.azurewebsites.net/facebook/login/callback/
Update:
Make sure you have placed / at the end of your all URIs.
https://myapp.azurewebsites.net/api/ExternalLogin/Facebook/
https://myapp.azurewebsites.net/api/ExternalLogin/FacebookCallback/
https://myapp.azurewebsites.net/api/signin-facebook/
https://myapp.azurewebsites.net/api/ExternalLogin/Facebook/signin-facebook/
OR
localhost:44396/api/ExternalLogin/FacebookCallback/

"An error occurred while processing your request." with facebook authentication

I have a fresh asp.net application which has facebook authentication button on it. When I do the authentication on localhost it works flawlessly but when I publish and try to do it on work4me.azurewebsites.net it comes up with the error:
An error occurred while processing your request.
I have set the appID, app secret, domain, correct URL, and http://work4me.azurewebsites.net/signin-facebookas the oauth redirect URI. But it seems like it is hanging for a bit saying "waiting for domain name" before giving me the error.
If I try to enable facebook authentication on the azure portal it works however after logging in the application crashes and gives me the error "Server Error in '/' Application.".
I have followed the guide to enable facebook authentication on azures website but with no luck.
What am I doing wrong here?
EDIT:
It seems to get past that point now, and the error is with the redirect URI. However I have followed this example and use the URL https://work4me.azurewebsites.net/.auth/login/facebook/callback as the guide says but still it wont work, giving me the error that the URI is blocked.
It's been a few months since I first tried this, but I was able to get it working both locally and on Azure, by following the online instructions.
Did you enable User Secrets during development to access your credentials from Application Secrets? If so, you need to create environment variables in your Azure Web App to mirror these values under Application Settings.
Let me know if you still have any issues, then I can look into it some more.
All the best! :)

using JMeter to test an ASP application

I am using JMeter to test an ASP application.
I can correctly log in with a name and password, but when I send a request to the next page, I get a response that I am not logged in correctly.
It seems the application does not understand that I am the same person that just logged in.
The application does not seem to use variables like EVENTSTATE. It also does not use cookies to save session information.
Doe anybody know what I’m doing wrong?
add a Cookie Manager to your test Plan.
See :
http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Cookie_Manager

Resources