Reputation: 27
When clicking on the password reset link sended by Forgot-Password-Email, it gets redirected to the swagger api page instead of the app password reset page of angular account module. I'm using ABP version 4.4.2.
Log:
[INF] Request starting HTTP/1.1 GET http://MyServer:MyApiPort/?userId=b7f3736f-08c2-bf57-a515-39fb28b41c19&__tenant=&resetToken=CfDJ8IxpuMPgrKNKjI1u2e2ZAtOOLUHe6OX2Ij5%2BH68fAkOeFPafRMUZ3I9OF%2Biqr3FoBEteth2P5NC6GQDWPjoI%2BZRv%2BjATH0b8vm2UC%2FIHrp%2B%2BIdER9tGBDySInA631AGxaO3HATlpBHdXsNSkfIenqHllxzEe4WeJlyqjem%2BJ8WcBC1c%2FYlxR7xxHDJDiyUyhkRy%2Bx6PMKddc5w2APu5p1f3JAfCzdbTBYJF4REQYAPCd - -
[INF] Executing endpoint 'MyAPP.Controllers.HomeController.Index (MyAPP.HttpApi.Host)'
[INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller MyAPP.Controllers.HomeController (MyAPP.HttpApi.Host).
[INF] Executing RedirectResult, redirecting to /swagger.
appsetting:
"App": {
"SelfUrl": "http://MyServer:MyApiPort",
"CorsOrigins": "http://MyServer:MyAppPort",
"RedirectAllowedUrls": "http://MyServer:MyAppPort"
},
Is there something else to configure to get redirecting correctly?
Many thanks for the help
Upvotes: 0
Views: 636
Reputation: 656
First of all, thank you very much for the information you provided.
I have done research on the subject and I think that this is due to the absence of returnUrl
in the log record you provided.
[INF] Request starting HTTP/1.1 GET http://MyServer:MyApiPort/?userId=b7f3736f-08c2-bf57-a515-39fb28b41c19&__tenant=&resetToken=CfDJ8IxpuMPgrKNKjI1u2e2ZAtOOLUHe6OX2Ij5%2BH68fAkOeFPafRMUZ3I9OF%2Biqr3FoBEteth2P5NC6GQDWPjoI%2BZRv%2BjATH0b8vm2UC%2FIHrp%2B%2BIdER9tGBDySInA631AGxaO3HATlpBHdXsNSkfIenqHllxzEe4WeJlyqjem%2BJ8WcBC1c%2FYlxR7xxHDJDiyUyhkRy%2Bx6PMKddc5w2APu5p1f3JAfCzdbTBYJF4REQYAPCd - -
This is of course a very superficial explanation, so, I have a few questions to understand the problem more clearly:
My Steps:
abp new Angular.SeperteadMongiLish -t app -u angular --mobile none --separate-identity-server --database-provider mongodb -csf --version 4.4.2
commandhttps://localhost:44356/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fresponse_type%3Dcode%26client_id%3DSeperteadMongiLish_App%26state%3DRHNCSDFjanZHbHlJTmRRdWtMeG9qZktQODRNek5NOXpUTHN4TmZQUUJkTThz%26redirect_uri%3Dhttp%253A%252F%252Flocalhost%253A4200%26scope%3Doffline_access%2520openid%2520profile%2520role%2520email%2520phone%2520SeperteadMongiLish%26code_challenge%3D3P4R2O-GJcOHPNBAySMMwYMKp9jeevEWT3SR-1x2FTA%26code_challenge_method%3DS256%26nonce%3DRHNCSDFjanZHbHlJTmRRdWtMeG9qZktQODRNek5NOXpUTHN4TmZQUUJkTThz%26culture%3Den%26ui-culture%3Den
Forgot Password?
button.Upvotes: 1