<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="INTMAP_AuthenticationType.aspx.vb" Inherits="FinIQWebApp.INTMAP_AuthenticationType" Title="INTMAP Authentication Type" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>



    <style type="text/css">
        .lowerDiv {
            margin-top: 20px;
            padding-left: 24px;
        }

        .topTable {
            margin-left: 20px;
            margin-top: 10px;
            margin-bottom: 20px;
        }

        .tdLabel {
            width: 95px;
        }

        .tdTxtAuthType {
            width: 320px;
        }

        .txtalignRight {
            text-align: right;
        }

        .Enabled-button {
            width: 70px;
            margin-left: 5px;
        }
        /*Changed by Pranav D 23-11-2021 JIRA :-HLBKLINT-98 */
        .breakword {
            white-space: inherit !important;
            word-break: break-all !important;
            overflow:auto;
            height: 50px;
        }

        
    </style>


    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
        DisplayAfter="0">
        <ProgressTemplate>
            <div class="divLoading">
                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" class="PanelPad">
        <ContentTemplate>




            <table class="topTable">

                <tr>

                    <td class="tdLabel">
                        <asp:Label ID="lblTemplateID" runat="server" CssClass="lbl" Text="Template ID" Visible="false"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTemplateID" runat="server" Width="300px" CssClass="txt" ReadOnly="true" Visible="false"></asp:TextBox>
                    </td>


                </tr>


            </table>

            <div>
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="lblError" runat="server" CssClass="lblerror"></asp:Label></td>
                    </tr>

                </table>
                <table>
                    <tr>
                        <td>
                            <asp:Button ID="btnLoad" runat="server" Text="Load" class="btn Enabled-button" TabIndex="10" />
                        </td>

                        <td>
                            <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn Enabled-button" TabIndex="13" />
                        </td>
                        <td>
                            <%--  <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="btn Enabled-button" onclientclick="return confirmationDialog(this, 'Confirmation', 'Do you want to perform this Action ?');" TabIndex="16"/>--%> <%--Commented by SashaP on 25-01-2021 for AllFunds --%>
                            <%--div hidden required as call to function in vb.net from js function does not work if button is set to visible false --%>
                            <div hidden>
                                <asp:Button ID="hdnbtnDelete" runat="server" Text="Delete" CssClass="btn Enabled-button" TabIndex="16" />
                            </div>
                            <%--Button to check if mapping exists in database --%>
                            <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="btn Enabled-button" TabIndex="16" />

                        </td>
                    </tr>
                </table>

                <table>
                    <tr>
                        <td>

                            <%--   <div class="lowerDiv">--%>
                            <asp:GridView ID="gvINTMAPAuthenticationType" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                BorderStyle="Solid" BorderWidth="1px" CellPadding="3" CssClass="Grid" AllowPaging="true" PageSize="20" ShowHeaderWhenEmpty="true" Style="table-layout: fixed">
                                <%-- <SelectedRowStyle CssClass="GridItemSelect" /> --%>
                                <AlternatingRowStyle CssClass="GridItem" />
                                <RowStyle CssClass="GridItem" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />

                                <PagerSettings Mode="NumericFirstLast"
                                    FirstPageText="First"
                                    LastPageText="Last"
                                    Position="Bottom" />
                                <Columns>

                                    <asp:TemplateField HeaderText="">


                                        <ItemTemplate>
                                            <asp:CheckBox type="checkbox" runat="server" ID="chkGrid" AutoPostBack="true" Enabled="true" />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField>

                                        <EditItemTemplate>
                                            <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" Text="Update" /><%-- CssClass="link"--%>
                                            <asp:LinkButton ID="btnCancel" runat="server" CommandName="Cancel" Text="Cancel" />
                                            <%--CssClass="link"--%>
                                        </EditItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                        <FooterStyle HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" Text="Edit" Width="90" />
                                            <%--CssClass="link"--%>
                                        </ItemTemplate>

                                        <FooterTemplate>
                                            <asp:LinkButton ID="btnInsert" runat="server" CommandName="Add" Text="Add" Width="90" ValidationGroup="Insert" />
                                            <%--CssClass="link"--%>
                                        </FooterTemplate>

                                    </asp:TemplateField>



                                    <%-- Commented by SashaP on 21-01-2021 for AllFunds as asked by ArshinS
                              <asp:TemplateField >
                                  <ItemStyle HorizontalAlign="Center" />
                                 
                                  <ItemTemplate>
                                        <asp:LinkButton ID="btnMap" runat="server" CommandName="Map" Text="Map" Width="90" /> 
                                    </ItemTemplate>
                              
                              </asp:TemplateField>


                              <asp:TemplateField HeaderText="Mapped/Unmapped" ControlStyle-Width="90">
                                   <HeaderStyle width="100px" />
                                  <ItemStyle Wrap="true" width="100px" HorizontalAlign="Center" />
                                
                                  <ItemTemplate>
                                        <asp:Label ID="lblMapUnmap" Text="Unmapped" CssClass="lbl" runat="server"/>
                                    </ItemTemplate>
                              
                              </asp:TemplateField>


