webMethods

 View Only
Expand all | Collapse all

How to remove the authorization prompt while launching webmethods dsp page?

  • 1.  How to remove the authorization prompt while launching webmethods dsp page?

    Posted Fri August 23, 2024 04:58 AM

    I have created a page.dsp and .access file in the same directory under pub folder of package. Set the ACL to Anonymous also.

    .access file — page.dsp Anonymous

    Reloaded the page.

    While launching the DSP, content of DSP is visible but prompt of username and password is also appearing .

    Wrapper service that calls wwm.server.packageList = Anonymous

    I also created a new solution, Added few extended setting properties but still prompt is coming. Written javascript code too to remove the prompts but of no use.

    webMethods version – 10.3

    Don’t want to use setdefaultaccess service in wmroot package…

    Can anyone please help in removing the authorization prompt??


    #B2B-Integration
    #API-Gateway
    #API-Management
    #CloudStreams
    #Integration-Server-and-ESB
    #AgileApps
    #webMethods-cloud
    #Adapters-and-E-Standards
    #Universal-Messaging-Broker
    #Service-Designer
    #webMethods


  • 2.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Fri August 23, 2024 03:32 PM

    If you are using same port as your integration server default, create an explicit port for it and Set Access Mode to Allow by Default, also configure Package (which has dsp) with the port.


    #Adapters-and-E-Standards
    #API-Management
    #API-Gateway
    #Universal-Messaging-Broker
    #webMethods-cloud
    #Integration-Server-and-ESB
    #CloudStreams
    #Service-Designer
    #webMethods
    #AgileApps
    #B2B-Integration


  • 3.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Sun August 25, 2024 02:10 PM

    Hi @Pratiksha2

    Your .access file entry seems to be fine. And you have indicated that the Wrapper Service (which is part of your DSP) has Anonymous Permission, I hope the “Execute ACL” for the Wrapper Service is also set to Anonymous. I doubt that the Authorization Prompt you see is actually for Server Level Logging Validation and cannot be done away with. But it is just a guess from my end. Perhaps there might be a way which the Experts of this community can highlight.

    Also you may have a look at this Topic resolved by @John_Carter4 couple of years ago


    #webMethods
    #Adapters-and-E-Standards
    #API-Gateway
    #Integration-Server-and-ESB
    #AgileApps
    #API-Management
    #Universal-Messaging-Broker
    #Service-Designer
    #webMethods-cloud
    #CloudStreams
    #B2B-Integration


  • 4.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Mon August 26, 2024 05:53 AM

    @John_Carter4 , @Kailash_Mishra The service acl is set to Anonymous and stateless property is also set to false and yes it is not clustered environment .
    Yes it is server level logging validation
    anyway to fix this to avoid this server level logging validation


    #webMethods
    #Integration-Server-and-ESB
    #B2B-Integration
    #API-Management
    #AgileApps
    #CloudStreams
    #Adapters-and-E-Standards
    #Service-Designer
    #API-Gateway
    #webMethods-cloud
    #Universal-Messaging-Broker


  • 5.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Mon August 26, 2024 07:49 AM

    Hi @Pratiksha2 ,

    Apart from your earlier suggestion to use (which is strongly not advised to use) wm.server.access:setDefaultAccess nothing comes in my mind as of now.

    Perhaps you may have a look at this thread and try once.


    #API-Gateway
    #CloudStreams
    #webMethods
    #webMethods-cloud
    #Universal-Messaging-Broker
    #AgileApps
    #Adapters-and-E-Standards
    #Service-Designer
    #B2B-Integration
    #API-Management
    #Integration-Server-and-ESB


  • 6.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Mon August 26, 2024 05:50 PM

    Try creating a separate port and Set Access Mode to Allow by Default
    Configure Package Name (which has dsp) linked with port.
    And DSP service execute ACL as Anonymous


    #API-Management
    #webMethods-cloud
    #B2B-Integration
    #CloudStreams
    #Adapters-and-E-Standards
    #API-Gateway
    #AgileApps
    #Integration-Server-and-ESB
    #Service-Designer
    #Universal-Messaging-Broker
    #webMethods


  • 7.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Tue August 27, 2024 04:24 AM

    A couple of things:

    • A DSP that just opens without asking for credentials is absolutely possible without any dirty workarounds like settings up a different port.
    • The .access files are only read on package reload. So after every change you must reload the package.
    • If the DSP includes any CSS or JavaScript files, those files also need to have the anonymous access added to .access.
    • If files exist in a sub-directory of ./pub (often the case for .css or .js), this sub-directory must have its own .access file.
    • In general the approach to have a wrapper service with Anonymous ACL is the correct approach
    • What you are experiencing is “normal” ;-). It happens to me all the time. Because I was sure to have nothing in the invocation chain that would require authentication. Guess what: I always had overlooked something (esp. files as mentioned above). So you can relax, because you are not alone in that, admittedly, frustrating experience.

    I recommend the following approach, especially when you haven’t done this a couple of times before:

    • Remove all(!) service invocations from the DSP file. This will ensure that you test the file itself. Because if I understand things correctly, it is currently only an assumption that the service is responsible.
    • Add a service that is know to have Anonymous as ACL. I recommend wm.server:ping. Yes, that does add anything to the screen output. But will confirm (or not) that in principle things work.
    • Then gradually add whatever you need.

    Hope that helps!


    #Universal-Messaging-Broker
    #API-Management
    #AgileApps
    #webMethods-cloud
    #webMethods
    #Service-Designer
    #Adapters-and-E-Standards
    #B2B-Integration
    #API-Gateway
    #CloudStreams
    #Integration-Server-and-ESB


  • 8.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Tue August 27, 2024 07:46 AM

    Thanks @jahntech.cj for your input.

    I did try to create a Blank DSP file in the Pub directory of a Package and then created a .access file and gave permission as Anonymous for this DSP followed by a Reload of the Package and could see that No Credentials prompt was asked when I tried to access the DSP via Browser ( Google Chrome).

    Hi @Pratiksha2 ,
    So this indicates that my earlier assumption of the Login Prompt being Server Level Login Validation was mistaken. So there must be something extra in your DSP Code that requires Authentication. Please have a look on the suggestions from @jahntech.cj


    #webMethods-cloud
    #webMethods
    #Service-Designer
    #Adapters-and-E-Standards
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #CloudStreams
    #B2B-Integration
    #API-Management
    #AgileApps
    #API-Gateway


  • 9.  RE: How to remove the authorization prompt while launching webmethods dsp page?



  • 10.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Tue August 27, 2024 04:30 AM


  • 11.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Tue August 27, 2024 10:57 AM

    Hi,

    what about taking a look at the “DSP and Template Development Guide”?
    There might some informations regarding this there.

    Regards,
    Holger


    #webMethods
    #API-Gateway
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #Service-Designer
    #CloudStreams
    #webMethods-cloud
    #Adapters-and-E-Standards
    #AgileApps
    #API-Management
    #B2B-Integration


  • 12.  RE: How to remove the authorization prompt while launching webmethods dsp page?



  • 13.  RE: How to remove the authorization prompt while launching webmethods dsp page?

    Posted Fri August 30, 2024 12:43 AM

    Hi @Pratiksha2
    I have created one simple flow service (execute ACL as anonymous) in my local and 1 dsp page with .access (set as anonymous) file and after that reloaded pacakge. Now when i am accessing this DSP from Chrome and Safari, it is not asking for any credential.

    So looks like there are other service invocation in your DSP which are having some default execute ACLs ( as suggested by @jahntech.cj ). Please check attached sample package for your reference.

    Thanks,
    Yogesh
    zzPub.zip (6.8 KB)


    #Integration-Server-and-ESB
    #API-Management
    #Service-Designer
    #webMethods-cloud
    #Adapters-and-E-Standards
    #API-Gateway
    #Universal-Messaging-Broker
    #B2B-Integration
    #CloudStreams
    #AgileApps
    #webMethods