Web API 401

We're using Weblogic 12.2.1.3.0, patch 27438258.  We have developed a couple of Web Api objects that merely generate some JSON output.  E.g. "Hello World" Example.

However we're not able to access these Web-Api's from:  a) A browser that is not currently leveraging Appian credentials, b) SoapUI (even with pre-emptive basic authentication) or Postman (Chrome plugin)

Is it possible that there is a weblogic configuration item that could be blocking...

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi  by any chance did you try invoking this web API in appian using integration object? Just to make sure that this service is in a good state of being consumed by the end user.

    If you are able to call this service using Appian then I recommend to check the following configuration for this API

    1. Security privileges for API , specially to that user whose credential is being used in SOAP UI to invoke this service.

    2. Authentication mode as Basic Auth with pre-emptive as true which you already have configured.

    Concluding this, I believe if you are able to consume this service using Appian integration object, then there might be something wrong with security settings or system firewall which might stop the incoming request. But most probably it should be security issue. But I don't think, weblogic configuration might be causing this

  • We've validated the user credentials and security privileges for the API but still are not getting anywhere.

    If we use Postman and pass along valid cookies, we get the result we wish , but any attempt to do basic Authentication fails no matter what credentials we use.
  • +1
    Certified Lead Developer
    in reply to Richard

    That's really strange. Are you on Local installation Premise or the Cloud premises?

    Because if you are on local premises then i believe you should disable/delete the following

    <cookie-config>
    <http-only>true</http-only>
    <secure>true</secure>
    </cookie-config>
    <tracking-mode>COOKIE</tracking-mode>

    at the following location: <REPO_HOME>\ear\suite.ear\web.war\WEB-INF\web.xml

     

    Also if you are on local premises, the i assume, you must have configured

     

    conf.suite.SCHEME=http into <REPO_HOME>\ear\suite.ear\conf\custom.properties.<ENVIRONMENT> file.

    followed by, restart the server.

    But if you are on cloud premises, i believe you need to raise a support ticket to Appian Support to either Restart the Server (So that you can Test this once again when server is re-started) or to fix this issue.

    I hope you might get some solution for this problem statement

  • Alok:

    Thanks, we are on-premise, and I'll arrange to have both of these items checked this morning.

    Cheers

    R
  • 0
    Certified Lead Developer
    in reply to Richard
    Please do let me know if this worked.

    Cheers!
Reply Children