ERROR: The request body must contain the following parameter: 'resource'.
Hi!
I want to authenticate against SharePoint Online and got the following error:
Fri Feb 26 10:43:08 CET 2021:ERROR:Failed to create the authorization URL
Fri Feb 26 10:43:08 CET 2021:ERROR:org.apache.oltu.oauth2.common.exception.OAuthSystemException: OAuthProblemException{error='invalid_request', description='AADSTS900144: The request body must contain the following parameter: 'resource'.
How can I add the parameter "resource" to OAuth2.0 parameters in SoapUI? Resource must be the same like scope.
OAuth 2 Flow = Client Credentials Grant
Client Identification = [client id]@[tenant id]
Client Secret = [client secret]
Access Token URI: https://accounts.accesscontrol.windows.net/[tenant id]/tokens/OAuth/2
Scope: 00000003-0000-0ff1-ce00-000000000000/[tenant name]@[tenant id]
Cheers
sp00ky