END::SashaP||21-01-2021--%>

                                    <asp:TemplateField HeaderText="ID" ControlStyle-Width="40" Visible="false">
                                        <HeaderStyle Width="10px" />
                                        <ItemStyle Wrap="true" Width="40px" HorizontalAlign="right" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblIAPD_ID" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_ID").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtIAPD_ID" runat="server" CssClass="txt txtalignRight" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_ID").ToString) %>' ReadOnly="True"></asp:TextBox>
                                        </EditItemTemplate>


                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Authentication Scheme" ControlStyle-Width="170">
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblIAPD_Name" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Name").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtIAPD_Name" runat="server" Width="100px" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Name").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrIAPD_Name" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Authentication Type" ControlStyle-Width="170">
                                        <HeaderStyle Width="20px" />
                                        <ItemStyle Wrap="false" Width="40px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblAuth_Type" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Auth_Type").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtAuth_Type" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Auth_Type").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrAuth_Type" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Client ID">
                                        <HeaderStyle />
                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblClientID" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_ClientID").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtClientID" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_ClientID").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrClientID" Width="200px" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Client Secret">
                                        <HeaderStyle />
                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblClient_Secret" CssClass="lbl" runat="server" Text="****" />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtClient_Secret" CssClass="txt" runat="server" TextMode="Password" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Client_Secret").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrClient_Secret" CssClass="txt" runat="server" TextMode="Password" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>


                                    <%--Changes done by Pranav D 04-Sep-2021 Removed fixed with og token end point to resolved overlapping issue--%>
                                    <asp:TemplateField HeaderText="Token EndPoint">
                                        <HeaderStyle />
                                        <ItemStyle Wrap="true" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblToken_EndPoint" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_EndPoint").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtToken_EndPoint" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_EndPoint").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrToken_EndPoint" Width="250px" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Token Type" ControlStyle-Width="170">
                                        <HeaderStyle Width="20px" />
                                        <ItemStyle Wrap="true" Width="40px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblToken_Type" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_Type").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtToken_Type" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_Type").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrToken_Type" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Token Expiry Seconds" ControlStyle-Width="170">
                                        <HeaderStyle Width="70px" />
                                        <ItemStyle Wrap="true" Width="70px" HorizontalAlign="right" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblToken_Expiry_Seconds" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_Expiry_Seconds").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtToken_Expiry_Seconds" runat="server" CssClass="txt txtalignRight" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_Expiry_Seconds").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrToken_Expiry_Seconds" runat="server" CssClass="txt txtalignRight" oncopy="return false" onpaste="return false" oncut="return false" onkeypress="return AllowNumericOnly(event);" MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Entity ID" ControlStyle-Width="170" Visible="false">
                                        <HeaderStyle Width="15px" />
                                        <ItemStyle Wrap="true" Width="40px" HorizontalAlign="right" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblEntity_ID" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Entity_ID").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtEntity_ID" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Entity_ID").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrEntity_ID" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Grant Type" ControlStyle-Width="170">
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblGrant_Type" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Grant_Type").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtGrant_Type" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Grant_Type").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrGrant_Type" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Auth Realm" ControlStyle-Width="170">
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblAuth_Realm" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Auth_Realm").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtAuth_Realm" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Auth_Realm").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrAuth_Realm" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>
                                    <%--<Added by Pranav D 17-Aug-2021 Additional column with Token Status SP Name>--%>
                                    <asp:TemplateField HeaderText="Token Status SP Name" ControlStyle-Width="170">
                                        <HeaderStyle Width="100px" />
                                        <ItemStyle Wrap="true" Width="100px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblTokenStatusSPName" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_Status_SPName").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtTokenStatusSPName" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Token_Status_SPName").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrTokenStatusSPName" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' />
                                            <%--character length removed by Pranav D 04-Sep-2021 to remove character limitation as asked by Ashwin sir--%>
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <%--</Added by Pranav D 17-Aug-2021 Additional column with Token Status SP Name>--%>

                                    <asp:TemplateField HeaderText="Access Token" ControlStyle-Width="300" Visible="false">
                                        <HeaderStyle Width="310px" />
                                        <ItemStyle Wrap="true" Width="310px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblAccess_Token" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Access_Token").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtAccess_Token" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Access_Token").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrAccess_Token" runat="server" CssClass="txt" Width="310px" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="100" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Refresh Token" ControlStyle-Width="300" Visible="false">
                                        <HeaderStyle Width="310px" />
                                        <ItemStyle Wrap="true" Width="310px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblRefresh_Token" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Refresh_Token").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtRefresh_Token" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Refresh_Token").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrRefresh_Token" runat="server" CssClass="txt" Width="310px" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="100" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <%--  <Start || Added by Arshin S || on 15th Jan 2021 || FINAFINT-2 Add columns mentioned in description in Auth Type master page || As asked by Prachi P>--%>

                                    <asp:TemplateField HeaderText="Created At" ControlStyle-Width="175">
                                        <HeaderStyle Width="175px" />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreated_At" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Created_At").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:Label ID="lblCreated_At1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Created_At").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label ID="lblftrCreated_At" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Created By" ControlStyle-Width="175">
                                        <HeaderStyle Width="175px" />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblCreated_By" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Created_By").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:Label ID="lblCreated_By1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Created_By").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label ID="lblftrCreated_By" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Updated At" ControlStyle-Width="175">
                                        <HeaderStyle Width="175px" />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblUpdated_At" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Updated_At").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:Label ID="lblUpdated_At1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Updated_At").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label ID="lblftrUpdated_At" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Updated By" ControlStyle-Width="175">
                                        <HeaderStyle Width="175px" />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="left" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblUpdated_By" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Updated_By").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:Label ID="lblUpdated_By1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Updated_By").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label ID="lblftrUpdated_By" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Token Updated At" ControlStyle-Width="175" Visible="false"><%--Updated by SashaP on 18-01-2021 for All Funds as asked by ArshinS --%>
                                        <HeaderStyle Width="175px" />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblAccess_Token_Updated_At" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Access_Token_Updated_At").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:Label ID="lblAccess_Token_Updated_At1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Access_Token_Updated_At").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:Label ID="lblftrAccess_Token_Updated_At" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>
                                    <%--  <End || Added by Arshin S || on 15th Jan 2021 || FINAFINT-2 Add columns mentioned in description in Auth Type master page || As asked by Prachi P>--%>

                                    <%--START : Pranav D 21-Sep-2021 JIRA ID :  INT1FIN47-83 | Auth def param new columns--%>

                                    <asp:TemplateField HeaderText="Authentication Request" ControlStyle-Width="175" Visible="True" >
                                        <HeaderStyle Width="175px"  />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblIAPD_Authentication_Request"  runat="server" CssClass="lbl breakword"   Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authentication_Request").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtIAPD_Authentication_Request1" runat="server" CssClass="txt" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authentication_Request").ToString) %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrIAPD_Authentication_Request" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Authorization Request" ControlStyle-Width="175" Visible="True" >
                                        <HeaderStyle Width="175px"  />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblIAPD_Authorization_Request" runat="server" CssClass="lbl breakword"  Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authorization_Request").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtIAPD_Authorization_Request1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authorization_Request").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrIAPD_Authorization_Request" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Authentication Response" ControlStyle-Width="175"  Visible="True">
                                        <HeaderStyle Width="175px" />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblIAPD_Authentication_Response" runat="server" CssClass="lbl breakword"   Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authentication_Response").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtIAPD_Authentication_Response1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authentication_Response").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrIAPD_Authentication_Response" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="Authorization Response" ControlStyle-Width="175"  Visible="True">
                                        <HeaderStyle Width="175px" />
                                        <ItemStyle Wrap="true" Width="175px" HorizontalAlign="center" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblIAPD_Authorization_Response" runat="server" CssClass="lbl breakword"   Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authorization_Response").ToString) %>' />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtIAPD_Authorization_Response1" runat="server" CssClass="lbl" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.IAPD_Authorization_Response").ToString) %>' />
                                        </EditItemTemplate>
                                        <FooterTemplate>
                                            <asp:TextBox ID="txtftrIAPD_Authorization_Response" runat="server" CssClass="lbl" Text='' />
                                        </FooterTemplate>

                                    </asp:TemplateField>

                                    <%--END : Pranav D 21-Sep-2021 JIRA ID :  INT1FIN47-83 | Auth def param new columns--%>
                                </Columns>

                                <EmptyDataTemplate>

                                    <tr>

                                        <td style="text-align: center">
                                            <asp:LinkButton ID="btnInsert" runat="server" CommandName="EmptyDataTemplate" Text="Add" Width="90" />

                                        </td>
                                        <td style="width: 100px"></td>
                                        <td>
                                            <asp:TextBox ID="txtftrIAPD_Name" CssClass="txt" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrAuth_Type" CssClass="txt" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrClientID" CssClass="txt" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrClient_Secret" CssClass="txt" TextMode="Password" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>

                                        <td>
                                            <asp:TextBox ID="txtftrToken_EndPoint" CssClass="txt" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrToken_Type" CssClass="txt" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrToken_Expiry_Seconds" CssClass="txt txtalignRight" runat="server" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <td style="display: none;">
                                            <asp:TextBox ID="txtftrEntity_ID" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>

                                        <td>
                                            <asp:TextBox ID="txtftrGrant_Type" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrAuth_Realm" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <%--<Added by Pranav D 18-Aug-2021 Additional column with Token Status SP Name>--%>
                                        <td>
                                            <asp:TextBox ID="txtftrTokenStatusSPName" runat="server" CssClass="txt" oncopy="return false" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' /> <%--Changes done by Pranav D 23-Sep-2021 Removed max lenght--%>
                                        </td>
                                        <%--</Added by Pranav D 18-Aug-2021 Additional column with Token Status SP Name>--%>
                                        <td style="display: none;">
                                            <asp:TextBox ID="txtftrAccess_Token" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <td style="display: none;">
                                            <asp:TextBox ID="txtftrRefresh_Token" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' MaxLength="50" />

                                        </td>
                                        <%--  <Start || Added by Arshin S || on 15th Jan 2021 || FINAFINT-2 Add columns mentioned in description in Auth Type master page || As asked by Prachi P>--%>
                                        <td>
                                            <asp:Label ID="lblftrCreated_At" runat="server" CssClass="lbl" Text='' />

                                        </td>

                                        <td>
                                            <asp:Label ID="lblftrCreated_By" runat="server" CssClass="lbl" Text='' />

                                        </td>

                                        <td>
                                            <asp:Label ID="lblftrUpdated_At" runat="server" CssClass="lbl" Text='' />

                                        </td>

                                        <td>
                                            <asp:Label ID="lblftrUpdated_By" runat="server" CssClass="lbl" Text='' />

                                        </td>

                                        <td>
                                            <asp:Label ID="lblftrAccess_Token_Updated_At" runat="server" CssClass="lbl" Text='' />

                                        </td>

                                        <%--  <End || Added by Arshin S || on 15th Jan 2021 || FINAFINT-2 Add columns mentioned in description in Auth Type master page || As asked by Prachi P>--%>

                                        <%--START : Pranav D 21-Sep-2021 JIRA ID :  INT1FIN47-83 | Auth def param new columns--%>
                                        <td>
                                            <asp:TextBox ID="txtftrIAPD_Authentication_Request" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrIAPD_Authorization_Request" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrIAPD_Authentication_Response" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' />
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtftrIAPD_Authorization_Response" runat="server" oncopy="return false" CssClass="txt" onpaste="return false" oncut="return false" onkeypress='return event.charCode < 32 || event.charCode > 32' />
                                        </td>
                                        <%--END : Pranav D 21-Sep-2021 JIRA ID :  INT1FIN47-83 | Auth def param new columns--%>
                                    </tr>

                                </EmptyDataTemplate>


                            </asp:GridView>
                        </td>
                    </tr>

                </table>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>

    <%--START ::Commented by SashaP on 21-01-2021 for AllFunds as asked by ArshinS
        <script type="text/javascript">
        function MapAuthID(AuthType, AuthName, AuthID) {
         
            window.opener.MapAuthIDinINTMAP(AuthType,AuthName, AuthID);
          
        }

    </script>
        END::SashaP||21-01-2021--%>

    <%--START ::Added by SashaP on 25-01-2021 for AllFunds as asked by ArshinS--%>
    <script type="text/javascript">
        function DisplayDeleteMessage(DisplayString) {

            var userchoice;
            //onclientclick = "return confirmationDialog(this, 'Confirmation', DisplayString);"
            if (confirm(DisplayString) == true) {
                //  window.alert("User selected Yes");
                var clickButton = document.getElementById('<%=hdnbtnDelete.ClientID%>'); /*This statement will not work if button is set as visible-false in aspx*/
                clickButton.click();
            }
        }
    </script>
    <%--END::SashaP||25-01-2021 --%>
</asp:Content>



