Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Adds the missing attributes on OpenIdRelyingPartyControlBase that mak…
Browse files Browse the repository at this point in the history
…e its Extensions property settable inside an ASPX page.

Closes #6
  • Loading branch information
AArnott committed Dec 30, 2010
1 parent 905c1e6 commit 3d61acf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 6 additions & 1 deletion samples/OpenIdRelyingPartyWebForms/login.aspx
Expand Up @@ -2,6 +2,7 @@
ValidateRequest="false" MasterPageFile="~/Site.Master" %>

<%@ Register Assembly="DotNetOpenAuth" Namespace="DotNetOpenAuth.OpenId.RelyingParty" TagPrefix="rp" %>
<%@ Register Assembly="DotNetOpenAuth" Namespace="DotNetOpenAuth.OpenId.Extensions.SimpleRegistration" TagPrefix="sreg" %>
<asp:Content runat="server" ContentPlaceHolderID="Main">
<h2>Login Page </h2>
<rp:OpenIdLogin ID="OpenIdLogin1" runat="server" CssClass="openid_login" RequestCountry="Request"
Expand All @@ -24,6 +25,10 @@
<p><a href="loginGoogleApps.aspx">Log in using Google Apps for Domains</a>. </p>
<p>
<rp:OpenIdButton runat="server" ImageUrl="~/images/yahoo.png" Text="Login with Yahoo!" ID="yahooLoginButton"
Identifier="https://me.yahoo.com/" OnLoggingIn="OpenIdLogin1_LoggingIn" OnLoggedIn="OpenIdLogin1_LoggedIn" />
Identifier="https://me.yahoo.com/" OnLoggingIn="OpenIdLogin1_LoggingIn" OnLoggedIn="OpenIdLogin1_LoggedIn">
<Extensions>
<sreg:ClaimsRequest Email="Require" />
</Extensions>
</rp:OpenIdButton>
</p>
</asp:Content>
3 changes: 1 addition & 2 deletions samples/OpenIdRelyingPartyWebForms/login.aspx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -76,6 +76,7 @@ public enum LogOnPersistence {
/// A common base class for OpenID Relying Party controls.
/// </summary>
[DefaultProperty("Identifier"), ValidationProperty("Identifier")]
[ParseChildren(true), PersistChildren(false)]
public abstract class OpenIdRelyingPartyControlBase : Control, IPostBackEventHandler, IDisposable {
/// <summary>
/// The manifest resource name of the javascript file to include on the hosting page.
Expand Down
1 change: 0 additions & 1 deletion src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdSelector.cs
Expand Up @@ -29,7 +29,6 @@ namespace DotNetOpenAuth.OpenId.RelyingParty {
/// An ASP.NET control that provides a user-friendly way of logging into a web site using OpenID.
/// </summary>
[ToolboxData("<{0}:OpenIdSelector runat=\"server\"></{0}:OpenIdSelector>")]
[ParseChildren(true), PersistChildren(false)]
public class OpenIdSelector : OpenIdRelyingPartyAjaxControlBase {
/// <summary>
/// The name of the manifest stream containing the OpenIdButtonPanel.js file.
Expand Down

0 comments on commit 3d61acf

Please sign in to comment.