active-directory-dotnet-webapp-wsfederation | NET MVC web application that uses WS | Azure library
kandi X-RAY | active-directory-dotnet-webapp-wsfederation Summary
kandi X-RAY | active-directory-dotnet-webapp-wsfederation Summary
This sample shows how to build a .Net MVC web application that uses WS-Federation to sign-in users from a single Azure Active Directory tenant, using the ASP.Net WS-Federation OWIN middleware. The use of WS-Federation is appropriate when you want to maintain a single app codebase that can be deployed either against Azure AD or an on-premises provider such as an Active Directory Federation Services (ADFS) instance. For scenarios in which the app targets exclusively Azure AD (or an OpenID Connect compliant provider) please refer to the WebApp-OpenIdConnect-DotNet sample. For more information about how the protocols work in this scenario and other scenarios, see Authentication Scenarios for Azure AD.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Implements the default prefitter .
- Callback for when everything changes
- Searches for single selector .
- Create an animation
- Creates a new matcher matcher .
- Creates a new matcher handler .
- workaround for AJAX requests
- Test input types .
- Creates a matcher that matches relative tokens .
- Handle the response of ajax responses
active-directory-dotnet-webapp-wsfederation Key Features
active-directory-dotnet-webapp-wsfederation Examples and Code Snippets
Community Discussions
Trending Discussions on active-directory-dotnet-webapp-wsfederation
QUESTION
Based on the code sample mentioned at URL: https://github.com/Azure-Samples/active-directory-dotnet-webapp-wsfederation , I implemented an application that uses WS-Federation (ASP.Net WS-Federation OWIN middleware) to authenticate users from an Azure AD tenant. Now I am looking for an approach to query the Graph API later in my application to fetch additional claims information required from application point of view.
Here in this scenario, I would like to know whether it is possible to query the Graph API or not. Do I need to update the existing WS-Federation protocol to OpenId Connect.
Can anyone help me to provide their guidance here.
...ANSWER
Answered 2017-Aug-20 at 20:31The ideal would be to move to OpenId Connect, which would allow you to take care of both sign in and API in a single setup and flow. If you want to stick with your current ws-fed setup, you can layer oauth2 on top of your implementation and retrieve the access token you need any time after the sign in. We have a sample showing exactly that, see https://azure.microsoft.com/en-us/resources/samples/active-directory-dotnet-webapp-webapi-oauth2-useridentity/
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install active-directory-dotnet-webapp-wsfederation
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