Escaping in Graph Notification endpoint validation

APIPointNewbie 146 Reputation points
2021-12-03T12:41:27.34+00:00

Hello Community,

I have read that you should use escaping to check a notification token for authenticity. But how do you implement escaping in C# for Graph ?

I would be very happy about a feedback.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,461 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,649 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Danstan Onyango 3,816 Reputation points Microsoft Employee
    2021-12-08T10:32:50.277+00:00

    Check Prevent Cross-Site Scripting (XSS) in ASP.NET Core and see if the guidelines here can help. You can also check this thread specifically the JavaScriptStringEncode from Syetem.Web if you are on .net 4+

    1 person found this answer helpful.
    0 comments No comments