0


You need to log in to create posts and topics.

Adding support for external login provider like Google

My project is based on QuickApp Pro - kitchensink.

I've added Google external login provider from this guide. It has several codes like...

.AddGoogle("google", options =>
  {
    options.ClientId = "[client id]";
    options.ClientSecret = "[client secret\";
    options.SignInScheme = IdentityConstants.ExternalScheme;
  }); ;

But, I'm lost here how to redirect the client to /connect/token to get access, refresh tokens and show logged-in page as the original quickapp login process does.
With the mixed codes, I've also faced the following exception and it gives me the feeling that I'm on the wrong track.

InvalidOperationException: The authentication handler registered for scheme 'Bearer' is 'IdentityServerAuthenticationHandler' which cannot be used for SignInAsync.

Is there any simple way or example that I can add external login provider to quickapp pro?

I've found https://github.com/IdentityServer/IdentityServer4/issues/356

which guide me to https://www.linkedin.com/pulse/securing-net-core-web-api-identityserver4-using-owner-dalvandi-1/?trk=mp-author-card

and I'm working on this...