diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-05-29 17:26:58 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-05-29 17:26:58 -0700 |
commit | 7f61a61f4e9073af1f62f15f08e8f0893bffee5e (patch) | |
tree | 836349f00068fd7c76f13a6d25545223dfa57f12 /samples/OAuthAuthorizationServer/Code | |
parent | 09f9f16cd42c79712ae2265e4484cca64990f7cb (diff) | |
download | DotNetOpenAuth-7f61a61f4e9073af1f62f15f08e8f0893bffee5e.zip DotNetOpenAuth-7f61a61f4e9073af1f62f15f08e8f0893bffee5e.tar.gz DotNetOpenAuth-7f61a61f4e9073af1f62f15f08e8f0893bffee5e.tar.bz2 |
Resource owner password grant method rename
Renamed IAuthorizationServerHost.IsResourceOwnerCredentialValid to
TryAuthorizeResourceOwnerCredentialGrant so that authorization servers
are prepared to approve refresh tokens that may be issued as a result of
a resource owner password grant.
This also removes some of the "validation" that wasn't really doing
anything useful for resource owner password grant types.
Toward an eventual fix for #138
Diffstat (limited to 'samples/OAuthAuthorizationServer/Code')
-rw-r--r-- | samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs b/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs index b16b478..a5ff728 100644 --- a/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs +++ b/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs @@ -78,7 +78,7 @@ return this.IsAuthorizationValid(authorization.Scope, authorization.ClientIdentifier, authorization.UtcIssued, authorization.User); } - public bool IsResourceOwnerCredentialValid(string userName, string password, IAccessTokenRequest accessRequest, out string canonicalUserName) { + public bool TryAuthorizeResourceOwnerCredentialGrant(string userName, string password, IAccessTokenRequest accessRequest, out string canonicalUserName) { // This web site delegates user authentication to OpenID Providers, and as such no users have local passwords with this server. throw new NotSupportedException(); } |