This file contains hidden or 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
| { | |
| "name": "ng2a", | |
| "version": "1.0.0", | |
| "dependencies": { | |
| "express": "4.13.4" | |
| }, | |
| "engines": { | |
| "node": ">= 4.2.1", | |
| "npm": ">= 3" | |
| } |
This file contains hidden or 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
| var express = require('express'), | |
| path = require('path'), | |
| fs = require('fs'); | |
| var app = express(); | |
| var staticRoot = __dirname + '/'; | |
| app.set('port', (process.env.PORT || 3000)); | |
| app.use(express.static(staticRoot)); |
This file contains hidden or 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
| <configuration> | |
| <system.webServer> | |
| <handlers> | |
| <!-- indicates that the app.js file is a node.js application to be handled by the iisnode module --> | |
| <add name="iisnode" path="server.js" verb="*" modules="iisnode" /> | |
| </handlers> | |
| <rewrite> | |
| <rules> |
This file contains hidden or 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
| using Microsoft.Owin.Security.DataProtection; | |
| ... | |
| appBuilder.SetDataProtectionProvider(new MachineKeyProtectionProvider()); | |
| ... | |
| internal class MachineKeyProtectionProvider : IDataProtectionProvider | |
| { | |
| public IDataProtector Create(params string[] purposes) | |
| { | |
| return new MachineKeyDataProtector(purposes); |
This file contains hidden or 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
| import { Injectable } from '@angular/core'; | |
| import 'expose?AuthenticationContext!../../../node_modules/adal-angular/lib/adal.js'; | |
| import { AuthContext } from './authentication.context'; | |
| import { Observable, AsyncSubject, BehaviorSubject } from 'rxjs'; | |
| let createRawAuthContext: adal.AuthenticationContextStatic = AuthenticationContext; | |
| declare let Logging: adal.Logging; | |
| @Injectable() | |
| export class AuthProvider { |