This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ADFS 4.0 | |
/*private static string aadInstance = ConfigurationManager.AppSettings["ida:AADInstance"]; | |
private static string tenant = ConfigurationManager.AppSettings["ida:Tenant"]; | |
private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"]; | |
Uri redirectUri = new Uri(ConfigurationManager.AppSettings["ida:RedirectUri"]); | |
private static string authority = String.Format(CultureInfo.InvariantCulture, aadInstance, tenant);*/ | |
private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"]; | |
Uri redirectUri = new Uri(ConfigurationManager.AppSettings["ida:RedirectUri"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class Startup | |
{ | |
// For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864 | |
public void ConfigureAuth(IAppBuilder app) | |
{ | |
/*app.UseWindowsAzureActiveDirectoryBearerAuthentication( | |
new WindowsAzureActiveDirectoryBearerAuthenticationOptions | |
{ | |
Audience = ConfigurationManager.AppSettings["ida:Audience"], | |
Tenant = ConfigurationManager.AppSettings["ida:Tenant"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://collectivegarbage.azurewebsites.net/use-thinktecture-identity-server-v2-to-authenticate-your-node-application/ | |
var express = require('express'), | |
app = express(), | |
bodyParser = require('body-parser'), | |
cookieParser = require('cookie-parser'), | |
session = require('express-session'), | |
passport = require('passport'), | |
wsfedsaml2 = require('passport-wsfed-saml2').Strategy; | |
NewerOlder