Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some AccountController Functionality spited into Account.Web and doesn't exist on Account.HttpApi #3505

Closed
mehdihadeli opened this issue Apr 8, 2020 · 4 comments

Comments

@mehdihadeli
Copy link

mehdihadeli commented Apr 8, 2020

Hi,
I want to use some account controller functionality such as logout or change password and I use angular instead on mvc and I don't want to add a reference to Account.Web and my app have a reference to Account.HttpApi but account controller on Account.HttpApi doesn't have this functionality? what do I do for this case?

@soloham
Copy link
Contributor

soloham commented Apr 8, 2020

You could try to just copy the code of controllers in the Account.Web project from the repo and put them in the controllers in the .HttpApi project to copy the functionality (be sure to reference the required assemblies).

I'm not saying this is the solution as I can only recommend based on my understanding of the framework. You may try this if it doesn't work you can wait for a reply from @maliming or @hikalkan or someone who knows better.

@mehdihadeli
Copy link
Author

@soloham Yes, I know that. I did that before, but I asked this question because maybe there is better approach for this case.

@hikalkan
Copy link
Member

@maliming can you check this? Thanks.

@maliming
Copy link
Member

We cannot use SignInManager<IdentityUser> in Account.HttpApi. Angular should not call Logout etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants