Skip to content

Commit

Permalink
Microsoft Entra ID
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Nov 25, 2023
1 parent bded943 commit 4cef9e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions MyApi/Controllers/AzureADUserOneController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
namespace MyApi.Controllers;

/// <summary>
/// API protected with Microsoft.Identity.Web and Azure AD
/// API protected with Microsoft.Identity.Web and Microsoft Entra ID
/// scope from App registration used to authorize.
/// </summary>
[SwaggerTag("API protected with Microsoft.Identity.Web and Azure AD")]
[SwaggerTag("API protected with Microsoft.Identity.Web and Microsoft Entra ID")]
[AuthorizeForScopes(Scopes = new string[] { "api://b2a09168-54e2-4bc4-af92-a710a64ef1fa/access_as_user" },
AuthenticationScheme = "myADscheme")]
[Authorize(AuthenticationSchemes = "myADscheme")]
Expand All @@ -20,7 +20,7 @@ namespace MyApi.Controllers;
public class AzureADUserOneController : ControllerBase
{
/// <summary>
/// returns data id the correct Azure AD access token is used with the correct scope.
/// returns data id the correct Microsoft Entra ID access token is used with the correct scope.
/// </summary>
/// <returns>protected data</returns>
[HttpGet]
Expand Down
10 changes: 5 additions & 5 deletions MyApi/MyApi.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion RazorMicrosoftEntraID/Pages/CallApi.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

<h1>Call API</h1>
<h6>gets the data from the Azure AD protected Web API</h6>
<h6>gets the data from the Microsoft Entra ID protected Web API</h6>

@foreach(var item in Model.DataFromApi)
{
Expand Down

0 comments on commit 4cef9e9

Please sign in to comment.