forked from elneilios/webtokens
richorama/webtokens
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
WebTokens C# sample code for working with Simple Web Tokens to access REST based web services. Two10.Sample1 - Retrieves a token from ACS, parses it and checks its validity. Two10.SampleRest - An MVC3 web app that exposes a WRAP endpoint and a simple REST endpoint protected by a Simple Web Token Two10.Swt - Models a Simple Web Token (the core of this thing really) Two10.Swt.Tests - a few unit tests, including demo of calling the above REST endpoint etc. Neil Alderson Rob Blackwell Richard Astbury Anton Staykov May 2012 TODO Check for matching realm/scope Support DateTime object for specifying expiry Surface the claims as part of the Authorize attribute or Iclaimprinciple. Can we move RESTAUthorize to Two10.Swt ? What about building a TokenIssuer class to wrap up the stuff in the WRAP endpoint? Could we use Uri.EscapeUriString insted of HTTPUtility to allow .NET 4 CLient framework instead of full framework? (Beware capitalization). What about refresh tokens? What would it take to add OAUTH2.0 compatibility?
About
Webtokens - Simple Web Token samples
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published