3 legged oauth
=======================
My OAuthV2 policy with GenerateAuthorizationCode operation looks like below. I am setting scope as "Developer" for the auth code. In the next resource call, I am generating access token associated with the auth code. Before generating the access token I added a policy GetOAuthV2Info to retrieve the "Scope" so that I can associate scope with the access token. But I am getting the blank value using the variable {oauthv2authcode.GetOAuthv20InfoForScope.scope}
Am i supposed to set scope variable? In the documentation, I can see scope variable
These variables are populated when the AuthorizationCode element is set:
oauthv2authcode.{policy_name}.code oauthv2authcode.{policy_name}.scope oauthv2authcode.{policy_name}.redirect_uri oauthv2authcode.{policy_name}.client_id oauthv2authcode.{policy_name}.{auth_code_custom_attribute_name}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <OAuthV2 async="false" continueOnError="false" enabled="true" name="GenerateAuthCode"> <DisplayName>GenerateAuthCode</DisplayName> <Properties/> <Attributes/> <ExternalAuthorization>false</ExternalAuthorization> <ResponseType>request.queryparam.response_type</ResponseType> <ClientId>request.queryparam.client_id</ClientId> <Operation>GenerateAuthorizationCode</Operation> <GenerateResponse enabled="true"> <Format>FORM_PARAM</Format> </GenerateResponse> <Attributes> <Attribute name="abc" ref="saml.subject" display="true"/> </Attributes> <Scope>Developer</Scope> <ExpiresIn>600000</ExpiresIn> <SupportedGrantTypes/> <Tokens/> </OAuthV2>