Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure.sp1 #749

Open
jodyford-msft opened this issue Dec 18, 2023 · 0 comments
Open

Configure.sp1 #749

jodyford-msft opened this issue Dec 18, 2023 · 0 comments
Labels
question Further information is requested

Comments

@jodyford-msft
Copy link

jodyford-msft commented Dec 18, 2023

Microsoft.Identity.Web version

2.13.0

Web app sign-in

1-WebApp-OIDC/1-1-MyOrg

Web API (call Graph or downstream APIs)

2-WebApp-graph-user/2-1-Call-MSGraph

Deploy to Azure

5-WebApp-AuthZ/5-1-Roles

Auth Z

6-Deploy-to-Azure

Description

This script requires admin access on azure to work correctly.

Reproduction steps

Step 1. Insert mIcrosoft's tenet id where required.
Step 2. run ./configure.ps1 on powershell as administrator.

Error message

No response

Id Web logs

No response

Relevant code snippets

1. Run the script to create your Azure AD application and configure the code of the sample application accordingly.

   
   cd .\AppCreationScripts\
   .\Configure.ps1 -TenantId "[tenet id here]"

----response after authenticating into aad
Need admin approval
unverified
needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.

Regression

No response

WARNING: An error occurred when writing to a listener. Unable to register apps. Error is An error occurred when writing to a listener.. Disconnecting from tenant Disconnect-MgGraph : No application to sign out from. At C:\Users\azureuser\source\repos\active-directory-aspnetcore-webapp-openidconnect-v2\4-WebApp-your-API\4-1-MyOrg\AppCreationScripts\Configur e.ps1:499 char:1 + Disconnect-MgGraph + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Disconnect-MgGraph], ArgumentException + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Authentication.Cmdlets.DisconnectMgGraph

Expected behavior

I expect the code to work correctly and create the appropriate permissions. without running this script, the sample does not work

@jodyford-msft jodyford-msft added the question Further information is requested label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant