aspnetcore-idsrv-aad-example | NET Core apps secured by IdentityServer4 | Azure library
kandi X-RAY | aspnetcore-idsrv-aad-example Summary
kandi X-RAY | aspnetcore-idsrv-aad-example Summary
ASP.NET Core apps secured by IdentityServer4 with Azure AD
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 aspnetcore-idsrv-aad-example
aspnetcore-idsrv-aad-example Key Features
aspnetcore-idsrv-aad-example Examples and Code Snippets
Community Discussions
Trending Discussions on aspnetcore-idsrv-aad-example
QUESTION
I have taken this sample from github to attempt to use IdentityServer4 and Azure AD for authentication.
While I have it working and returning a token, it seems that the claims that I would have expected to receive from Azure AD are not included in the token(s) issued through IdentityServer.
It could be that this is intentional and that I have misunderstood this flow, but I was hoping that the roles that a user is assigned through Azure AD (plus the tenant ID and other useful 'bits' from the Azure token) would be able to be included in the tokens issued to the client.
Would anyone be able to shed some light on this for me? I can paste code in here but the link to the github code is pretty much the same as what I am using.
...ANSWER
Answered 2018-Feb-14 at 07:31I was trying to do the same thing, and managed to eventually piece bits together from looking at the IS4 docs, Github and StackOverflow.
You need to configure a new instance of IProfileService
(Docs) in order to tell IdentityServer4 which additional claims for a user's identity (obtained from Azure AD in your case) you want to be passed back to the client.
An example might look like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aspnetcore-idsrv-aad-example
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