[DEPRECATION] Added csrf_provider and intention deprecated error trigger.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #12610
| License       | MIT
| Doc PR        | 
is this the right place for this error_message, shouldn't the complete class become deprecated instead of guessing about the context it is used in?