سؤال

I am implementing Zendesk single signon functionality using JSON Web Token into my application. Based on the sample code, I am calling the ProcessRequest() function from my code-behind.

My code is:

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

however, I am getting an error

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

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

هل كانت مفيدة؟

المحلول

According to Working With HttpContext.Current your parameter should be HttpContext.Current

نصائح أخرى

The JWTLogin class is an IHttpHandler. It's not designed to be called directly.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top