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