BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Can't uploading OpenAPI 3.0 definition that containing OAuth 2.0 authorization as a REST Service !!

    Posted Thu April 27, 2023 11:17 AM

    I tried to create a REST Service from an OpeAPI 3.0 defintion in IBM Business Automation Workflow V 20.0.0.2 .
    I got exception (ibm support only apikey or basic auth ) so this is because my swagger file including an OAuth 2.0 mechanism .How to handle this error please !



    ------------------------------
    oussama Nairi
    ------------------------------


  • 2.  RE: Can't uploading OpenAPI 3.0 definition that containing OAuth 2.0 authorization as a REST Service !!

    Posted Fri April 28, 2023 09:15 AM

    Can you send the exact exception you are seeing?  Also can you confirm that the fix packs referenced in the link below have been added to your environment?

    https://www.ibm.com/support/pages/using-openapi-30-rest-services-ibm-business-automation-workflow-and-ibm-integration-designer




    ------------------------------
    Jason Barks
    Lead Business Automation Consultant
    Salient Process, Inc.
    jbarks@salientprocess.com
    ------------------------------



  • 3.  RE: Can't uploading OpenAPI 3.0 definition that containing OAuth 2.0 authorization as a REST Service !!

    Posted Fri April 28, 2023 09:37 AM

    Hi Jason,
    This the exception i got :

    The object designated by the JSON path "paths.'/generatePDFInput'(post).security" contains no supported security scheme types. The supported security scheme types are 'basic', 'apiKey'.
    In the security scheme designated by the JSON path "components.securitySchemes.'default'", the 'type' property has an unsupported value, namely 'oauth2'.

    I didn't demand to IT to add those fix packs to our environment yet because i'm not sure yet of the exception source .
    This is a part of our OpenAPI Definition which support OAuth2.0 .

        "securitySchemes" : {
          "default" : {
            "type" : "oauth2",
            "flows" : {
              "implicit" : {
                "authorizationUrl" : "https://localhost:8243/authorize",
                "scopes" : { }
              }
            }
          }
        }


    Regards,
    Oussama



    ------------------------------
    oussama Nairi
    ------------------------------



  • 4.  RE: Can't uploading OpenAPI 3.0 definition that containing OAuth 2.0 authorization as a REST Service !!

    Posted Fri April 28, 2023 10:28 AM

    According to the link I sent, the fix packs referenced introduce OpenAPI 3.0 support.   Have you been able to successfully use an OpenAPI 3.0 definition in the current environment?  If not, I would double check on the fix packs referenced before doing any further troubleshooting.  After that has been confirmed, then we can proceed to the next step.  Is this a cloudpak instance or on premise?



    ------------------------------
    Jason Barks
    Lead Business Automation Consultant
    Salient Process, Inc.
    jbarks@salientprocess.com
    ------------------------------



  • 5.  RE: Can't uploading OpenAPI 3.0 definition that containing OAuth 2.0 authorization as a REST Service !!

    Posted Fri April 28, 2023 11:32 AM

    Hi Jason,

    Yes, we are able to successfully use an OpenAPI 3.0 definition in the current environment which is on premise .

    Regards,
    Oussama



    ------------------------------
    oussama Nairi
    Integration Consultant
    INETUM
    ------------------------------