I have a .NET Core web application where I have a custom login page. That all works fine. The only problem that I have is that the “OnTicketReceived” event in “OpenIdConnectEvents” (in my Startup.cs) is never invoked.
I was wondering if this is normal behaviour? Is there a way to trigger that event when using a custom login page?
PS. When I log out, then the “OnRedirectToIdentityProviderForSignOut” does get triggered. For some reason “OnTicketReceived” event never is.
Edit
As I understand this could have something to do with the CallbackPath setting? I have the following URLs in the Allowed Callback URLs configured:
Hi, I have added a striped down version of my project.
I couldn’t find an upload button here on the forum, so I’ve uploaded the project elsewhere: https://ufile.io/fus9x
If you could take a look, that would be great.
Edit
The funny thing is that the event OnRedirectToIdentityProviderForSignOutdoes get triggered when I log out. So I assume that the CallbackPath is correct?
Maybe also good to know is that I have the following settings:
I wanted to touch base with you @ShoPeng and let you know that I am currently investigating this with our TSE team and will get back to you with a response.
I wanted to follow up @ShoPeng and see if you had a chance to snag a code sample of your Startup class so we can take a deeper look at what’s going on? Thanks!
From that project the OnRedirectToIdentityProvider never seems to be invoked. The same thing happens when you add the OnTicketReceived (or any other) event. The only one that seems to work is OnRedirectToIdentityProviderForSignOut.