Skip to content

Commit

Permalink
Merge pull request #2028 from damienbod/bugfix/fg/Potential-Infinite-…
Browse files Browse the repository at this point in the history
…IFrame-Creation-When-checkSessionIframe-Is-undefined

Adding early return if Iframe is not present
  • Loading branch information
FabianGosebrink authored Oct 17, 2024
2 parents 656cc1f + 7d8f451 commit 0bf8213
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ export class CheckSessionService implements OnDestroy {
);
}

private init(configuration: OpenIdConfiguration): Observable<any> {
private init(configuration: OpenIdConfiguration): Observable<void> {
if (this.lastIFrameRefresh + this.iframeRefreshInterval > Date.now()) {
return of(undefined);
return of();
}

const authWellKnownEndPoints = this.storagePersistenceService.read(
Expand Down Expand Up @@ -137,6 +137,8 @@ export class CheckSessionService implements OnDestroy {
configuration,
'CheckSession - init check session: checkSessionIframe is not configured to run'
);

return of();
}

if (!contentWindow) {
Expand Down

0 comments on commit 0bf8213

Please sign in to comment.