Skip to content

richorama/webtokens

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published