Skip to content

[Crosspost] Have a calender to be subscribable without authentication #98

Description

@1Luc1

Hi,

this is basically a cross-post, since I didn't got any answer there :( .
Maybe you ( @tchapi ) some answer?

Now I'm asking, if there is the possibility that a calender can be accessed and subscribed without login in into the system? Kind of a public calender without login credentials. Within Mozilla Thunderbird there is the option to subscribe to a calender without credentials.

Thanks,
Luc

Activity

  1. changed the title [-][CrossPost] Have a calender to be subscribable without authentication[/-] [+][Crosspost] Have a calender to be subscribable without authentication[/+] on Jun 13, 2023
  2. tchapi commented on Jun 13, 2023

    @tchapi
    Owner

    Hi
    There's no possibility at the moment in Davis but I'm happy to accept a PR if ever the feature is present in sabre/dav. I guess it looks like it is if I believe sabre-io/dav#820

  3. added
    questionA question about Davis and how it works
    on Jun 13, 2023
  4. 1Luc1 commented on Jun 13, 2023

    @1Luc1
    ContributorAuthor

    Thanks for the information.
    So where does the {DAV:}unauthorized belongs to. Is this within a principal within the database?
    I'm kind of lost with sabre-io/dav :D .

  5. tchapi commented on Jun 13, 2023

    @tchapi
    Owner

    There's more information in the release notes: https://sabre.io/dav/upgrade/3.1-to-3.2/

  6. 1Luc1 commented on Jul 30, 2023

    @1Luc1
    ContributorAuthor

    I did some diggin - and believe me, I'm kind of lost within the sabre/dav legacy code :(.
    Anyway I found a place, where adding the following line to SharedCalendar class, method getACL() :

     $acl[] = [
        'privilege' => '{DAV:}read',
        'principal' => '{DAV:}unauthenticated',
        'protected' => false,
    ];

    ... kind of does what I'm looking for. This change will made Shared calender be subscribe able without loggin in, e.g. from thunderbird.
    This will affect all calendars within the installation; this is of course not wanted, so I'm looking for a way, to bind this logic to only selected calendars. @tchapi do you may have some idea, how to achieve this?

  7. tchapi commented on Aug 15, 2023

    @tchapi
    Owner

    Hi again @1Luc1 and thanks for exploring a solution. I'm sorry my latency is high these days (AFK mostly). Will have a look at what you shared and come back to you

  8. tchapi commented on Aug 15, 2023

    @tchapi
    Owner

    I have come up with a solution that should work: see #105

    ➡️ Would you be able to test, and add your feedback in the draft PR directly, if possible?

  9. linked a pull request that will close this issueFeature: allow public calendars #105on Aug 15, 2023
  10. self-assigned this
    on Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionA question about Davis and how it works

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions