Skip to content

Instantly share code, notes, and snippets.

View tushargupta51's full-sized avatar

tushar gupta tushargupta51

View GitHub Profile
@tushargupta51
tushargupta51 / app.js
Last active February 24, 2021 04:25
App reloading inside iFrame when renewing token - Solution 2
'use strict';
angular.module('todoApp', ['ngRoute','AdalAngular'])
.config(['$routeProvider', '$httpProvider', 'adalAuthenticationServiceProvider', function ($routeProvider, $httpProvider, adalProvider) {
$routeProvider.when("/Home", {
controller: "homeCtrl",
templateUrl: "/App/Views/Home.html",
}).when("/TodoList", {
controller: "todoListCtrl",
templateUrl: "/App/Views/TodoList.html",
@tushargupta51
tushargupta51 / app.js
Created June 24, 2016 18:11
App reloading inside iFrame when renewing token - Solution 1
'use strict';
if (window !== window.parent) {
angular.module('todoApp', ['AdalAngular'])
.config(['$httpProvider', 'adalAuthenticationServiceProvider', function ($httpProvider, adalProvider) {
adalProvider.init(
{
clientId: 'Enter your client ID here e.g. e9a5a8b6-8af7-4719-9821-0deef255f68e',
},
$httpProvider
);