You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Daniel, de la Cuesta Navarrete" <cu...@gmail.com> on 2009/05/07 18:43:44 UTC

Desactivate header authorization in POSTS

Hi,

By default, if you want to create a resource in Sling you have to include
the authorization headers in the POST request:

http://admin:admin@localhost:8888/content/mycontent/*

How can desactivate this?

I have my own authorization filter and I want to allow anonimous POSTs.

Thank you.

Re: Desactivate header authorization in POSTS

Posted by Felix Meschberger <fm...@gmail.com>.
hi Daniel,

You might want to "login" first by going to /system/sling/login.html (IIRC).

If you want to allow anonymous POST requests, you might want to change
the user name of the anonymous user in the repository configuration.
Goto to /system/sling/configMgr and select the Repository Configuration
with the UUID-like part in the name and change the anonymous user name
to something else (value does not matter as long as it is not "anonymous").

Alternatively you may change the value of the anonymousId parameter of
the LoginModule configuration in the
${sling.home}/jackrabbit/repository.xml file to something else.

The reason for this is, that by default Jackrabbit allows anyone to
write to the repository except the user designated as the anonymous user
in the repository.xml configuration file.

Hope this helps.

Regards
Felix

Daniel, de la Cuesta Navarrete schrieb:
> Hi,
> 
> By default, if you want to create a resource in Sling you have to include
> the authorization headers in the POST request:
> 
> http://admin:admin@localhost:8888/content/mycontent/*
> 
> How can desactivate this?
> 
> I have my own authorization filter and I want to allow anonimous POSTs.
> 
> Thank you.
>