azure-activedirectory-identitymodel-extensions-for-dotnet | IdentityModel extensions for .Net
kandi X-RAY | azure-activedirectory-identitymodel-extensions-for-dotnet Summary
kandi X-RAY | azure-activedirectory-identitymodel-extensions-for-dotnet Summary
If you noticed, we bumped the release from 5.x to 6.x We were maintaining two releases from two different branches. dev - 6.x dev5x - 5.x. Internally at Microsoft we were quickly required to remove all 3rd party libraries as IdentityModel is all about securing resources. Since there were some breaking changes, given the time-line we had to maintain two releases. Both of these branches were public and moved forward mostly in lock-step. Once we finished our SignedHttpRequest functionality in the 6.x branch, we realized the delta between 5.x aqnd 6.x was too large to maintain in both branches. We decided now was the time to switch to a single release branch. Since internally the versioning was at 6.4.2, we needed to release at 6.5.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-activedirectory-identitymodel-extensions-for-dotnet
azure-activedirectory-identitymodel-extensions-for-dotnet Key Features
azure-activedirectory-identitymodel-extensions-for-dotnet Examples and Code Snippets
Community Discussions
Trending Discussions on azure-activedirectory-identitymodel-extensions-for-dotnet
QUESTION
I have a problem: Application Insights is getting too many false positive and is sending mails on exceptions that, after investigation, cause no problem to our application
Summary, TL;DRThis is a X->Y problem. Problem Y is that AAI is logging a large number of server exceptions, see detailed explanation, and sending alerts to us. Problem X is that the JWT authentication middleware is throwing exceptions about unmatched key, but is recovering all of them swithching to a different OIDC provider. With the result that the invocation succeeds.
What can I do in order to either fix or whitelist these exceptions?
Question 2: when do exceptions get logged to AAI? Only when they are unhandled or when the logger decides to?
ContextOur application receives email data from Twilio Sendgrid via authenticated webhooks. It also allows our B2C tenant users to access the application and browse data/statistics.
B2C does not allow client credentials flow, and Sendgrid does not support scopes. In the end we ended up using two OIDC providers: Azure AD B2C for interactive users, and OpenIddict in memory to authenticate the Sendgrid service to us.
Some code ...ANSWER
Answered 2021-Aug-26 at 10:51What can I do in order to either fix or whitelist these exceptions?
Add a telemetry filter. Based on the exception telemetry you can decide to discard the telemetry.
Question 2: when do exceptions get logged to AAI? Only when they are unhandled or when the logger decides to?
When unhandled, or when instructed to do so. For example, when an exception is logged using ILogger
it will be logged to AAI as well when using the AAI ILogger (see docs)
QUESTION
There is a C# application under development that is supposed to be a part of a bigger backend application to process some data. This application is supposed to obtain a token from Azure AD B2C and send it to an HTTP-triggered function where it is supposed to be validated by the following code:
...ANSWER
Answered 2021-Feb-26 at 14:53Obtaining a token for the AAD B2C tenant without UI is possible in two ways and you should probably pick one depending on what exactly you want to achieve:
- user token - by using Resource Owner Password Credentials flow - https://docs.microsoft.com/en-us/azure/active-directory-b2c/add-ropc-policy. This flow is deprecated though and mentioned usually in legacy application context
- server-side application token - by using Client Cretendial flow - this on the other hand requires using requests specific for AAD but with AAD B2C tenant - https://docs.microsoft.com/en-us/azure/active-directory-b2c/application-types#daemonsserver-side-applications
I'm also not quite sure why should you use id_token for that. If the application needs to authorize the request to the function with the token then it should be an access token regardless of how the token is retrieved (interactive UI or not).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-activedirectory-identitymodel-extensions-for-dotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page