diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-20 22:18:31 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-20 22:18:31 -0800 |
commit | 335402d6dda7a96acab14e7263ef16e06e637d12 (patch) | |
tree | 1f108e239c21dcdc99469d113224afde4ae3cade /src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs | |
parent | 234cf20e86b0ed1d65bca4a61eabb3277e8562c5 (diff) | |
download | DotNetOpenAuth-335402d6dda7a96acab14e7263ef16e06e637d12.zip DotNetOpenAuth-335402d6dda7a96acab14e7263ef16e06e637d12.tar.gz DotNetOpenAuth-335402d6dda7a96acab14e7263ef16e06e637d12.tar.bz2 |
Added scaffolding for OAuth2 unit tests and added the first test for client authorization.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs')
-rw-r--r-- | src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs b/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs index 5dee893..5429b60 100644 --- a/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs +++ b/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs @@ -26,31 +26,24 @@ namespace DotNetOpenAuth.OAuth2 { /// <param name="authorizationServer">The authorization server.</param> public AuthorizationServer(IAuthorizationServer authorizationServer) { Requires.NotNull(authorizationServer, "authorizationServer"); - this.OAuthChannel = new OAuth2AuthorizationServerChannel(authorizationServer); + this.Channel = new OAuth2AuthorizationServerChannel(authorizationServer); } /// <summary> /// Gets the channel. /// </summary> /// <value>The channel.</value> - public Channel Channel { - get { return this.OAuthChannel; } - } + public Channel Channel { get; internal set; } /// <summary> /// Gets the authorization server. /// </summary> /// <value>The authorization server.</value> public IAuthorizationServer AuthorizationServerServices { - get { return this.OAuthChannel.AuthorizationServer; } + get { return ((IOAuth2ChannelWithAuthorizationServer)this.Channel).AuthorizationServer; } } /// <summary> - /// Gets the channel. - /// </summary> - internal OAuth2AuthorizationServerChannel OAuthChannel { get; private set; } - - /// <summary> /// Reads in a client's request for the Authorization Server to obtain permission from /// the user to authorize the Client's access of some protected resource(s). /// </summary> |