This topic was inadvertently retired from Update 23 release when STS authentication was retired from the product. After review, it has been determined that the topic is not related to STS and works as written on SAM authentication. As such, this topic has been reinstated for Update 40 release.
For further information, see Generating an authorization token using Authorization code with proof key .