What is the REST API to get session token in CR2.7.11 FE2.7.11

I used following REST API to get the session token:

http://host:port/rest-service/auth-v1/login?userName=<value>&password=<password>

It gives me the following error:

The requested resource cannot be found.
Remote API is disabled
You are running release CR2.7.11 FE2.7.11 (20120227023831 2012-02-27), please report your release number when reporting bugs.

Can anyone help me to sort this out.

1 answer

0 vote
Thomas Deiler Community Champion Jan 30, 2018

Dear @Hijas Ahmed,

If you plan to use the API, you will not need any session specific parts. REST as the name says is 'stateless'. So no login is required. Just use basic authentication.

In the upper message the REST interface is disabled. If you like to use it, ask your admin to enable it.

Hope I helped you - if not dare to ask on.

Thomas

Thomas Deiler Community Champion Feb 01, 2018

Dear @Hijas Ahmed,

you didn't came back - have you meanwhile solved you issue? Do you need more information?

So  long

Thomas

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Color tables for a shiny Confluence page

...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...

184 views 9 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you