Class AntiForgeryState
- Namespace
- MailFathom.Common.OAuth
- Assembly
- MailFathom.Common.dll
The opaque value an authorization request carries and the redirect back to this process must echo.
public static class AntiForgeryState
- Inheritance
-
AntiForgeryState
- Inherited Members
Remarks
It is what binds a returned authorization code to the request that asked for one, so a redirect arriving with anything else was produced by some other exchange and the code it carries is not this process's to redeem. The value is therefore generated the way a credential is — from a cryptographically secure source, per request — and compared ordinally rather than parsed.
Methods
- Create()
Creates the opaque value the redirect must echo, which is what binds a returned code to this request.