tag:blogger.com,1999:blog-6082652835152798567.post4793612743181267161..comments2024-03-28T21:41:58.974-07:00Comments on Sql server, .net and c# video tutorial: ASP.NET Core google authentication - setting up the UIUnknownnoreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6082652835152798567.post-15399399251251873842024-01-09T03:20:53.917-08:002024-01-09T03:20:53.917-08:00What is with this "signInManager". It th...What is with this "signInManager". It throws error saying "The error signinmanager doesnot exists in the current context"?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-63707128173169671862021-09-03T10:55:34.755-07:002021-09-03T10:55:34.755-07:00public async Task Login(string returnUrl)
{
/...public async Task Login(string returnUrl)<br /> {<br /> //setup login with providers<br /> LoginVM model = new LoginVM<br /> {<br /> ReturnUrl = returnUrl,<br /> ExternalLogins = (await _signInManager.GetExternalAuthenticationSchemesAsync()).ToList()<br /> };<br /> var t = returnUrl;<br /><br /> ViewBag.newUserSWL = TempData["newUserSWL"] as string;<br /> return View(model);<br /> }<br /><br />just asking why the return url back with null?<br />it's normal?Mohamed Kamelhttps://www.blogger.com/profile/08267008496381433624noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-30720114997359722362021-01-29T14:07:22.879-08:002021-01-29T14:07:22.879-08:00 if (Model.ExternalLogins.Count == 0)
I get this ... if (Model.ExternalLogins.Count == 0)<br /><br />I get this error when running the application <br />Can any one tell me what is the problem?BY techhttps://www.blogger.com/profile/16548712726514255171noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-57906634948936768122020-05-17T19:59:36.081-07:002020-05-17T19:59:36.081-07:00Go to this link:
https://console.developers.googl...Go to this link:<br /><br />https://console.developers.google.com/apis/credentials/oauthclient/760664201936-qj63s17rb23la88e6nljsri55587a0i4.apps.googleusercontent.com?project=760664201936<br /><br />look for "Authorized redirect URis"<br />1. Click "Add Uri" <br /><br />2. An empty textbox will appear<br /><br />3. Type "https://localhost:44342/signin-google" into the empty textbox.<br /><br />4. Click save.<br /><br />Changhttps://www.blogger.com/profile/01434693645054404040noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-49358492579942649422020-05-04T09:04:13.879-07:002020-05-04T09:04:13.879-07:00I am having error :
Error 400: redirect_uri_misma...I am having error :<br /><br />Error 400: redirect_uri_mismatch<br />The redirect URI in the request, https://localhost:44342/signin-google, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/760664201936-qj63s17rb23la88e6nljsri55587a0i4.apps.googleusercontent.com?project=760664201936<br /><br />Kindly tell what to do ?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-27669921880688755612020-04-28T17:21:08.689-07:002020-04-28T17:21:08.689-07:00you have to made some modification while regestrin...you have to made some modification while regestring service in startup.cs<br />see this link<br />https://github.com/dotnet/aspnetcore/issues/6486SIG au marochttps://www.blogger.com/profile/16740376596028587256noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-21565949838659117882020-03-01T00:27:05.098-08:002020-03-01T00:27:05.098-08:00i got following error
Oauth token endpoint failur...i got following error <br />Oauth token endpoint failure <br /> <br />how can i solve this problem??Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-53279970852569315842019-11-08T21:43:10.033-08:002019-11-08T21:43:10.033-08:00InvalidOperationException: No suitable constructor...InvalidOperationException: No suitable constructor found for entity type 'AuthenticationScheme'. The following constructors had parameters that could not be bound to properties of the entity type: cannot bind 'name', 'displayName', 'handlerType' in 'AuthenticationScheme(string name, string displayName, Type handlerType)'.<br /><br />i have this problem can U help.<br />mohamed2991https://www.blogger.com/profile/04438250210507555333noreply@blogger.com