OAuth management API's not functioning as expected.

Hi ,

I am trying to make few management calls to load external tokens, get the token and so on... for most of the calls i am getting the same response .

http://XXXX.com/v1/o/{orgname}/oauth2/search?app='{appName}'



Error Response:

{
    "code": "keymanagement.service.UnsupportedOperation",
    "message": "Unsupported Operation",
    "contexts": []
}

We are on 4.17.05 on-premise .

Thanks,

Latheef D

Solved Solved
0 3 287
1 ACCEPTED SOLUTION

For on-premises we need to enable the properties to the organization. Below api would do that.

POST: http://<<MS_HOST>>:<<MS_PORT>>/v1/o/<<ORG_NAME>>;

Body:
<Organization type="paid" name="xxx">
	<DisplayName>xxxx</DisplayName>
	<Properties>
		<Property name="features.isOAuthRevokeEnabled">true</Property>
		<Property name="features.isOAuth2TokenSearchEnabled">true</Property>
	</Properties>
</Organization>

Thanks,

Latheef D

View solution in original post

3 REPLIES 3

did you set up

oauth_max_search_limit = 100

...as described on the setup page?

yeah i have setup the value . Still i see the same error.

For on-premises we need to enable the properties to the organization. Below api would do that.

POST: http://<<MS_HOST>>:<<MS_PORT>>/v1/o/<<ORG_NAME>>;

Body:
<Organization type="paid" name="xxx">
	<DisplayName>xxxx</DisplayName>
	<Properties>
		<Property name="features.isOAuthRevokeEnabled">true</Property>
		<Property name="features.isOAuth2TokenSearchEnabled">true</Property>
	</Properties>
</Organization>

Thanks,

Latheef D