You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Anders (Jira)" <ji...@apache.org> on 2022/05/04 09:17:00 UTC
[jira] [Created] (NIFI-9984) Support additional successful status codes in StandardOauth2AccessTokenProvider
Anders created NIFI-9984:
----------------------------
Summary: Support additional successful status codes in StandardOauth2AccessTokenProvider
Key: NIFI-9984
URL: https://issues.apache.org/jira/browse/NIFI-9984
Project: Apache NiFi
Issue Type: Improvement
Affects Versions: 1.16.1
Reporter: Anders
The StandardOauth2AccessTokenProvider controller service only supports reponse status code 200:
https://github.com/apache/nifi/blob/5aa71570ff1781f83f9fb8bf16ed3ab386d06b85/nifi-nar-bundles/nifi-standard-services/nifi-oauth2-provider-bundle/nifi-oauth2-provider-service/src/main/java/org/apache/nifi/oauth2/StandardOauth2AccessTokenProvider.java#L322
And while this adheres to the RFC (https://datatracker.ietf.org/doc/html/rfc6749#section-5.1), it is not uncommon to use 201.
One example:
https://www.ibm.com/docs/en/dbaoc?topic=applications-using-oauth-20-based-authentication
It would be useful if the StandardOauth2AccessTokenProvider controller service at least allowed for 201 in addition to 200.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)