Method EnsureSignInOriginAllowed
EnsureSignInOriginAllowed()
Checks the current request's origin the way SignInAsync(bool, Func<SignInInfo, Task<TSessionToken>>) does before it calls its function, without signing in.
Declaration
public virtual void EnsureSignInOriginAllowed()
Remarks
The default implementation throws if IsRequestOriginAllowed() returns false.
Exceptions
| Type | Condition |
|---|---|
| ForbiddenApiException | The request's origin is not allowed (OriginBlocked). |
| BadRequestApiException | The request contains multiple origin headers. |