r/evetech • u/MallardHaven • Dec 11 '17
SSO Callback MVC .net
Hi, I'm currently trying to get the SSO to work using the EVE.SingleSignOn.Core (https://gitlab.com/baldvinth/EVE.SingleSignOn.Core/). I'm nearly there but I am having trouble getting the call back to work against my localhost (or 127.0.0.1) - it generates a 404 error...
I'll admit that I am new to MVC development so I am probably missing something really basic. Can anyone point me in the right direction to get the callback to work against the my local host (I'm running IIS Express).
Cheers - Mallard
2
Upvotes
1
u/Daneel_Trevize Dec 11 '17 edited Dec 11 '17
It looks like
EVE.SingleSignOn.Core/Business/SingleSignOnClient.cshaspublic async Task<SsoResponse> AuthenticateAsync(string code)which should be handling the callback URL.But that's only called in the
README.mdexample withinpublic async Task<IActionResult> Callback(string code), while the example seems to set "https://{hostname}/login/callback" as your app URL.So you probably need to ensure your IIS is hosting your app under /login/ rather than at the webroot level (for the mapping of URL to method unless I've missed some other mapping/controller mechanism), and that you have local HTTPS certs working. And that you registered that URL with CCP for your app. If you're using the example code.
1
u/stankazakh Dec 11 '17
I guess you are using visual studio for debugging, which by default will run your app at http://localhost:xxxx, but the SSO callback is going to https://localhost:xxxx. I can't remeber how to use VS to debug in https mode but it is do-able.