AppModelv2-NativeClient-DotNet | Windows Desktop application
kandi X-RAY | AppModelv2-NativeClient-DotNet Summary
kandi X-RAY | AppModelv2-NativeClient-DotNet Summary
services: active-directory platforms: dotnet author: jmprieur level: 200 client: .NET Desktop (WPF) service: ASP.NET Core Web API endpoint: Microsoft identity platform page_type: sample languages:.
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 AppModelv2-NativeClient-DotNet
AppModelv2-NativeClient-DotNet Key Features
AppModelv2-NativeClient-DotNet Examples and Code Snippets
git clone https://github.com/AzureADQuickStarts/appmodelv2-nativeclient-dotnet.git
Community Discussions
Trending Discussions on AppModelv2-NativeClient-DotNet
QUESTION
I have a problem with a my api that is protected with "Azure AD OAuth 2.0". We want to give our associates access to our api (without any end user interaction/approvals)
I once copied this example and last time I tried it I could, from my api-code, see the claims sent from our clients. Now I cant anymore.
.
This is my setup in azure
.
This is what I see on the ClaimsPrincipal.Current .
I expected to see the two scope claims. What Im I doing wrong or how can I start finding the error?
...ANSWER
Answered 2018-Aug-30 at 09:19Well, simply put because delegated permissions apply when an app calls an API on behalf of a user. There is no user in your scenario, so only application permissions apply.
In this scenario you should define application permissions and grant them to your app.
You can then find their values in the roles
claim.
Here is my article on the subject: https://joonasw.net/view/defining-permissions-and-roles-in-aad
Here is an example permission defined in the manifest of an API:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AppModelv2-NativeClient-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