Escaping in Graph Notification endpoint validation

APIPointNewbie 146 Reputation points

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.
9,937 questions
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.
9,936 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Danstan Onyango 3,651 Reputation points Microsoft Employee

    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