Variable attribute name in Set OAuth V2 Info policy

Not applicable

Hi, consider this policy:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SetOAuthV2Info async="false" continueOnError="false" enabled="true" name="update">
    <DisplayName>update</DisplayName>
    <AccessToken ref="request.formparam.accessToken"/>
    <Attributes>
        <Attribute name="{request.formparam.attribute}" ref="request.formparam.value"/>
    </Attributes>
</SetOAuthV2Info>

If I post "attribute=test&value=foo" it sets the "{request.formparam.attribute}" instead of the "test" attribute - the variable is not resolved.

Apart from security considerations, would something like this be possible?

Thank you!

0 1 398
1 REPLY 1

@Morris Brodersen ,

I believe it's expected & as per design. As of today, I don't think we support reference flow variables for attribute name property.