summaryrefslogtreecommitdiffstats
path: root/samples/OAuthAuthorizationServer/Code
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-19 21:34:30 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-19 21:34:30 -0800
commit2746ec1fabc080c0ce8b088fa342e5ba1178ba70 (patch)
tree044bdc44a437a744ec6534ef5586625dc828fc59 /samples/OAuthAuthorizationServer/Code
parentf1837d5eb51cb3ed948d72048e5827332e506a71 (diff)
downloadDotNetOpenAuth-2746ec1fabc080c0ce8b088fa342e5ba1178ba70.zip
DotNetOpenAuth-2746ec1fabc080c0ce8b088fa342e5ba1178ba70.tar.gz
DotNetOpenAuth-2746ec1fabc080c0ce8b088fa342e5ba1178ba70.tar.bz2
Fixed build breaks.
Diffstat (limited to 'samples/OAuthAuthorizationServer/Code')
-rw-r--r--samples/OAuthAuthorizationServer/Code/Client.cs7
-rw-r--r--samples/OAuthAuthorizationServer/Code/DataClasses.dbml1
-rw-r--r--samples/OAuthAuthorizationServer/Code/DataClasses.designer.cs24
3 files changed, 32 insertions, 0 deletions
diff --git a/samples/OAuthAuthorizationServer/Code/Client.cs b/samples/OAuthAuthorizationServer/Code/Client.cs
index ce52008..d33dc3f 100644
--- a/samples/OAuthAuthorizationServer/Code/Client.cs
+++ b/samples/OAuthAuthorizationServer/Code/Client.cs
@@ -29,6 +29,13 @@
}
/// <summary>
+ /// Gets the type of the client.
+ /// </summary>
+ ClientType IClientDescription.ClientType {
+ get { return (ClientType)this.ClientType; }
+ }
+
+ /// <summary>
/// Determines whether a callback URI included in a client's authorization request
/// is among those allowed callbacks for the registered client.
/// </summary>
diff --git a/samples/OAuthAuthorizationServer/Code/DataClasses.dbml b/samples/OAuthAuthorizationServer/Code/DataClasses.dbml
index 5536b6e..fe621c2 100644
--- a/samples/OAuthAuthorizationServer/Code/DataClasses.dbml
+++ b/samples/OAuthAuthorizationServer/Code/DataClasses.dbml
@@ -15,6 +15,7 @@
<Column Name="ClientSecret" Type="System.String" DbType="NVarChar(50)" CanBeNull="true" />
<Column Name="Callback" Type="System.String" CanBeNull="true" />
<Column Name="Name" Type="System.String" CanBeNull="false" />
+ <Column Member="ClientType" Type="System.Int32" CanBeNull="false" />
<Association Name="Client_ClientAuthorization" Member="ClientAuthorizations" Storage="_OAuthTokens" ThisKey="ClientId" OtherKey="ClientId" Type="ClientAuthorization" />
</Type>
</Table>
diff --git a/samples/OAuthAuthorizationServer/Code/DataClasses.designer.cs b/samples/OAuthAuthorizationServer/Code/DataClasses.designer.cs
index 5035753..a1e4b83 100644
--- a/samples/OAuthAuthorizationServer/Code/DataClasses.designer.cs
+++ b/samples/OAuthAuthorizationServer/Code/DataClasses.designer.cs
@@ -272,6 +272,8 @@ namespace OAuthAuthorizationServer.Code
private string _Name;
+ private int _ClientType;
+
private EntitySet<ClientAuthorization> _OAuthTokens;
#region Extensibility Method Definitions
@@ -288,6 +290,8 @@ namespace OAuthAuthorizationServer.Code
partial void OnCallbackChanged();
partial void OnNameChanging(string value);
partial void OnNameChanged();
+ partial void OnClientTypeChanging(int value);
+ partial void OnClientTypeChanged();
#endregion
public Client()
@@ -396,6 +400,26 @@ namespace OAuthAuthorizationServer.Code
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClientType")]
+ public int ClientType
+ {
+ get
+ {
+ return this._ClientType;
+ }
+ set
+ {
+ if ((this._ClientType != value))
+ {
+ this.OnClientTypeChanging(value);
+ this.SendPropertyChanging();
+ this._ClientType = value;
+ this.SendPropertyChanged("ClientType");
+ this.OnClientTypeChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="Client_ClientAuthorization", Storage="_OAuthTokens", ThisKey="ClientId", OtherKey="ClientId")]
public EntitySet<ClientAuthorization> ClientAuthorizations
{