Comments (3)
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.
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.
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)
- dotnet new still installing asp.net core 2.1 templates HOT 2
- Updating UI .sh missing in IdentityServer4InMem template HOT 1
- SeedData doesnt fill ASPNetUserClaims table, after create is4aspid template (Sqlserver) HOT 1
- External authentication error with Windows Integration on is4aspid template HOT 2
- Production ready? HOT 1
- Redirect to http://localhost:5000/grants not working HOT 3
- How to install IdentityServer4.Templates in Visual studio 2019 and .net core 3.1 cli? HOT 11
- Fresh install of IdentityServer4AspNetIdentity does not work. HOT 1
- Unable to create client in Admin HOT 6
- How can the configuration of the is4inmem template be done in JSON? HOT 5
- Support for IdentityServer4 (4.0.2) HOT 2
- is4aspid Template causes Local Authentication to not Redirect to Client Application following successful Login HOT 2
- Question regarding setting up a IdentityServer4 project with is4ui (http 404 error) HOT 1
- Not redirected to Spa client when using External authentication. Works when using username / pass. HOT 2
- Template relies on an uncompatible package Serilog.AspNetCore
- "dotnet new is4ui" not working
- GetAuthorizationContextAsync fails to parse the IdP value?
- "SQL scripts for SqlServer" link is broken
- is4admin doesn't show UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from identityserver4.templates.