Skip to main content
Taisia00
Silver ⭐️
Oct 30, 2025 8:53 AM UTC
Question

StandardOauth2AccessTokenProvider & InvokeHTTP - not working

I try get json from API with help InvokeHTTP.

In area Request OAuth2 Access Token Providers i used StandardOauth2AccessTokenProvider

  • 08:52:01 UTC
    ERROR

    StandardOauth2AccessTokenProvider[id=2e9e7bd4-019a-1000-f83f-1ef5f5d2d56d] OAuth2 access token request failed [HTTP 400], response:
    {"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization server.","hint":"Check that all required parameters have been provided","message":"The authorization grant type is not supported by the authorization server."}

4 replies

Taisia00
Taisia00Author
Silver ⭐️
Oct 30, 2025 9:33 AM UTC
  1.      Направляем POST-запрос на адрес: https://iflat.io/api/v1/oauth/token
  2.      Тело POST-запроса (request body):

{

 "username": "Ваш номер телефона",

  "password": "Ваш пароль",

  "account_id": 501,

  "client_id": 2,

  "client_secret": "wiOJc8yxgiSXDJvkYLkFcUgjtR7SrwPNiDdrt7Di",

 "grant_type": "login"

}

Translate
VidyaSargur
Community Manager
Community Manager
Oct 30, 2025 10:47 AM UTC

@Taisia00, Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @MattWho @haridjh, who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.
haridjh
Gold ⭐️
Gold ⭐️
Oct 30, 2025 12:23 PM UTC

@Taisia00 The supported Auth-Grant types in StandardOauth2AccessTokenProvider  are 

  • User Password 
  • Client Credentials 
  • Refresh Token 

Please update the grant-type option in the API request to the supported values . 

Check the below doc for the valid properties/options and further information.
ref doc : 
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-oauth2-provider-nar/1.28.0/org.apache.nifi.oauth2.StandardOauth2AccessTokenProvider/index.html

If the above suggestion helps in your requirements, please clink on "Accept as Solution" on this update.  

Translate
VidyaSargur
Community Manager
Community Manager
Nov 5, 2025 5:05 AM UTC

@Taisia00, Did the response assist in resolving your query? If it did, kindly mark the relevant reply as the solution to aid others in finding the answer more easily in the future. 

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.