Project is using Microsoft MS SQL LocalDB 2014
You need to configure mail server into web.config
<mailSettings>
<smtp from="AngularJSAuthRefreshToken <[email protected]>">
<network host="mail.test.com" userName="[email protected]" password="test1234" port="25" />
</smtp>
</mailSettings>
</system.net>
Enter you public profile providers into database table [dbo].[ExternalLoginProviders].
Role authorization on then client side
To test refresh token set short live time for access_token into Startup.Auth.cs.
OAuthOptions = new OAuthAuthorizationServerOptions
{
...
AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(1),
...
};
Refresh token live time is configured into [dbo].[AspNetRefreshTokenApps].
Test user: [email protected], password: P@ssword123
Some ideas are borrowed from Enable OAuth Refresh Tokens in AngularJS App using ASP .NET Web API 2, and Owin