Skip to content

Issue related to the silentRequestTimeout in AuthenticationService.js (Microsoft.AspNetCore.Components.WebAssembly.Authentication) #62157

Closed
@ks1234-bit

Description

@ks1234-bit

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hi there! I have a problem with the Microsoft.AspNetCore.Components.WebAssembly.Authentication(v8.0.8) package. More specifically with the AuthenticationService.js. The problem is the following - whenever I open my Blazor app inside of an iframe I have to wait 10 seconds before the authentication starts.
Here is the place where the timeout gets set

return t.prototype.navigate = function(t) { if (t && t.url) { var e = t.silentRequestTimeout || 1e4; i.Log.debug("IFrameWindow.navigate: Using timeout of:", e), this._timer = window.setTimeout(this._timeout.bind(this), e), this._frame.src = t.url } else this._error("No url provided"); return this.promise }

the t.silentRequestTimeout is always undefined so it takes 1e4. Is there a way to override the value of t.silentRequestTimeout to set it to 0?

Expected Behavior

Is there a way to override the value of t.silentRequestTimeout to set it to 0? That property doesn't seem to be exposed by the AuthenticationService.js, but probably I'm missing something and there is a way to configure it somehow. If no, then do you have any suggestions on how to remove that timeout?

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0.204

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-security

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions