How to create a case through Mashup without authentication

Hi,

I have a simple use case where I just want to be able to create a case on an external website without any authentication using PEGA Mashup.

I have generated the code and I am using the data-pega-action-param-parameters =‘{“UserIdentifier”:,“Password”:<64 base encoded password>}’ to pass the details of my Guest operator. Even though I am using the 64 base encoded password, I am still being asked to enter login details.

Any help would be appreciated.

Please find my mashup code below:

<!-- ********************** Begin Pega content ********************** -->

<div data-pega-encrypted ='true' 
data-pega-encrypted-hash = 'pzuiactionzzz=C*' 
data-pega-gadgetname ='PegaGadget' 
data-pega-action ='createNewWork' 
data-pega-action-param-classname ='TA-TestingApp-Work-LoanApplication' 
data-pega-action-param-flowname ='' 
data-pega-isretained ='false' 
data-pega-isdeferloaded ='false' 
data-pega-applicationname ='TestingApp' 
data-pega-threadname ='LoanMashup' 
data-pega-channelID ='MASHUPce7a7766b23c46dd8001cbd4c40faa93' 
data-pega-resizetype ='stretch' 
data-pega-url ='https://swibwpgb.pegace.net/prweb/PRAuth/app/testing-application_2382/' 
data-pega-action-param-parameters ='{"pzSkinName":"TestingApp","pyMashupSkeletonName":"pyDefaultMashupSkeleton","UserIdentifier":"","Password":"="}'

@Ravi Kishore

Please check this solution

script src =‘https://localhost..pegacloud.net/prweb/app/Impl_4872/?pyActivity=pzIncludeMashupScripts’>

**<script>**
<strong>
     pega.web.api.setAuthenticationParameters("PegaGadget", {</strong>
<strong>
UserIdentifier: "MashupOperator",</strong>
<strong>
Password: btoa("rules")</strong>
<strong>
});      </strong>
<strong>
</script></strong>
 

<div data-pega-gadgetname ='PegaGadget' 

data-pega-action ='createNewWork' 

data-pega-action-param-classname ='ABC-Impl-Work-Case' 

data-pega-action-param-flowname ='pyStartCase' 

data-pega-isdeferloaded ='false' 

data-pega-applicationname ='IMPL' 

data-pega-threadname ='STANDARD' 

data-pega-resizetype ='stretch' 

data-pega-url = 'https://localhost.pegacloud.net/prweb/app/Impl_4872/' 

data-pega-action-param-parameters ='{"pzSkinName":"IMPL","pyMashupSkeletonName":"pyDefaultMashupSkeleton"' ></div>

@RameshSangili

Hi Ramesh,

Thank you for your reply.

I did try your snippet of code in my HTML, but I am still getting a login screen even though I am passing the operator parameters.

I am unable to figure out how to run the mashup without any authentication. Do I have to create any authentication service?

Please find my HTML code below:

<!DOCTYPE html>
<html>
<head>
    <title>Pega Mashup Example</title>
    

```
<script>
        pega.web.api.setAuthenticationParameters("PegaGadget", { UserIdentifier: "GuestOperator", Password: btoa("rules") });
    </script>
</head>
<body>
    <h1>Welcome to the Loan Application</h1>
    <script src="https://swibwpgb.pegace.net/prweb/PRAuth/app/testing-application_2382/?pzuiactionzzz=CXtpbn00dWQ4RnhIT1EyTnMyOEZWQ2lGRit1QmJFTEJHYmtXdlNpeUh4cGE4VEZYTFhYTWZSREFFYnhlVnVpMEhpb1dz*"></script>
    <div data-pega-encrypted="true" 
         data-pega-encrypted-hash="pzuiactionzzz=CXtpbn1GcDY3TXVUZlRzc3phTGpxWGdHbTFmckE2SmdEZ2JNbXZ2TEhVdkxIdncweHdJN2VaL1RndnpuYTZZSm9vNzRqWWNJUWd3Q1BKalpQQjdxUGo5V1ZtSVpLSjlrOHdabUUxTitBZnpTcUR1NjNrRk52YzdYK3dwMXU4SWRiNlYxVnNzTzJhaGVrYXVEalA3WmVhVGQ1b21pK1VKaFJneW5WdWFUSWUrY25uTEFvRHdjMWpjclBZRFVkQnRJMUNnYmk1dmpjL09sY3BMME1LelRmaXAxUHdLNjdlYndrMmJuenlWcHJEclRjNGdab0JlR3ZJbFkxY0didzlWeUhkVis2dEFLTnlIOWpxbkZmcGVkK2xKYm51dFJRR1FHOUl0ZkhnWTg4WnBvNXd1THo0NzRxeVB0cGwzYjNSOVVUWGNQNEx5UXlTbWJ1TlpSREtISHhOWVViS2xLYjhsZmNCQ0tBUHNKSmZwT1doNlE9*"
         data-pega-gadgetname="PegaGadget" 
         data-pega-action="createNewWork" 
         data-pega-action-param-classname="TA-TestingApp-Work-LoanApplication" 
         data-pega-action-param-flowname="" 
         data-pega-isretained="false" 
         data-pega-isdeferloaded="false" 
         data-pega-applicationname="TestingApp" 
         data-pega-threadname="LoanMashup" 
         data-pega-channelID="MASHUPce7a7766b23c46dd8001cbd4c40faa93" 
         data-pega-resizetype="stretch" 
         data-pega-url="https://swibwpgb.pegace.net/prweb/PRAuth/app/testing-application_2382/" 
         data-pega-action-param-parameters='{"pzSkinName":"TestingApp","pyMashupSkeletonName":"pyDefaultMashupSkeleton"}'>
    </div>
</body>
</html>
```

@Ravi Kishore

Web Embed Auth - Pegasystems Documentation

Anonymous Operator Configuration - Pegasystems Documentation