I am trying to create a multitenant authentication service, for doing that I have created few oidc provider. For experiment purpose I added google external authentication service. Interesting part is, google authentication works even if I dont mention the client_secrect.
My question is How come google authentication works without having ( or wrong client_id)client id? Any explanation for that?
I used incognito mode/ private browse and deleted all the cookies/local/session data from storage. also deleted the user from the data base. still it retrives the data from google portal.
I created a store called DynamicAuthProviderStore for creating oidc objects and Added as a service in the startup file.
OidcProvider asiaProvider = new OidcProvider
{
Scheme = "googledemo",
DisplayName = "GOOGLE DEMO",
Enabled = true,
Authority = "https://accounts.google.com/",
ClientId = "exampleId",
ClientSecret = "exampleSecret",
Scope = "openid profile email",
GetClaimsFromUserInfoEndpoint = true,
};
builder.Services
.AddIdentityServer()
.AddIdentityProviderStore<DynamicAuthProviderStore>();