# Asp.Net Core + Angular 2 : Social Authentication

**URL:** <https://community.auth0.com/t/asp-net-core-angular-2-social-authentication/6538>\
**Category:** Get Help\
**Tags:** angular2, aspnet-core\
**Created:** [May 9, 2017, 4:05am UTC](https://community.auth0.com/t/asp-net-core-angular-2-social-authentication/6538 "2017-05-09T04:05:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedric](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@cedric](https://community.auth0.com/u/cedric)\
**Post date:** [May 9, 2017, 4:05am UTC](https://community.auth0.com/t/asp-net-core-angular-2-social-authentication/6538/1 "2017-05-09T04:05:38Z")

</div>

Hi,

- I created a new Auth0 Account

- I configured my Auth0 Client

- I created a new [Asp.Net](http://Asp.Net) Core app with Angular 2.0

- I configured my auth0 service on the server

- I install npm auth0-js package + angular2-jwt  
In my Angular 2 page test.ts i have:  
auth0 = new WebAuth({  
domain: ‘xxx’,  
clientID: ‘xxx’,

So when I click on login function:  
this.auth0.authorize({  
connection: ‘google-oauth2’,  
});

The webpage is correctly redirect to google, then I login in, work fine, but the redirect doesnt work.

I m note sure about what I need to after that.

Do I need to redirect to a controller in my WebApi?How can i do that?  
Do I need to redirect to a Angular Page which will decrypt google data and send it to the Server?

Do you have page/documentation/git/code to refer?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![cedric](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@cedric](https://community.auth0.com/u/cedric)\
**Post date:** [May 9, 2017, 4:48am UTC](https://community.auth0.com/t/asp-net-core-angular-2-social-authentication/6538/2 "2017-05-09T04:48:26Z")

</div>

I downloaded the solution from [https://auth0.com/docs/quickstart/spa/angular2/02-custom-login](https://auth0.com/docs/quickstart/spa/angular2/02-custom-login)

I can now handle the authentication from my Angular2 app, but I prefer to handle it with [Asp.Net](http://Asp.Net) Core App.

How to handle it?

---

<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:53am UTC](https://community.auth0.com/t/asp-net-core-angular-2-social-authentication/6538/3 "2018-03-02T05:53:47Z")

</div>


