Active
Project:
iCal feed parser
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2009 at 10:37 UTC
Updated:
22 Mar 2009 at 00:58 UTC
I am trying to set up a feedapi_mapper from a civiEvent ical feed. It works OK on other ical feeds but the one that I am trying to access is not available to anonymous users. Is there any way to pass through a username and password as part of the feed request item?
In this case the ICS is actually on the same site as the mapper as this round-a-bout way of getting civiEvent events is one of the methods currently being discussed on the civiCRM forums (the other method is reliant on http://drupal.org/node/385886)
Comments
Comment #1
ekes commentedSorry but I'm assuming your using parser_ical here to collect the feed? So it's a parser_ical issue.
Is the site using basic authentication: browser produces it's own standard box that you have to type in your log in and password. In which case it's possible - but not written into the module yet. Or is it CiviCRM producing the login password in the page - in which case it's not going to be possible I don't think (unless anyone can think of a solution).
You could override the _parser_ical_download function to read a local file if it's on the same server. Guess this could be a feature request too.
Comment #2
eileenmcnaughton commentedThanks for the reply - sorry if I posted it in the wrong place - I haven't quite figured out how to use the Drupal site. The forums don't really seem to cover the modules. With civiCRM you normally raise an issue in the forums and log it as a bug/feature request depending on the response but I'm not sure how to raise a combination of 'I need advice' along with 'it would be really good if your module did this'
Yes, I'm using ical parser. The permissions are administered at the Drupal level so you need to be logged into Drupal to view the ical feed.
I'm looking at two different organisation's requirements for this and one of the organisations uses OGCalendar which seems to require the event calendar which seems to require a date field which is not exposed through the normal 'manage content types' and 'map content types' screens
Comment #3
ekes commentedThe problem with collecting feeds from a site that requires a log in like that is there isn't an automated, or standardised, way of logging in, that I know of. As they are based on sessions, if these persist, the best I could think of to start working round it is to capture a session and reuse it in the parser request. But that's not going to happen out-of-the-box.
It's probably going to be easier for you to get a copy of this iCal feed written to disk somewhere on the shared machine that can't be seen by the public and read into Drupal from there. If it really needs to be private in the first place of course.
Comment #4
eileenmcnaughton commentedOK - in this case it's on the same machine. It's just that the only way currently working to get civiCRM events into an event calendar is using the ical feed processing.
There is work elsewhere on improving the view method so that might be a better focus.
One thing with the ical parser that I was wondering about - is there anyway to map the date to the date field used by the events module (and it's associated calendar). Ogcalendar seems to require this sort of date field to be populated but it isn't exposed like a normal field
Comment #5
eileenmcnaughton commentedThe ical feed isn't a file per se though - just a php page