Access Token for .NET Web API & SPA (Angular JS)

743 views
Skip to first unread message

Kurniawan Kurniawan

unread,
Jul 29, 2014, 8:50:54 PM7/29/14
to net-http-a...@googlegroups.com
Hi Guys,

Just wondering if anyone has implemented .NET WEb API access/authentication token which use by SPA / ANgularJS.

Normally I would design my own token which contains the expiry, detail in one token.. and give back to the server.

Does this OWIN has a standard way to generate a token ?


THanks in advanced.

Tugberk Ugurlu

unread,
Jul 30, 2014, 3:09:33 AM7/30/14
to net-http-a...@googlegroups.com

Just look at the SPA template shipped with the ASP.NET MVC templates. As far as I remember, there is a sample there. Also, look at https://github.com/thinktecture/Thinktecture.IdentityServer.v3      and https://github.com/thinktecture/Thinktecture.IdentityServer.v3.Samples

 

This post might give you an idea as well: http://www.tugberkugurlu.com/archive/simple-oauth-server-implementing-a-simple-oauth-server-with-katana-oauth-authorization-server-components-part-1

 

Tugberk

--
You received this message because you are subscribed to the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Riley

unread,
Jul 30, 2014, 9:30:29 AM7/30/14
to net-http-a...@googlegroups.com
The OWIN spec does not speak to specific authentication or authorization methods at this time. The most commonly used implementation, Katana, has an AuthenticationMiddleware type used in most of the token handling middlewares, such as those from Thinktecture to which Tugberk alluded.

Cheers,
Ryan

Reply all
Reply to author
Forward
0 new messages