Questions tagged [azure-app-registration]

88 questions
2
votes
1 answer

What is the "Secret ID" in the "Certificates & secrets" blade of Azure AD App registration and how can we use this?

What is the "Secret ID" in the "Certificates & secrets" blade of Azure AD App registration and how can we use this? I have checked MS docs but there is no direct explanation.
2
votes
2 answers

Invoke-RestMethod :unauthorized client for getting Authentication-token

I have created app registration in azure active directory. I'm trying to invoke an azure ad authenticated with below PowerShell script, but it always display an error: $clientID = '' $secretKey = '' $tenantID = '' $password…
2
votes
1 answer

Azure Static web app - Custom Identity Auth with Azure AD

I am new to the Azure Static app and struggling to make Azure AD SSO work with Azure AD app registration. I went through the questions already available on stack overflow but the responses miss the routing config in staticwebapp.config.json file and…
1
vote
1 answer

Add Azure application owners using python

I am having some challenges getting the application owner of each application registration. Anyone have any insight? Here is a snippet of the code i'm using. import logging import requests import datetime from datetime import timezone from…
1
vote
0 answers

how to verify the oauth2 access token provided by MS identity platform

I have created an oauth2 app using MS app registration and the plan is to authenticate clients using this app registration. I am running the following code to authenticate a person using his MS Azure creds. package main import ( "context" …
1
vote
0 answers

Connect Sharepoint online using C# with certificate based authentication (CBA)

I am trying to connect to SharePoint Online using c# application. I created a App Registration under Azure Active Directory and added the certification. I have also tested the connection using Powershell(using PnP module) with client, tenant, Cert…
1
vote
1 answer

Updating Appreg in Azure with MsGraph API

Using C# Dotnet 7 code that calls GraphAPI v5.x, I create a new AppReg in Azure with the necessary information, and this works perfectly. I then try to add a ClientSecret to my new AppReg using the command from the Microsoft site // Code snippets…
1
vote
1 answer

How do I add Azure app registration App role using Dotnet Core

Hi I have to add an AppRole to an exsisting App Regestration. This is how I've added the App and assigned one role along with that: var scopes = new[] { "https://graph.microsoft.com/.default" }; var tenantId = "-Confidential-"; …
1
vote
0 answers

Can Multiple web Application (single tenant ) use one app registration

I am building three applications(single tenant) using .NET 6. I need to host the application in below pattern - https://www.MainApp.com(Main application) https://www.MainApp.com/subapp1(Sub application1). https://www.MainApp.com/subapp2(Sub…
1
vote
1 answer

DevOps Azure CLI Task - Granting Admin Consent to App Registration throws error

I'm hoping that someone can shed some light on this because I'm a little bit stuck. .... I have an Azure CLI task in a DevOps Release Pipeline. This is running using a Service Principal which is a member of the Application Administrators group. When…
1
vote
1 answer

Any way to include the App Registration name in the access token when using Client Credentials flow?

I use Azure AD to implement auth^2. When I use a access token from a user I get a claim such as unique_name or upn which contains a user identifier I can use to log into the DB for logging/tracking/auditing. If I use an App Registration as a service…
1
vote
1 answer

How to get an access token to connect to SharePoint Online from an ASP.NET web application

I appreciate any help. I'm trying to connect to a SharePoint Online site from my ASP.NET Web Application built with .NET Framework 4.7.2 I have created a Self-Signed Certificate which is already installed on my development machine and is uploaded to…
1
vote
2 answers

Is it possible to manipulate tenant from another tenant in Azure?

I am new to Azure, and one question bothers me.   Is it possible to create a multi-tenant logic in Azure with one "General" AAD that contains function apps and other tenants (more than 20) that should use these apps to manipulate their own…
1
vote
1 answer

Can't update Azure Event Grid Partner Topic from a PowerShell AzureFunction

I want to update a Subscription of an Azure Event Grid Partner Topic to change the ExpirationDateTime. To do so I'm using a PowerShell AzureFunction authenticated with an App Registration on GraphAPI. I'm using the Update-MgSubscription function to…
1
vote
1 answer

Adding Scopes to Azure AD Application with Powershell (Expose an API)

I'd like to add a Scope to an Azure AD App / Service Principal (UI=Expose an API) with Powershell. $app = New-MgApplication -DisplayName $name -SignInAudience "AzureADMyOrg" Update-MgApplication -ApplicationId $app.id -IdentifierUris…
1
2 3 4 5 6