-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converted AuthClient to work with .net core #18
Comments
I have just done the same thing, where did you get stuck? The below returns a session id so from there you should be good. Make sure you've uploaded your .pfx to betfair and allowed cert auth.
|
I fixed this the day after posting but didn't get chance to post my solution which is more aligned to the original code, see below, I did already have cert uploaded to Betfair. I ended up replacing the method getWebRequestHandlerWithCert with one of my own (which references HttpClientHandler instead of WebRequestHandler) called GetHttpClient Original Code
Changed to..... private HttpClientHandler GetHttpClient(X509Certificate2 certData)
Let me know if you try this out |
I've rewritten the AuthClient class to work with .net core but run into an issue with the cert, the problem I have is I'm seeing a betfair response of CERT_AUTH_REQUIRED
I'm newish to c#/ .net core so any help would be appreciated, and once working i'll post the code here
thanks
Mark
The text was updated successfully, but these errors were encountered: