Google "rbrayb gist"
#globalazure
http://auckland.azurebootcamp.net/
My presentation
Add a user to Azure AD:
{ | |
"variables": [], | |
"info": { | |
"name": "ADFS Public - Confidential", | |
"_postman_id": "4c0d0604-58e6-35b6-50bc-51c69d779f39", | |
"description": "Confidential code flow.", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ |
{ | |
"variables": [], | |
"info": { | |
"name": "ADFS My IIS", | |
"_postman_id": "f2145f47-b93d-b35a-5707-c115e866bf2b", | |
"description": "Auth code flow.", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
Functions | Azure AD | Azure AD B2C | ADFS 3.0 | ADFS 4.0 | identityserver | Auth0 | ||
---|---|---|---|---|---|---|---|---|
Authenticate against | Azure AD | Azure AD (but different tenant type to AAD) | AD | AD LDAP v3.0 | In Memory ASP.NET Identity Membership Reboot (Interface can be extended to any repository) | AD SQL DB Auth0 repository |
{ | |
"variables": [], | |
"info": { | |
"name": "ADFS Public Gist", | |
"_postman_id": "98eded09-3ecd-7239-9cf4-a6da2c92809e", | |
"description": "Auth code flow.", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ |
@*Replace existing code with ...*@ | |
@{ | |
ViewBag.Title = "User Claims"; | |
} | |
<h2>Welcome: @ViewBag.ClaimsIdentity.Name</h2> | |
<h3>Values from Identity</h3> | |
<table> | |
<tr> |
Google "rbrayb gist"
#globalazure
http://auckland.azurebootcamp.net/
My presentation
Add a user to Azure AD:
{ | |
"variables": [], | |
"info": { | |
"name": "ADFS Get a JWT", | |
"_postman_id": "3387aed8-7c33-0d50-20ce-596492f661a5", | |
"description": "Auth code flow.", | |
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" | |
}, | |
"item": [ | |
{ |
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
using Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Crypto.Digests; | |
using Org.BouncyCastle.Crypto.Encodings; | |
using Org.BouncyCastle.Crypto.Engines; | |
using Org.BouncyCastle.Crypto.Generators; | |
using Org.BouncyCastle.Crypto.Parameters; | |
using Org.BouncyCastle.Security; |
// Headers e.g. | |
// string header2048 = "0602000000A40000525341310008000001000100"; | |
private byte[] CreatePublicKey(byte[] publicKey) | |
{ | |
byte[] publicKey = new byte[publicKey.Length]; | |
byte[] header = null; | |
foreach (KeyValuePair<int, string> keyPair in headersList) |