Registering Azure Active Directory Service instance fails with an error "This endpoint only accepts POST requests"
kbt153852
PRODUCTK2 Five
BASED ONK2 Five (all)
TAGSSecurity Provider
Authorization
Security
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
Issue
When registering the Azure Active Directory Service instance, the below error will occur on redirection:
"AADSTS90056: This endpoint only accepts POST requests. Received a GET request."

Symptoms
You will be unable to utilize this SmartObject service instance to the allocated user task.Resolution
To correct this error, switch around the entries where the URL is. I.e:
https://login.microsoftonline.com/{tenantid}/oauth2/token to use the URL https://login.microsoftonline.com/{tenantid}/oauth2/authorize and vise versa for the authorization endpoint.
This is in the section OAUTH RESOURCE where the Token and Authorization Endpoint URL's are swapped around.

