Zendesk single signon implementation

I am implementing Zendesk single signon functionality using JNON Web Token in my application. Based on the sample code, I call the ProcessRequest () function from my code.

My code is:

JWTLogin jwtLogin = new JWTLogin(); jwtLogin.ProcessRequest(HttpContext.Current.Request.QueryString["return_to"]); 

however i get an error

The best overloaded method matching for 'Zendesk.JWTLogin.ProcessRequest (System.Web.HttpContext)' has some invalid arguments

What is a parameter of type "HttpContext" that I would pass when I called the ProcessRequest () function?

+4
source share
2 answers

According to Working with HttpContext.Current , your parameter must be HttpContext.Current

+5
source

The JWTLogin class is IHttpHandler. It is not intended for direct calling.

0
source

Source: https://habr.com/ru/post/1497039/


All Articles