mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
77 stars 45 forks source link

is there a configuration option not to have to sign on with an email address #47

Closed f1-outsourcing closed 3 years ago

f1-outsourcing commented 3 years ago

I am not sure if this caldav url is forced by standards, but I would like to use normal user accounts. Would this be easy to change?

curl -X"MKCALENDAR" -H"Content-Type:application/xml" -uusertest:testtest http://localhost:8080/cosmo/dav/usertest/calendar

rpolatedMessage='not a well-formed email address', propertyPath=email, rootBeanClass=class org.unitedinternet.cosmo.model.hibernate.HibUser, messageTemplate='{org.hibernate.validator.constraints.Email.message}'}

danielgrigore commented 3 years ago

Hi @f1-outsourcing ,

Since you need to provide your own AuthenticationProvider implementation anyway you can create one that performs the authentication using username and password. However you still need to provide at least one email address for each user because that email address is needed when creating events to populate the ORGANIZER property. Cheers,

f1-outsourcing commented 3 years ago

Is there an example of an openldap AuthenticationProvider available?

danielgrigore commented 3 years ago

Is there an example of an openldap AuthenticationProvider available?

Not in cosmo, but you can search form some Spring/Spring-Boot examples.