How to configure app settings if both using dashboard and api #788
Replies: 2 comments 2 replies
-
If you get a 403 error when issuing a certificate from the dashboard, it is likely that the App Role has not been set correctly. After creating the App Role correctly for the Entra ID App used in App Service Authentication, you need to assign the user application to the Enterprise Application associated with it. Please check the procedure again. |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for the great tool! TENNANTID=ourTennent
CLIENTSECRET=xxxManuallyCreatedServicePrinicpal
APPCLIENTID=xxxManuallyCreatedServicePrinicpal
SCOPE=api://yyyAppRegDeployedByAcmebot/.default
TOKEN=$(curl -s -H 'Content-Type: application/x-www-form-urlencoded' \
-d "client_id=${APPCLIENTID}&scope=${SCOPE}&grant_type=client_credentials&client_secret=${CLIENTSECRET}" \
-X POST "https://login.microsoftonline.com/${TENNANTID}/oauth2/v2.0/token" \
| jq .access_token)
curl -H "Accept: application/json" -H 'Content-Type: application/json' -H "Authorization: Bearer ${TOKEN}" \
-X GET "https://func-fn-acmeboyyyy.azurewebsites.net/api/certificates" We configured app roles on the functions registration Gave the manually created registration (the one used for client auth.) API permissions The functions Auth. settings are: Following the above description also tried to add new paramter: ![]() What are we missing, doing complete wrong? Your help is much appreciated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi and thanks for a great solution 👍
I'm trying to configure the app service to allow us to use the dashboard and the api with Entra ID authentication AND only to assigned users/group and applications.
Reading the appointed documentation: https://github.com/shibayan/keyvault-acmebot/wiki/App-Role-based-authorization
I've added the roles and the App Setting:
Acmebot:AppRoleRequired = true
, I've also added the user I'm using to the roles in the Enterprise App, but trying to issue a certificate in the dashboard gives me a 403.Removing the
Acmebot:AppRoleRequired = true
setting and keeping the 'App Role' assignment, lets me again issue certificates.Regardless, of settings, I'm not able to issue a certificate via below PowerShell snippet:
The error I'm getting when trying the API via PowerShell is: You do not have permission to view this directory or page. which seems odd...
How should I configure the App Registration and the Enterprise App to enable access to only specified users to the dashboard and the api for specified applications (SPs)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions