microsoft-authentication-library-for-dotnet
DynamicRoleBasedAuthorizationNETCore
microsoft-authentication-library-for-dotnet | DynamicRoleBasedAuthorizationNETCore | |
---|---|---|
11 | 1 | |
1,387 | 455 | |
1.4% | - | |
9.4 | 3.3 | |
6 days ago | 10 months ago | |
C# | C# | |
MIT License | GNU General Public License v3.0 only |
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
DynamicRoleBasedAuthorizationNETCore
-
EF Core multiple Database providers
You can find the source code for this walkthrough on Github.
What are some alternatives?
microsoft-identity-web - Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
IdentityServer4.Admin - The administration for the IdentityServer4 and Asp.Net Core Identity
SolrNet - Solr client for .Net
JsonNamingPolicy - Naming policies for System.Text.Json
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.
AspNetCore.Identity.Mongo - This is a MongoDB provider for the ASP.NET Core 2 Identity framework
fs_extra - Expanding opportunities standard library std::fs and std::io
IdentityServer4AspNetCoreIdentityTemplate - An ASP.NET Core 6.0 IdentityServer4 Identity Bootstrap 4 template with localization
microsoft-authentication-library-for-android - Microsoft Authentication Library (MSAL) for Android
IdentityServer4 - OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
jellyfin-client-avalonia
IdentityManager2 - Development tool for administering users and roles