CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Problem trying to login via RESP (API)
Pages: 1 [2]

Author Topic: Problem trying to login via RESP (API)  (Read 2391 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Problem trying to login via RESP (API)
January 15, 2013, 03:04:29 am
Quote from: Erik Hommel on January 15, 2013, 02:36:28 am
Xavier, I agree with the bug! I will raise an issue :-) (and assign it to......... ;D)

See, the patch welcome joke is not as funny when you are on the other side of it ;)

Quote from: Erik Hommel on January 15, 2013, 02:36:28 am
The question that is still open to me is that I am not clear about the login function. You mentioned it is no longer required and that still confuses me. Or maybe better said: that would be really undesirable behaviour...

I'm not clear as how to use it. The session is a pita to deal with, keep expiring on you when you have long running inactive users...

Quote from: Erik Hommel on January 15, 2013, 02:36:28 am

I think you are saying that you can use any api_key with the REST as long as the api_key exists somewhere in the contact database, am I right? So I could create a user called John Doe with api_key 'testJD' . Anyone accessing that Civi install with the REST (entity=Contact, action=Get, array('version'=>3,key='<sitekey>',api_key='testJD') will get data, even if they never used a login and are not John Doe. Is that correct?

It must exist at least one(one different user per rest consumer is my recommendation).

You must use all the time key & api_key for each rest request.


Quote from: Erik Hommel on January 15, 2013, 02:36:28 am
Second question: I DO still need the site_key too, right?

indeed, it must exist and it's unique and you need to use it in conjonction with api_key.

Am I clearer now?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Problem trying to login via RESP (API)
January 15, 2013, 03:08:01 am
I think you are clearer now, but I will ask you to check the developer guide section once I have updated it and then we will find out :-) :P
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Problem trying to login via RESP (API)

This forum was archived on 2017-11-26.