microsoft-authentication-library-for-dotnet
microsoft-identity-web
microsoft-authentication-library-for-dotnet | microsoft-identity-web | |
---|---|---|
11 | 7 | |
1,387 | 676 | |
1.4% | 0.9% | |
9.4 | 9.2 | |
4 days ago | 2 days ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
microsoft-authentication-library-for-dotnet
-
How do you handle credentials for a console app?
In your console app code when you initialize the MSAL client app ( IConfidentialClientApplication ) one of its properties is the token cache (AppTokenCache and UserTokenCache) which handles all the token management stuff like using the refresh token for you when you call the AcquireTokenForClient method. Read more here
-
Azure SDK for Python: WAM Support in Beta/Pre-Release
# Title URL Accessed-On 1 Desktop app that calls web APIs: Acquire a token using WAM https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-desktop-acquire-token-wam 2023-01-11 2 Azure SDK Releases https://azure.github.io/azure-sdk/releases/latest/all/python.html 2023-01-11 3 azure-identity 1.13.0b1 https://pypi.org/project/azure-identity/1.13.0b1/ 2023-01-11 4 WAM https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/wam 2023-01-11 5 class InteractiveBrowserCredential(InteractiveCredential) https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/azure/identity/_credentials/browser.py 2023-01-11 6 Add WAM Support to MSAL for Python, for cross-language consistency #451 https://github.com/AzureAD/microsoft-authentication-library-for-python/issues/451 2023-01-11
-
How do you run e2e tests on any application running MSAL auth?
For end to end testing, you can setup test accounts, test applications or even separate directories. Username and passwords can be deployed via the Continuous Integration pipeline (e.g. secret build variables in Azure DevOps). Another strategy is to keep test credentials in KeyVault and configure the machine that runs the tests to access KeyVault, for example by installing a certificate. Feel free to use MSAL's strategy for accessing KeyVault. See more info about Testing an app using MSAL here and video about UI testing Azure AD protected single page applications with Cypress.
-
Roundup of .NET MAUI - Week of July 4, 2022
MauiApps is where you'll find the app in this rather large repository.
-
Ask HN: Google not indexing github.com issues?
Given https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3033
Fore query "cannot persist Microsoft authentication token cache securely!" (with quotes) Google returns single result, written in Chinese. Luckily I opened that Chinese result and spotted link to that issue.
duck.com does find the issue at hand.
I mean GitHub is no small site, but somehow I expected that Google will find my ANY public string on the internet.
-
Microsoft.IdentityModel.Clients.ActiveDirectory (Nuget Question)
ADAL is the older package now, and MSAL.NET is the latest library they're pushing for publish (Azure.Identity is still being worked on and is pushed for internal SDK usage from what I can tell, but this is what I primarily use due to easy code).
-
Refreshing the JWT token, inside DelegatingHandler. Do I need separate HttpClient?
I'm using MSAL.NET and the library API automatically refreshes the token, if needed, when the token is silently acquired.
-
Azure.Identity and MSAL
The article "MSAL.NET or Microsoft.Identity.Web" might be helpful: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/MSAL.NET-or-Microsoft.Identity.Web
-
General steps for azure AD authentication single tenant
Are you using MSAL.NET? I've recently done this for a proof-of-concept app in Forms... Look at this sample.
-
REST API Authentication for Web App - Best practices
have you looked into using MSAL 2.0? This would be a good start
microsoft-identity-web
-
Implementing fine-grained access control with ASP.NET Core custom endpoint metadata
Microsoft.Identity.Web's source code.
-
Azure AD - How to have a Distributed Token Cache per tenant?
I'm working on migrating a single-tenant, single-db ASP.NET Core Web API project that uses Azure AD with a DistributedSqlServerCache to support a multi-tenant, multi-db approach.
-
Securing a .NET Azure Function with Azure AD
Last week I was asked by someone in the community for a sample that shows how to secure Azure Functions with Azure AD. And specifically, a .NET 5 or 6 Azure Function using the Microsoft.Identity.Web library to validate tokens and authorize access.
-
Azure.Identity and MSAL
Also, check out Microsoft.Identity.Web https://github.com/AzureAD/microsoft-identity-web. It’s another wrapper around MSAL. It wraps some common best practices a little better than Azure.Identity does.
-
Modernize your legacy API authentication with Microsoft.Identity.Web and Azure AD
In a previous blog post, we looked at how to migrate the authentication code of a front-end solution written with ASP.NET Core to using the latest Microsoft.Identity.Web library for .NET. That was part 1 of our short series. For part 2, we will look at how to modernize the auth code in our back-end API using Microsoft.Identity.Web again.
-
Another Authentication/Authorisation question
You should check this out: https://github.com/AzureAD/microsoft-identity-web/wiki/customization
-
Migrating from old authentication code in ASP.NET with Microsoft.Identity.Web and Azure AD
About 3 years ago, I wrote some code for a customer. It was as sample solution. The front end was as straight up ASP.NET Core MVC app. The backend API was a simple .NET Core API. Both made use ofOpen ID Connect (OIDC) and OAuth2 to authenticate users and acquire tokens in order to retrieve and update a ToDo list. The juice of the app is in the authentication. So in this blog post, we'll look how to take out the "old" authentication code and replace it with the latest and greatest in ASP.NET Core - Microsoft.Identity.Web. The blog will come in two parts:
What are some alternatives?
SolrNet - Solr client for .Net
ms-identity-javascript-angular-spa-dotnetcore-webapi-roles-groups - Angular single-page application (SPA) calling .NET Core web API using App Roles and Security Groups for Implementing Role-Based Access Control (RBAC) using MSAL Angular
DynamicRoleBasedAuthorizationNETCore - Dynamic Role-Based Access Control for ASP.NET Core MVC and Web API
JwtAuthDemo - ASP.NET Core + Angular JWT auth demo; integration tests; login, logout, refresh token, impersonation, authentication, authorization; run on Docker Compose.
active-directory-xamarin-native-v2 - This is a simple Xamarin Forms app showcasing how to use MSAL.NET to authenticate work or school and Microsoft personal accounts with the Microsoft identity platform, and access the Microsoft Graph with the resulting token.
SecureAzureFunctionMiW
fs_extra - Expanding opportunities standard library std::fs and std::io
microsoft-authentication-library-for-android - Microsoft Authentication Library (MSAL) for Android
practical-aspnetcore - Practical samples of ASP.NET Core 9 RC2, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
jellyfin-client-avalonia
aspnetcoreaadauth