diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-02 21:22:38 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-02 21:22:38 -0800 |
commit | 36cadbb1b9bf9c6a9a97b3679f40ea155ce0a615 (patch) | |
tree | af2a6af1ce23217a2ae8190c7ad775bd540e3be8 /src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/ClientDescription.cs | |
parent | 09651b96839ce22116a4047876bb5a43164c1102 (diff) | |
download | DotNetOpenAuth-36cadbb1b9bf9c6a9a97b3679f40ea155ce0a615.zip DotNetOpenAuth-36cadbb1b9bf9c6a9a97b3679f40ea155ce0a615.tar.gz DotNetOpenAuth-36cadbb1b9bf9c6a9a97b3679f40ea155ce0a615.tar.bz2 |
Removes the memory crypto key store from the sample.
We now have a 'hard-coded' secret key store that trivial apps/samples may use to keep things simple until they create a database table.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/ClientDescription.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/ClientDescription.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/ClientDescription.cs b/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/ClientDescription.cs index a10e1aa..753148e 100644 --- a/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/ClientDescription.cs +++ b/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/ClientDescription.cs @@ -22,17 +22,29 @@ namespace DotNetOpenAuth.OAuth2 { private readonly string secret; /// <summary> - /// Initializes a new instance of the <see cref="ClientDescription"/> class. + /// Initializes a new instance of the <see cref="ClientDescription"/> class + /// to represent a confidential client (one that has an authenticating secret.) /// </summary> /// <param name="secret">The secret.</param> /// <param name="defaultCallback">The default callback.</param> /// <param name="clientType">Type of the client.</param> - public ClientDescription(string secret, Uri defaultCallback, ClientType clientType) { + public ClientDescription(string secret, Uri defaultCallback = null, ClientType clientType = ClientType.Confidential) { this.secret = secret; this.DefaultCallback = defaultCallback; this.ClientType = clientType; } + /// <summary> + /// Initializes a new instance of the <see cref="ClientDescription"/> class + /// to represent a public client (one that does not have an authenticating secret.) + /// </summary> + /// <param name="defaultCallback">The default callback.</param> + /// <param name="clientType">Type of the client.</param> + public ClientDescription(Uri defaultCallback = null, ClientType clientType = ClientType.Public) { + this.DefaultCallback = defaultCallback; + this.ClientType = clientType; + } + #region IClientDescription Members /// <summary> |