Confidential application is not allowed to authenticate to Azure Portal AAD #29
Replies: 4 comments 7 replies
-
@silverhack |
Beta Was this translation helpful? Give feedback.
-
Hi @brenosilva, There are multiple endpoints in Microsoft 365 in which the Client Credentials grant type is supported. However, there are some endpoints such as the Azure AAD Portal API that don't support service principals, so Client Credentials grant type is not supported. Only interactive users (Interactive browser authentication and Resource Owner Password Credentials valid flows) are allowed to access this endpoint. Having said that, Monkey365 should switch between Graph/Microsoft Graph (in which the Client Credentials flow is an approved method) and Azure AAD portal API in cases in which the grant type is not supported, so I'll open a new issue in order to track it. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hello @silverhack I'm trying to do a Certificate-based Authentication to a SharepointOnline and I'm receiving this same error. I registered the app with a Global Administrator account on my Microsoft365 tenant, and assigned it a self-signed certificate and the needed permissions, following the link you provided in the thread: https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread These are the parameters I'm using: $param = @{ Any idea of what can be failing? Let me know if I can provide more info. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
-
Hi @Mastix95 hope you're doing well, Thanks for catching that. I can reproduce your issue and I have opened a new bug in the issues section. As a workaround, I'd recommend to give your application permissions over the Thanks in advance, |
Beta Was this translation helpful? Give feedback.
-
Hello!
I´m trying to run Monkey365 on a machine-to-machine way in order to avoid account/password prompt. However i´m seeing this error:
Confidential application is not allowed to authenticate to Azure Portal AAD
I created an account with Global Reader privilege on my Microsoft 365 tenant, then went to Azure AD and Registered an App. Set the Owner with the same user and create a secret.
I´m running it like this:
Invoke-Monkey365 -ClientId ae******-6a**-6d--****** -ClientSecret ("app_secret_is_here" | ConvertTo-SecureString -AsPlainText -Force) -Instance Azure -Analysis All -TenantID eaf-34ef-2096-1100-******* -ExportTo PRINT
: Confidential application is not allowed to authenticate to Azure Portal AAD
FYI: If i use -PromptBehavior SelectAccount with the same account, it works.
I would appreciate more information how i can get it running
Thanks
Beta Was this translation helpful? Give feedback.
All reactions