(listenerUrl, headerClaim)
| 1642 | paylDict[payloadClaim] = origVal |
| 1643 | |
| 1644 | def injectExternalInteractionHeader(listenerUrl, headerClaim): |
| 1645 | injectUrl = listenerUrl+headerClaim |
| 1646 | origVal = "" |
| 1647 | try: |
| 1648 | origVal = headDict[headerClaim] |
| 1649 | except: |
| 1650 | pass |
| 1651 | headDict[headerClaim] = injectUrl |
| 1652 | newContents = genContents(headDict, paylDict) |
| 1653 | jwtOut(newContents+"."+sig, "Injected "+str(injectUrl)+" into Header Claim: "+str(headerClaim)) |
| 1654 | if origVal != "": |
| 1655 | headDict[headerClaim] = origVal |
| 1656 | else: |
| 1657 | del headDict[headerClaim] |
| 1658 | |
| 1659 | def injectExternalInteractionPayload(listenerUrl, payloadClaim): |
| 1660 | injectUrl = listenerUrl+payloadClaim |
no test coverage detected