Update IAM SDK and detect iframe CSP blocking for IDV workflows#28
Open
karissarjacobsen wants to merge 1 commit into
Open
Update IAM SDK and detect iframe CSP blocking for IDV workflows#28karissarjacobsen wants to merge 1 commit into
karissarjacobsen wants to merge 1 commit into
Conversation
Upgrades @docusign/iam-sdk to beta.8, renames maestro references to workflow builder, and adds detection for workflows that cannot be embedded (e.g. IDV). Uses ReportingObserver to catch CSP frame-ancestors violations and automatically opens blocked workflows in a new tab. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| /> | ||
| <p>This workflow cannot be embedded and has been opened in a new tab.</p> | ||
| <p>Complete your tasks in the new tab, then click Done to return.</p> | ||
| <a href={triggerUrl} target="_blank" rel="noopener noreferrer"> |
| <iframe src={triggerUrl} width="800" height="600"> | ||
| </iframe> | ||
| </div> | ||
| <iframe src={triggerUrl} width="800" height="600" onLoad={handleIframeLoad}> |
| useEffect(() => { | ||
| if (embeddingFailed && triggerUrl && !hasOpenedNewTab.current) { | ||
| hasOpenedNewTab.current = true; | ||
| childWindowRef.current = window.open(triggerUrl, '_blank'); |
| /> | ||
| <p>This workflow cannot be embedded and has been opened in a new tab.</p> | ||
| <p>Complete your tasks in the new tab, then click Done to return.</p> | ||
| <a href={triggerUrl} target="_blank" rel="noopener noreferrer"> |
| <iframe src={triggerUrl} width="800" height="600"> | ||
| </iframe> | ||
| </div> | ||
| <iframe src={triggerUrl} width="800" height="600" onLoad={handleIframeLoad}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades @docusign/iam-sdk to beta.8, renames maestro references to workflow builder, and adds detection for workflows that cannot be embedded (e.g. IDV). Uses ReportingObserver to catch CSP frame-ancestors violations and automatically opens blocked workflows in a new tab.