diff options
Diffstat (limited to 'samples/OAuthConsumer/GoogleAddressBook.aspx')
-rw-r--r-- | samples/OAuthConsumer/GoogleAddressBook.aspx | 57 |
1 files changed, 19 insertions, 38 deletions
diff --git a/samples/OAuthConsumer/GoogleAddressBook.aspx b/samples/OAuthConsumer/GoogleAddressBook.aspx index 1c20954..56179b7 100644 --- a/samples/OAuthConsumer/GoogleAddressBook.aspx +++ b/samples/OAuthConsumer/GoogleAddressBook.aspx @@ -1,45 +1,26 @@ -<%@ Page Title="Gmail address book demo" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" - CodeFile="GoogleAddressBook.aspx.cs" Inherits="GoogleAddressBook" %> +<%@ Page Title="Gmail address book demo" Language="C#" MasterPageFile="~/MasterPage.master" + AutoEventWireup="true" CodeFile="GoogleAddressBook.aspx.cs" Inherits="GoogleAddressBook" %> <asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="Server"> <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0"> - <asp:View runat="server" ID="Authorize"> - <table> - <tr> - <td> - Google Consumer Key - </td> - <td> - <asp:TextBox ID="consumerKeyBox" runat="server" Columns="35"></asp:TextBox> - <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" - ControlToValidate="consumerKeyBox" Display="Dynamic" - ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator> - </td> - </tr> - <tr> - <td> - Google Consumer Secret - </td> - <td> - <asp:TextBox ID="consumerSecretBox" runat="server" Columns="35"></asp:TextBox> - <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" - ControlToValidate="consumerSecretBox" Display="Dynamic">*</asp:RequiredFieldValidator> - </td> - </tr> - <tr> - <td> - </td> - <td> - Don't have a Google Consumer Key? - <a href="https://www.google.com/accounts/ManageDomains">Get one</a>.</td> - </tr> - </table> - <asp:Button ID="authorizeButton" runat="server" Text="Download your Gmail Address Book" - OnClick="authorizeButton_Click" /> + <asp:View runat="server"> + <h2>Google setup</h2> + <p>A Google client app must be endorsed by a Google user. </p> + <ol> + <li><a target="_blank" href="https://www.google.com/accounts/ManageDomains">Visit Google + and create a client app</a>. </li> + <li>Modify your web.config file to include your consumer key and consumer secret. + </li> + </ol> </asp:View> - <asp:View runat="server" ID="Results"> - <p>Now displaying the first 25 records from your address book:</p> - <asp:PlaceHolder runat="server" ID="resultsPlaceholder" /> + <asp:View runat="server"> + <h2>Updates</h2> + <p>Ok, Google has authorized us to download your contacts. Click 'Get address book' + to download the first 25 contacts to this sample. Notice how we never asked you + for your Google username or password. </p> + <asp:Button ID="getAddressBookButton" runat="server" OnClick="getAddressBookButton_Click" + Text="Get address book" /> + <asp:PlaceHolder ID="resultsPlaceholder" runat="server" /> </asp:View> </asp:MultiView> </asp:Content> |