You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is expected to generate this way, with the right type { "type": "OAUTH_AUTHORIZATION_POLICY", "status": "ACTIVE", "name": "Jonathan App12 AuthServer Policy", "description": "Jonathan App12 AuthServer Policy", "priority": 1, "conditions": { "clients": { "include": [ "ALL_CLIENTS" ] } } }
What is the actual behavior?
return the following response because the wrong type: { "errorCode" : "E0000003", "errorSummary" : "The request body was not well-formed.", "errorLink" : "E0000003", "errorId" : "oae5ancVR41QveuOA4vfhgwkQ", "errorCauses" : [ ] }
Reproduction Steps?
Try to create a new AuthorizationServerPolicy using the AuthorizationServerApi.createAuthorizationServerPolicy
Additional Information?
The fix can be done in the Policy.java, where the converter for implementation AuthorizationServerPolicy can be done for field type from AuthorizationServerPolicy to OAUTH_AUTHORIZATION_POLICY
Java Version
17
SDK Version
14.0.0
OS version
Windows 10
The text was updated successfully, but these errors were encountered:
@arvindkrishnakumar-okta, I make some local tests and in the api.yaml file at the definition for Policy, the discriminator is missing this definition that generates the Policy.java correctly:
OAUTH_AUTHORIZATION_POLICY: '#/components/schemas/AuthorizationServerPolicy'
Describe the bug?
When making the call they are generate the body this way:
{ "type": "AuthorizationServerPolicy", "status": "ACTIVE", "name": "Jonathan App12 AuthServer Policy", "description": "Jonathan App12 AuthServer Policy", "priority": 1, "system": false, "conditions": { "clients": { "include": [ "ALL_CLIENTS" ] } } }
What is expected to happen?
Is expected to generate this way, with the right type
{ "type": "OAUTH_AUTHORIZATION_POLICY", "status": "ACTIVE", "name": "Jonathan App12 AuthServer Policy", "description": "Jonathan App12 AuthServer Policy", "priority": 1, "conditions": { "clients": { "include": [ "ALL_CLIENTS" ] } } }
What is the actual behavior?
return the following response because the wrong type:
{ "errorCode" : "E0000003", "errorSummary" : "The request body was not well-formed.", "errorLink" : "E0000003", "errorId" : "oae5ancVR41QveuOA4vfhgwkQ", "errorCauses" : [ ] }
Reproduction Steps?
Try to create a new AuthorizationServerPolicy using the AuthorizationServerApi.createAuthorizationServerPolicy
Additional Information?
The fix can be done in the Policy.java, where the converter for implementation AuthorizationServerPolicy can be done for field type from AuthorizationServerPolicy to OAUTH_AUTHORIZATION_POLICY
![image](https://private-user-images.githubusercontent.com/107489287/297229325-53c0d19f-c9fd-4522-a193-3c3f1a10d032.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODU4MTgsIm5iZiI6MTczOTE4NTUxOCwicGF0aCI6Ii8xMDc0ODkyODcvMjk3MjI5MzI1LTUzYzBkMTlmLWM5ZmQtNDUyMi1hMTkzLTNjM2YxYTEwZDAzMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQxMTA1MThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01MDA0OThhYzk2OTNhYzVkYzJiNGE2OWMwMGRkNTAzZjA1NzIxNjY3OTBjN2ViZGVjOTk3NDlmY2QxYWE0MTc4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.6HJv6Bc-Kl1rPAN-WyZt6qv47ovH5F5yDPUZcgE9ymU)
Java Version
17
SDK Version
14.0.0
OS version
Windows 10
The text was updated successfully, but these errors were encountered: