Created
June 1, 2016 04:07
-
-
Save VibhuKuchhal/51313e04c91909a5a180831a1f69633b to your computer and use it in GitHub Desktop.
This file contains 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
$(function () { | |
var tenant, token; | |
//"http://localhost:9279/api/Authentication", | |
$.ajax({ | |
url: "https://peoplepickerapp1.azurewebsites.net/api/Authentication", | |
dataType: "json", | |
type: "GET", | |
success: function (data) { | |
console.log(data); | |
if (data != null) { | |
tenant = data.TenantName; | |
token = data.Token; | |
} | |
} | |
}).done(function () { | |
AadInitiator(tenant, token) | |
}); | |
}); |
This file contains 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
<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components --%> | |
<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %> | |
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<%-- The markup and script in the following Content element will be placed in the <head> of the page --%> | |
<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server"> | |
<script type="text/javascript" src="../Scripts/jquery-2.2.3.js"></script> | |
<script type="text/javascript" src="../Scripts/jquery-ui-1.11.4.min.js"></script> | |
<script type="text/javascript" src="../Scripts/AadPicker.js"></script> | |
<SharePoint:ScriptLink Name="sp.js" runat="server" OnDemand="true" LoadAfterUI="true" Localizable="false" /> | |
<meta name="WebPartPageExpansion" content="full" /> | |
<!-- Add your CSS styles to the following file --> | |
<link rel="Stylesheet" type="text/css" href="../Content/App.css" /> | |
<link rel="Stylesheet" type="text/css" href="../Content/bootstrap.css" /> | |
<link rel="Stylesheet" type="text/css" href="../Content/jquery-ui.min.css" /> | |
<!-- Add your JavaScript to the following file --> | |
<script type="text/javascript" src="../Scripts/App.js"></script> | |
</asp:Content> | |
<%-- The markup in the following Content element will be placed in the TitleArea of the page --%> | |
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server"> | |
Page Title | |
</asp:Content> | |
<%-- The markup and script in the following Content element will be placed in the <body> of the page --%> | |
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server"> | |
<br /> | |
<br /> | |
<br /> | |
<div class="container body-content"> | |
<div class="row"> | |
<input class="form-control aadpicker" data-nature="autocomplete" data-minlength="0" data-idpairing="objectid" data-emailpairing="email" style="min-width: 50%; max-width: 50%;" placeholder="Select User" /> | |
<input class="form-control" id="email" style="min-width: 50%; max-width: 50%;" /> | |
<input class="form-control" id="objectid" style="min-width: 50%; max-width: 50%;" /> | |
</div> | |
<hr /> | |
</div> | |
</asp:Content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment