Code Monkey home page Code Monkey logo

Comments (3)

brockallen avatar brockallen commented on June 20, 2024

I'm going to guess it's related to the signin scheme you're using for google and how you're processing it on the external callback logic (meaning does it match).

from identityserver4.templates.

breynolds avatar breynolds commented on June 20, 2024

I saw some posts about that, so I had tried a few things there.

First I left everything defaulted thinking that it should just work that way, but it didn't. That was
leaving SignInScheme as it's default in AddGoogle and then in ExternalController, leaving AuthenticateAsync and SignoutAsync both using "IdentityConstants.ExternalScheme"

Second, in the working IdentityServer that did not use ASP.Net Core Identity, we used IdentityServer4.IdentityServerConstants.ExternalCookieAuthenticationScheme for all three (SignInScheme, AuthenticateAsync, and SignoutAsync) as was explained in the "Interactive Applications with ASP.NET Core" quickstart. That didn't work either.

Third, I had thought one of the first two would work, but they didn't, so I tried going back to using IdentityConstants.ExternalScheme for AuthenticateAsync and SignoutAsync, and then in AddGoogle, I explicitly set SignInScheme to also be IdentityConstants.ExternalScheme and that didn't work either.

Am I using the wrong scheme, or missing a place where the scheme needs to be set in one of the Startup.cs or ExternalController.cs?

from identityserver4.templates.

mdmoura avatar mdmoura commented on June 20, 2024

I think I am having a similar problem described in the issued I posted (#85).

I am starting the login process from an Angular 9 SPA using oidc-client-js and I am redirected to IS4 login page.
I choose to authenticate with Google being redirected to Google login where I have my consent ...
I am then redirected to External / Callback where there is a returnUrl to the SPA Client application.
However I end up being redirected back to IS4 login page and not SPA login callback.

Either I login with Username / Password or Google I am always successfully authenticated on IS4.

It is just that when using Google I am not redirected back to the SPA client to complete the process.

@breynolds Did you solve your problem? Thank you.

from identityserver4.templates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.