Assign UPN to Azure Active Directory Application Registration

Uriil

I have application registered in Azure Active directory, we use app id and secret to access different resources, here is sample code to request access token

var authority = $"https://login.windows.net/TENANT_ID";
var authContext = new AuthenticationContext(authority, TokenCache.DefaultShared);
var clientCred = new ClientCredential("APP_ID", "APP_SECRET");
var result = await authContext.AcquireTokenAsync("RESOURCE_ID", clientCred);
Console.WriteLine(result.AccessToken);

However one of the systems requires us to include UPN in access token, is it possible? Is it possible to assign some UPN to Application?

Martin Brandl

As far as I know, you can't assign a UPN to an application.

You are authenticating against Azure using a Service Principal. A Service Principal also have a name - the SPN but not a User Principal Name.

enter image description here

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Azure active directory application registration for localhost and production

分類Dev

How to allow my Azure web application to access Active Directory?

分類Dev

How to connect to multiple azure active directory account to your application?

分類Dev

Multi-Tenant application using Azure Active Directory

分類Dev

How to assign a static IP to a Computer in Active Directory

分類Dev

Enabling CORS on Azure Active Directory

分類Dev

Getting all users per application Azure Active Directory .NET Web Api C#

分類Dev

Azure service to query Azure Active Directory

分類Dev

After migrating to Azure, how can I query my organization Active Directory from within the application now hosted in Azure?

分類Dev

How can I transfer or share apps, created in Microsoft app registration portal. I'm using Azure Active Directory and v2.0 endpoint

分類Dev

Azure AD SPNとUPN?

分類Dev

Verifying JWT from Azure Active Directory

分類Dev

Azure Active Directory - Access Denied in New Portal

分類Dev

Access token for Azure Active Directory and single sign on

分類Dev

Get all AppRole assignments in Azure Active Directory

分類Dev

Writing a register page for Windows Azure Active Directory

分類Dev

Azure Mobile Services Active Directory Login unauthorized

分類Dev

Can't join Azure Active Directory

分類Dev

SonarQube and Azure Active Directory Domain services

分類Dev

JWT CSOM / REST Azure Active Directory

分類Dev

Is there a way to assign a user in the active directory to multiple groups with ansible?

分類Dev

Correct implementation of multi-tenancy in Azure Active Directory

分類Dev

Are Azure Active Directory's TenantID and ClientID considered secrets?

分類Dev

Owner level Service Principal permission not working for Azure Active Directory

分類Dev

Login with OAuth2 And Azure Active Directory With Personal account microsoft

分類Dev

Azure Active Directory AcquireTokenAsync doesn't trigger event

分類Dev

Azure Tenent、Azure Directory、およびAzure Active Directoryの違いは何ですか?

分類Dev

How to create an Azure function and configure it with Azure Active Directory only by code in Localhost?

分類Dev

Using Azure Active Directory as an OAUTH2 Authentication service for a Spring-boot REST service

Related 関連記事

  1. 1

    Azure active directory application registration for localhost and production

  2. 2

    How to allow my Azure web application to access Active Directory?

  3. 3

    How to connect to multiple azure active directory account to your application?

  4. 4

    Multi-Tenant application using Azure Active Directory

  5. 5

    How to assign a static IP to a Computer in Active Directory

  6. 6

    Enabling CORS on Azure Active Directory

  7. 7

    Getting all users per application Azure Active Directory .NET Web Api C#

  8. 8

    Azure service to query Azure Active Directory

  9. 9

    After migrating to Azure, how can I query my organization Active Directory from within the application now hosted in Azure?

  10. 10

    How can I transfer or share apps, created in Microsoft app registration portal. I'm using Azure Active Directory and v2.0 endpoint

  11. 11

    Azure AD SPNとUPN?

  12. 12

    Verifying JWT from Azure Active Directory

  13. 13

    Azure Active Directory - Access Denied in New Portal

  14. 14

    Access token for Azure Active Directory and single sign on

  15. 15

    Get all AppRole assignments in Azure Active Directory

  16. 16

    Writing a register page for Windows Azure Active Directory

  17. 17

    Azure Mobile Services Active Directory Login unauthorized

  18. 18

    Can't join Azure Active Directory

  19. 19

    SonarQube and Azure Active Directory Domain services

  20. 20

    JWT CSOM / REST Azure Active Directory

  21. 21

    Is there a way to assign a user in the active directory to multiple groups with ansible?

  22. 22

    Correct implementation of multi-tenancy in Azure Active Directory

  23. 23

    Are Azure Active Directory's TenantID and ClientID considered secrets?

  24. 24

    Owner level Service Principal permission not working for Azure Active Directory

  25. 25

    Login with OAuth2 And Azure Active Directory With Personal account microsoft

  26. 26

    Azure Active Directory AcquireTokenAsync doesn't trigger event

  27. 27

    Azure Tenent、Azure Directory、およびAzure Active Directoryの違いは何ですか?

  28. 28

    How to create an Azure function and configure it with Azure Active Directory only by code in Localhost?

  29. 29

    Using Azure Active Directory as an OAUTH2 Authentication service for a Spring-boot REST service

ホットタグ

アーカイブ