I want to generate an access token in the proxy response flow.
As mentioned in Oauth policy documentation I have set the request.header.Authorization to base64(client_id:client_secret) before the Oauth policy execution. Even then it gives me an error like :
{ "fault": { "faultstring":"invalid_request", "detail": { "errorcode":"invalid_request" } } }
<OAuthV2 name="OAuth2-generate-token"> <Operation>GenerateAccessToken</Operation> <ExternalAccessToken>flow.idm.accessToken</ExternalAccessToken> <StoreToken>true</StoreToken> <SupportedGrantTypes> <GrantType>password</GrantType> </SupportedGrantTypes> <GrantType>flow.grant_type</GrantType> <GenerateResponse enabled="false"/> <ExpiresIn ref="flow.jwt.expiry">3600000</ExpiresIn> </OAuthV2>
Solved! Go to Solution.
@AlayVakil, username and password are required fields for the password grant. Pls pass them and check.