cancel
Showing results for 
Search instead for 
Did you mean: 

Allow public access REST Sender not working

martijnkoevoets
Explorer
0 Kudos

I've created a REST Sender adapter and checked "Allow public access (no authorization required)".

The CORS value is set to "Allow all clients".

When testing the endpoint I'm getting a 401 in SoapUI

The url is http://sappo-hostname:50000/RESTAdapter/endpoint?parameter=value

If I log in or pass login credentials the service works.

My requirement is to have this endpoint to be publicly available without logging in.

How can I manage this?

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member

what is your Pi version and sp?

https://archive.sap.com/discussions/thread/3884041

former_member189440
Participant
0 Kudos

Check this link for workaround, It works for me.

https://answers.sap.com/questions/12836671/why-the-allow-public-accessno-authorization-requir.html

Thanks & Regards

Uday Suvvada

0 Kudos

Hi Everyone,

For me its working when i select Allow public access is enabled and Allow all clients.

but i need the option Allow only specific Clients when i select that option and its asking CORS enabled URIs,

what we need to give here, can anyone help.

former_member192851
Active Participant
0 Kudos

Hi all.

I face the same issue.

I have channel and it works fine, but after restart PI instance i get this error.

Finally i found out that PI catch another REST communication channel for my endpoint, that requires Authentication . In XPI inspector message like "Channel object CC_WTF_REST_SENDER found for URL /mygoodrestURL"

After change endpoint url in wrong catched channel everything works as expecting

former_member323679
Participant
0 Kudos

Hi Everyone,

I too face the same issue. Allow public access is enabled and Allow all clients option is chosen, but server still requires authorization. Request is failing with unauthorized error. Do any of you still face the same issue ?

Regards,

Nirmal

martijnkoevoets
Explorer
0 Kudos

Good question! I should have included this in the OP.

We are at 7.31 SP19, which should be the equivalent of 7.4 SP16.

Since the feature was introduced in PI 7.4 SP13, we should be ok?