Auth Token Authorization is getting failed

Hi Martin,

I am new to this web based solutions and gateways. By looking at the tutorials, I am able to create an API, Key, Policies and successfully created a portal with the help of online examples.

Now, I am able to browse the websites I need with the option Open(Keyless). I just tried exploring the next options using different authorizations but couldnt get through. Stuck at Auth Token with the error “Version Information Not found”. Also, the hits which i tried with Keyless Authorization doesnt get displayed in Dashboard.

My ask may be silly, but i want to learn these. Could you please help me with some examples or any kind of docs or external apis? Looking forward to your reply.

Os: Windows
Interface: Tyk Cloud Version
S/w: Curl 7.9.41

Only these are the components have been installed. Is that all or any other components to be installed to get the proper channel.

Would suggest looking at the documentation, this is a very wide ask for a forum :slight_smile:

Hmmm, are you sure you are actually hitting the API endpoints?

Yes I understand but I couldn’t find any practical examples though. Regarding the components installed, are those are enough to carry out the process or am I missing something ? Cloud Version I signed up online and using it.

With cloud you shouldn’t need to install anything unless you are using Tyk Cloud Hybrid.

The tutorial to set up your first API that you can look at (and applies to cloud too, is here for Bearer tokens):

https://tyk.io/docs/tyk-dashboard-v1-0/tutorials/set-up-your-first-api/

Might get you off on the right track.

1 Like

Thanks Martin :slight_smile:

I shall have a look at it and update you with the outcomes.

Hi Martin,

I have tried installing the same in Ubutu and logs seems to be fine after installing.

After the bootstrap script runs, I have got userid and password through which I am not able to login and its asking for License. Top of the page shows unlicensed dashboard.

Not sure what’s the problem in this. Do you think of any confi related issues?

Link I have used: //tyk.io/docs/tyk-on-premises/debian-ubuntu/

Have you got a license and added it?

Do you mean in the config file at the dashboard folder?

Correct me if I am wrong… As discussed before, we dont have any installation for Cloud edition ? Using ubuntu, either we can install Pro or Community right ?

Pro = Dashboard, if you are using the dashboard, then you are using Pro, and Pro requirs a license. Community is headless and is configured with files and the API.

Yes Martin, I need both dashboard and Analytics for my requirement.I am using Pro and just placed order for License with the same link.

Do you have any idea on how much time it will take for getting the license?

Got it just now… Thanks alot Martin… I will be in touch with you if I am stuck anywhere… Kindly help.

After adding the license key, I followed the steps in the link. But the APIs are not getting displayed after it gets created… From the link not from the backend.

Any luck on this Martin. Couldn’t get through this point as none gets displayed in the URL and also while creating keys I am able to give the access rights to the api which I have created, but the same is not getting displayed over there in the API section.

Would there be any particular reason to this?

I’m not sure what you are referring to, so I can’t be of much help without detail.

I am trying to connect to a host before adding the key by running the below command.

curl -H “Authorization: null” http://sample1/test-api/get

But its been stuck and not giving any output as mentioned in the below link. What could be the reason for the same?

https://tyk.io/docs/tyk-api-gateway-v1-9/tutorials/set-up-your-first-api/

Thanks. The issue is now resolved. Problem was with the version of tyk. Once I update the packages to 2.0, it works fine.

Thanks Martin.

1 Like

Hi Martin,

All works fine w.r.t Curl but not sure why the portal is not showing up. Its just not getting loaded.
Authorization: Auth Token.
API: Test - API
Target URL: http://httpbin.org

What could be the issue?

The portal won’t show with curl? It’s a web page hosted by the dashboard so not sure what you are trying to achieve…

Yes you are right. When I am trying with portal option from the dashboard , it’s not loading. Ideally it should rewrite to the target url which we have set in the api . Actually I m expecting whatever happens with curl should do via url too?

Am I right?

I don’t know what the developer portal has to do with a curl request to an API that you are managing, they are two different things:

  • API Test: this is an API you can curl that is managed by your gateway
  • Portal: this is a website you must set up in the dashboard and will appear in a domain that you specify in the dashboard. It will only display data if you have published an API to the catalogue

What are you trying to achieve?