Skip to Content

Allow public access REST Sender not working

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2017 at 05:23 PM

    what is your Pi version and sp?

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 03, 2017 at 02:22 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 20, 2018 at 12:14 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 14, 2019 at 10:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.