Skip to content

Added support for HttpContext.User claim lookup using ${aspnet-user-claim}#609

Merged
304NotModified merged 1 commit intoNLog:masterfrom
snakefoot:master
Oct 30, 2020
Merged

Added support for HttpContext.User claim lookup using ${aspnet-user-claim}#609
304NotModified merged 1 commit intoNLog:masterfrom
snakefoot:master

Conversation

@snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Oct 5, 2020

Example: ${aspnet-user-claim:ClaimTypes.Name} . See also ClaimTypes-constants.

Not implemented for NLog.Web (MVC), since it requires NetFramework45.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 5, 2020

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

78.9% 78.9% Coverage
0.0% 0.0% Duplication

@304NotModified 304NotModified merged commit aaa6668 into NLog:master Oct 30, 2020
@304NotModified
Copy link
Member

Thanks!

@snakefoot
Copy link
Contributor Author

Created wiki-page: https://github.com/NLog/NLog/wiki/AspNet-User-Claim-layout-renderer

@304NotModified
Copy link
Member

docs for nlog-project here: NLog/NLog.github.io#157

@304NotModified
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants