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
| test |
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
| Introduction to Owin | |
| - What is Owin | |
| - Benefits of Owin | |
| - Introduction to middleware - how middleware is useful | |
| Introduction to OAuth | |
| - What does OAuth do | |
| - What doesn't OAuth do | |
| - The spec | |
| - Example of flow |
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
| public static class IdentifierGenerator | |
| { | |
| private const string Alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | |
| private static readonly int _base = Alphabet.Length; | |
| public static string Encode(int index) | |
| { | |
| if (index == 0) | |
| return Alphabet[0].ToString(); |
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
| public class AccountController : Controller | |
| { | |
| [HttpPost] | |
| [ValidateAntiForgeryToken] | |
| public ActionResult Login() | |
| { | |
| var redirectUri = Url.Action( | |
| "ExternalLoginCallback", | |
| "Account"); | |
| return new ChallengeResult(redirectUri); |
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
| USE master; | |
| DROP DATABASE Experiment; | |
| CREATE DATABASE Experiment; | |
| USE Experiment; | |
| CREATE TABLE dbo.Tags | |
| ( | |
| TagName NVARCHAR(100) PRIMARY KEY |
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
| USE master; | |
| DROP DATABASE Experiment; | |
| CREATE DATABASE Experiment; | |
| USE Experiment; | |
| CREATE TABLE dbo.Departments | |
| ( | |
| departmentid INT PRIMARY KEY IDENTITY, | |
| name NVARCHAR(100) NOT NULL |
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
| sdfasdfasdf |
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
| USE [Master]; | |
| IF DB_ID('Prototype') IS NOT NULL | |
| DROP DATABASE Prototype; | |
| CREATE DATABASE Prototype; | |
| USE Prototype; | |
| CREATE TABLE dbo.Users |
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 System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Microsoft.Data.Entity; | |
| using Microsoft.Data.Entity.Metadata; | |
| namespace ConsoleApp1 | |
| { | |
| public class Program | |
| { |
NewerOlder