Hi All,
I want to add a refresh tokenin the below code , but I dont know where to add. Can someone please help me out-
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <OAuthV2 async="false" continueOnError="false" enabled="true" name="Authentication"> <DisplayName>Authentication</DisplayName> <Operation>GenerateAccessToken</Operation> <ExpiresIn>100</ExpiresIn> <SupportedGrantTypes> <GrantType>password</GrantType> </SupportedGrantTypes> <GrantType>request.queryparam.grant_type</GrantType> <UserName>request.formparam.username</UserName> <PassWord>request.formparam.password</PassWord> <GenerateResponse enabled="true"/> </OAuthV2>
Solved! Go to Solution.
According to https://docs.apigee.com/api-services/content/access-tokens#requestinganaccesstokenpasswordgranttype, both an access token and refresh token are minted for the password grant type. That happens without any additional configuration. Haven you checked the response you're getting after this policy executes?
According to https://docs.apigee.com/api-services/content/access-tokens#requestinganaccesstokenpasswordgranttype, both an access token and refresh token are minted for the password grant type. That happens without any additional configuration. Haven you checked the response you're getting after this policy executes?
Thanks for the information, I have checked it and have resolved the above issue.