# WepAPI v2 running in local host trying to register test user

**URL:** <https://community.auth0.com/t/wepapi-v2-running-in-local-host-trying-to-register-test-user/8176>\
**Category:** Get Help\
**Tags:** angular4, webapi, api-authorization\
**Created:** [September 14, 2017, 3:57am UTC](https://community.auth0.com/t/wepapi-v2-running-in-local-host-trying-to-register-test-user/8176 "2017-09-14T03:57:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.carpenter](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@michael.carpenter](https://community.auth0.com/u/michael.carpenter)\
**Post date:** [September 14, 2017, 3:57am UTC](https://community.auth0.com/t/wepapi-v2-running-in-local-host-trying-to-register-test-user/8176/1 "2017-09-14T03:57:20Z")

</div>

I have an angular 4 cordova app using Auth0. I have it implemented, and users can register, log in and out. I am now trying to figure out how to set up a test bed with a C# Web API v2 back end running on a localhost port. I see that there is a rule “Custom webhook with ASPNET WebApi2” that can call this api so that I can register a user and return their internal ID.  
Before even doing this I notice I have no details from Auth0 that identify who the user is that logged in, so I assume I need to use this hook so that the internal ID can be established with each login. Every time that rule fires against localhost:1234 it just says connection refused, which makes sense because it seems the call is being made from Auth0 and they cannot access my local instance.  
The question is, do I have to publish a minimal api to have that functionality work, even though I will be building the api locally for my app to fire against? What is the best approach here for setting up this minimal scenario?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/wepapi-v2-running-in-local-host-trying-to-register-test-user/8176/2 "2018-03-02T05:56:28Z")

</div>


