-
- Id_token content
-
-
{{userInfo.userName}}
-
aud:{{userInfo.profile.aud}}
-
iss:{{userInfo.profile.iss}}
-
iat:{{userInfo.profile.iat}}
-
nbf:{{userInfo.profile.nbf}}
-
exp:{{userInfo.profile.exp}}
-
ver:{{userInfo.profile.ver}}
-
tid:{{userInfo.profile.tid}}
-
amr:{{userInfo.profile.amr}}
-
oid:{{userInfo.profile.oid}}
-
upn:{{userInfo.profile.upn}}
-
unique_name:{{userInfo.profile.unique_name}}
-
sub:{{userInfo.profile.sub}}
-
family_name:{{userInfo.profile.family_name}}
-
given_name:{{userInfo.profile.given_name}}
-
pwd_exp:{{userInfo.profile.pwd_exp}}
-
pwd_url:{{userInfo.profile.pwd_url}}
-
-
\ No newline at end of file
From 0247be2ceba82d1de2ed220b1ef94a29d35cb9ed Mon Sep 17 00:00:00 2001
From: "Rebecca A. Esquivel" <42479478+BAEsquivel@users.noreply.github.com>
Date: Thu, 15 Aug 2019 02:50:03 -0700
Subject: [PATCH 010/394] Delete userDataCtrl.js
---
samples/JwtBearerSample/wwwroot/App/Scripts/userDataCtrl.js | 6 ------
1 file changed, 6 deletions(-)
delete mode 100644 samples/JwtBearerSample/wwwroot/App/Scripts/userDataCtrl.js
diff --git a/samples/JwtBearerSample/wwwroot/App/Scripts/userDataCtrl.js b/samples/JwtBearerSample/wwwroot/App/Scripts/userDataCtrl.js
deleted file mode 100644
index 1b2511fdc..000000000
--- a/samples/JwtBearerSample/wwwroot/App/Scripts/userDataCtrl.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-angular.module('todoApp')
-.controller('userDataCtrl', ['$scope', 'adalAuthenticationService', function ($scope, adalService) {
-
-
-}]);
\ No newline at end of file
From 578c73d15078a8ee46b93ea53c383d451c4c128e Mon Sep 17 00:00:00 2001
From: "Rebecca A. Esquivel" <42479478+BAEsquivel@users.noreply.github.com>
Date: Thu, 15 Aug 2019 02:50:12 -0700
Subject: [PATCH 011/394] Delete todoListSvc.js
---
.../wwwroot/App/Scripts/todoListSvc.js | 24 -------------------
1 file changed, 24 deletions(-)
delete mode 100644 samples/JwtBearerSample/wwwroot/App/Scripts/todoListSvc.js
diff --git a/samples/JwtBearerSample/wwwroot/App/Scripts/todoListSvc.js b/samples/JwtBearerSample/wwwroot/App/Scripts/todoListSvc.js
deleted file mode 100644
index 87d064108..000000000
--- a/samples/JwtBearerSample/wwwroot/App/Scripts/todoListSvc.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-angular.module('todoApp')
-.factory('todoListSvc', ['$http', function ($http) {
- return {
- getItems : function(){
- return $http.get('/api/TodoList');
- },
- getItem : function(id){
- return $http.get('/api/TodoList/' + id);
- },
- postItem : function(item){
- return $http.post('/api/TodoList/',item);
- },
- putItem : function(item){
- return $http.put('/api/TodoList/', item);
- },
- deleteItem : function(id){
- return $http({
- method: 'DELETE',
- url: '/api/TodoList/' + id
- });
- }
- };
-}]);
\ No newline at end of file
From 0b50cec89c315a8642f668482553b09c4f24f123 Mon Sep 17 00:00:00 2001
From: "Rebecca A. Esquivel" <42479478+BAEsquivel@users.noreply.github.com>
Date: Thu, 15 Aug 2019 02:50:20 -0700
Subject: [PATCH 012/394] Delete todoListCtrl.js
---
.../wwwroot/App/Scripts/todoListCtrl.js | 71 -------------------
1 file changed, 71 deletions(-)
delete mode 100644 samples/JwtBearerSample/wwwroot/App/Scripts/todoListCtrl.js
diff --git a/samples/JwtBearerSample/wwwroot/App/Scripts/todoListCtrl.js b/samples/JwtBearerSample/wwwroot/App/Scripts/todoListCtrl.js
deleted file mode 100644
index 7dbd4f29c..000000000
--- a/samples/JwtBearerSample/wwwroot/App/Scripts/todoListCtrl.js
+++ /dev/null
@@ -1,71 +0,0 @@
-'use strict';
-angular.module('todoApp')
-.controller('todoListCtrl', ['$scope', '$location', 'todoListSvc', 'adalAuthenticationService', function ($scope, $location, todoListSvc, adalService) {
- $scope.error = "";
- $scope.loadingMessage = "Loading...";
- $scope.todoList = null;
- $scope.editingInProgress = false;
- $scope.newTodoCaption = "";
-
-
- $scope.editInProgressTodo = {
- Description: "",
- ID: 0
- };
-
-
-
- $scope.editSwitch = function (todo) {
- todo.edit = !todo.edit;
- if (todo.edit) {
- $scope.editInProgressTodo.Description = todo.Description;
- $scope.editInProgressTodo.ID = todo.ID;
- $scope.editingInProgress = true;
- } else {
- $scope.editingInProgress = false;
- }
- };
-
- $scope.populate = function () {
- todoListSvc.getItems().success(function (results) {
- $scope.todoList = results;
- $scope.loadingMessage = "";
- }).error(function (err) {
- $scope.error = err;
- $scope.loadingMessage = "";
- })
- };
- $scope.delete = function (id) {
- todoListSvc.deleteItem(id).success(function (results) {
- $scope.loadingMessage = "";
- $scope.populate();
- }).error(function (err) {
- $scope.error = err;
- $scope.loadingMessage = "";
- })
- };
- $scope.update = function (todo) {
- todoListSvc.putItem($scope.editInProgressTodo).success(function (results) {
- $scope.loadingMsg = "";
- $scope.populate();
- $scope.editSwitch(todo);
- }).error(function (err) {
- $scope.error = err;
- $scope.loadingMessage = "";
- })
- };
- $scope.add = function () {
-
- todoListSvc.postItem({
- 'Description': $scope.newTodoCaption,
- 'Owner': adalService.userInfo.userName
- }).success(function (results) {
- $scope.loadingMsg = "";
- $scope.newTodoCaption = "";
- $scope.populate();
- }).error(function (err) {
- $scope.error = err;
- $scope.loadingMsg = "";
- })
- };
-}]);
\ No newline at end of file
From 505439244d8321fd4adf9bab0955c0a2a4d314ed Mon Sep 17 00:00:00 2001
From: "Rebecca A. Esquivel" <42479478+BAEsquivel@users.noreply.github.com>
Date: Thu, 15 Aug 2019 02:50:29 -0700
Subject: [PATCH 013/394] Delete indexCtrl.js
---
samples/JwtBearerSample/wwwroot/App/Scripts/indexCtrl.js | 5 -----
1 file changed, 5 deletions(-)
delete mode 100644 samples/JwtBearerSample/wwwroot/App/Scripts/indexCtrl.js
diff --git a/samples/JwtBearerSample/wwwroot/App/Scripts/indexCtrl.js b/samples/JwtBearerSample/wwwroot/App/Scripts/indexCtrl.js
deleted file mode 100644
index baaa4b242..000000000
--- a/samples/JwtBearerSample/wwwroot/App/Scripts/indexCtrl.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-angular.module('todoApp')
-.controller('indexCtrl', ['$scope', 'adalAuthenticationService', function ($scope, adalService) {
-
-}]);
\ No newline at end of file
From 0edce2202ef3a366a8d52791c8040c23f3d6676a Mon Sep 17 00:00:00 2001
From: "Rebecca A. Esquivel" <42479478+BAEsquivel@users.noreply.github.com>
Date: Thu, 15 Aug 2019 02:50:38 -0700
Subject: [PATCH 014/394] Delete homeCtrl.js
---
.../JwtBearerSample/wwwroot/App/Scripts/homeCtrl.js | 13 -------------
1 file changed, 13 deletions(-)
delete mode 100644 samples/JwtBearerSample/wwwroot/App/Scripts/homeCtrl.js
diff --git a/samples/JwtBearerSample/wwwroot/App/Scripts/homeCtrl.js b/samples/JwtBearerSample/wwwroot/App/Scripts/homeCtrl.js
deleted file mode 100644
index 09a3beae5..000000000
--- a/samples/JwtBearerSample/wwwroot/App/Scripts/homeCtrl.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-angular.module('todoApp')
-.controller('homeCtrl', ['$scope', 'adalAuthenticationService','$location', function ($scope, adalService, $location) {
- $scope.login = function () {
- adalService.login();
- };
- $scope.logout = function () {
- adalService.logOut();
- };
- $scope.isActive = function (viewLocation) {
- return viewLocation === $location.path();
- };
-}]);
\ No newline at end of file
From a853f3a33f8c029785a09741cdaaa84fb9764432 Mon Sep 17 00:00:00 2001
From: "Rebecca A. Esquivel" <42479478+BAEsquivel@users.noreply.github.com>
Date: Thu, 15 Aug 2019 02:58:50 -0700
Subject: [PATCH 015/394] Trash.txt
---
samples/OpenIdConnectSample/Readme.md | 44 ---------------------------
1 file changed, 44 deletions(-)
delete mode 100644 samples/OpenIdConnectSample/Readme.md
diff --git a/samples/OpenIdConnectSample/Readme.md b/samples/OpenIdConnectSample/Readme.md
deleted file mode 100644
index 846e3f8e6..000000000
--- a/samples/OpenIdConnectSample/Readme.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# How to set up the sample locally
-
-The OpenIdConnect sample supports multilpe authentication providers. In these instruction, we will explore how to set up this sample with both Azure Active Directory and Google Identity Platform.
-
-## Determine your development environment and a few key variables
-
-This sample is configured to run on port __44318__ locally. In Visual Studio, the setting is carried out in `.\properties\launchSettings.json`. When the application is run from command line, the URL is coded in `Program.cs`.
-
-If the application is run from command line or terminal, environment variable ASPNETCORE_ENVIRONMENT should be set to DEVELOPMENT to enable user secret.
-
-## Configure the Authorization server
-
-### Configure with Azure Active Directory
-
-1. Set up a new Azure Active Directory (AAD) in your Azure Subscription.
-2. Open the newly created AAD in Azure web portal.
-3. Navigate to the Applications tab.
-4. Add a new Application to the AAD. Set the "Sign-on URL" to sample application's URL.
-5. Naigate to the Application, and click the Configure tab.
-6. Find and save the "Client Id".
-7. Add a new key in the "Keys" section. Save value of the key, which is the "Client Secret".
-8. Click the "View Endpoints" on the drawer, a dialog will shows six endpoint URLs. Copy the "OAuth 2.0 Authorization Endpoint" to a text editor and remove the "/oauth2/authorize" from the string. The remaining part is the __authority URL__. It looks like `https://login.microsoftonline.com/