Requesting a Token from Azure AppFabric Access Control Service using OAuth 2.0 in C#

Back in September I wrote the article “Requesting a Token from Access Control Service in C#”. In that article I demonstrated the creation of a requesting token, using the Simple Web Token (SWT) token format, and using the OAuth Web Resource Authorization Protocol (WRAP) as the token request protocol. In response ACS will issue a…

0

Calling a Service Bus HTTP Endpoint with Authentication using WebClient

This article demonstrates using WebClient in C# to make a client call to a secure Service Bus endpoint exposed using WebHttpRelayBinding. There are two key take-aways from this that mightn’t be covered by existing documentation and samples: (1) learn how place an Access Control STS issued token into the Authorization header, and (2) make a…

2

Requesting a Token from Access Control Service in C#

The AppFabric SDK V1.0 July Update SDK has a number of Access Control Service examples demonstrating the requesting of a token from the Access Control Service; however I find myself needing a small snippet to insert into other samples (e.g. Service Bus) just to craft a request token and get a token to Auth with…

1

Azure AppFabric Access Control Sample Import/Export Tool (acmsafeguard.exe)

The AcmSafeGuard tool is a command line tool built to be able to perform a full export and import of the Azure AppFabric Access Control entities, as well as a delete-all operation. This tool, with source, is available in the attachment. I built this by evolving the acm.exe tool that is already included in the…

0

Sample updates per WRAP update from V0.8 to V0.9

I am in the process of updating the ACS Token Request samples per protocol updates in the ACS service from Version 0.8 to 0.9. I will update the samples in the blog, but in case you made your own changes to the samples, here are the updates you need to make… Change the STS URI…

0

Requesting a Token from Access Control Service in Python

[UPDATE 2/11: Updated to use new STS V0.9 instead of V0.8]  In the previous posts I demonstrated requesting tokens from the Access Control Service using both Simple Web Token and Shared Secret requests in Java and in PHP. In this little example I am only showing the Shared Secret request in Python. import sys, httplib,…

0

Requesting a Token from Access Control Service in Java

[UPDATE 2/11: Updated to use new STS V0.9 instead of V0.8]   Following demonstrates requesting a token from the .NET Services Access Control Services using a Shared Secret and another using a Simple Web Token.   You’ll also need these three libraries to help in the encoding process and the HTTP calls. There are some…

0

Requesting a Token from Access Control Service in PHP

[UPDATE 2/11: Updated to use new STS V0.9 instead of V0.8]   Following demonstrates requesting a token from the .NET Services Access Control Services using a Shared Secret and another using a Simple Web Token.     <?php $stsUrl=”https://[service namespace].accesscontrol.windows.net/WRAPv0.9/”; $rpUrl=”[scope applies_to]”; $issuerKey=”[issuer key]”; $issuerName=”[issuer name]”; $claims = array(“sample_in_claim_type”=>”sample_in_claim_value”); echo(“<b>Shared Secret</b>: ” . GetTokenBySharedSecret($stsUrl,$claims,$issuerName,$issuerKey,$rpUrl) ….

0

Requesting Tokens from Access Control Service

When designing the Access Control Service we wanted to make it easy to request a token from the STS. We also wanted to make it possible to work with other languages, not just the .NET Framework. As such, I decided to validate the simplicity of the design by picking a few popular programming languages and…

0

United States map in XAML

I worked on a little toy project on the side for which I needed a XAML map of the United States; however, I could not find such a thing myself. After looking through a few options I ruled out making a SVG to XAML converter, as I suck too much with XSLT. So instead, I…

4