I actualy got a answer to my own problem. I was missing the " [HttpGet]" attribute. That fixed my problem. However I have a new problem. When I return a custom object. It always wraps it around the ABP result DTO. As show below. Is there anyway to just return the object without the result, success etc.. From below I just want to return the "webcredentials" object under the result object. I do not want the result or targetURl, success etc.. Just a single object.
{ result: { webcredentials: null }, targetUrl: null, success: true, error: null, unAuthorizedRequest: false, __abp: true }
Hi,
Thank you for your response. I created a endpoint under the application project. I have extended the "ASPNETZEROAppServiceBase" class. I have added "Route" attribute for the custom endpoint. The endpoint works when i navigate to the custom endpoint, however when I try to navigate to swagger UI I get the message "Failed to load API definition. Fetch error. undefined /dwagger/v1/swagger.json" . I have provided screen shot below. I can always try the controler and view solution but I wanted to give your other solution a try. Can you please provide the steps. Or where I have done something wrong
Thank you for your reponse. I was also wondering when is Twitter going to be implemented in the ASP.NET Zero? I see on your webside that is on your roadmap. Just wanted to know the timeline.
Below is example of the URL send inside the account email activation:
<frontend-site-base-url>/account/confirm-email?c=N6byZPbwhnS6C60R6vRtS21PJHsfiU+zWFI5HcK4PNUSs/qXkSla/7efrbckcWUDPQ9Kbnvx92469XRIQydOzCOGOT/NRcqBBA36v1xFRNA=
I cant find the implementation in angular project, of how the string c is converted to "confirmationCode" and passed back into back-end "/api/services/app/Account/ActivateEmail" endpoint
@ismcagdas
So I was finally able to open the link you said (https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Url/AngularAppUrlService.cs)
They are exaclty the same. I think I got it to work now.
One last question. I can see in the email verify link there is parameter c. How does the front end convert the parameter c to comfirmationCode that is later send back to server via the "/api/services/app/Account/ActivateEmail" end point. I pretty much need to implement the flow using react instead of angular.
Thanks
@ismcagdas
My username is 3AGSystemsShervin
Hi @ismcagdas,
I still cannot open the link https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Url/AngularAppUrlService.cs
Are you sure its the correct link? Under the license management I can see my GitHub user added but when I click the link I see 404, eventhou I can see I'm logged in. Is there any other was to get to the AngularAppUrlService.cs class from the base URL of the documentation?
https://github.com/aspnetzero/documents
Hi @ismcagdas
Just wanted to follow up.
I got your invitation and I accepted the invite and I can see this page https://github.com/aspnetzero/documents but when I clikc the link you provided I cannot open it. Still get 404. Even though when I click the link I can see that Im logged in as the user that is added to the https://aspnetzero.com/LicenseManagement. Perhabs something is wrong with the link (https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Url/AngularAppUrlService.cs ) Perhabs you tell me the steps to take to get to the AngularAppUrlService.cs class from the https://github.com/aspnetzero/documents link
Its been 8 days since last post and our client really needs the email activation to use for there dev/testing
Thanks again for your time
@ismcagdas
I added my user on GitHub, and it said successfully added. But I still cant reach the URL. Perhabs some lag?
https://risksmith-dev-web.azurewebsites.net/account/confirm-email?c=QCVaA/9koiqZF+n5VyxTLMtm3/AA3R//aBQYpnBFTbNYUVh5GK1wwo9b8hkL2unb6YkOI7HfeXwo9VbAvww3ZeHXF/r8AkvqutnT47xpTJU=
I get 404 page when I click the link you send.
"ServerRootAddress": "https://risksmith-dev.azurewebsites.net/", "ClientRootAddress": "https://risksmith-dev-web.azurewebsites.net/",
One thing I gotta mention is that now the email activation link works and when i click it it takes me to front-end page and logs me in. However when I look at users table, the user [IsEmailConfirmed] is still set to false