diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-24 09:02:58 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-24 09:02:58 -0800 |
commit | 98f555915c230a8af154984fb7d29f58a5027acc (patch) | |
tree | d6303fe488eb02f2fe5d4eb5d0a4db7f8b4ec148 /samples | |
parent | b06334b3cd7fa616c5a53ced828b890c1380744a (diff) | |
download | DotNetOpenAuth-98f555915c230a8af154984fb7d29f58a5027acc.zip DotNetOpenAuth-98f555915c230a8af154984fb7d29f58a5027acc.tar.gz DotNetOpenAuth-98f555915c230a8af154984fb7d29f58a5027acc.tar.bz2 |
Adds support for the resource owner password credential grant.
Fixes #72
Diffstat (limited to 'samples')
-rw-r--r-- | samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs b/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs index f515949..b837d4c 100644 --- a/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs +++ b/samples/OAuthAuthorizationServer/Code/OAuth2AuthorizationServer.cs @@ -80,12 +80,17 @@ return consumerRow; } - #endregion - public bool IsAuthorizationValid(IAuthorizationDescription authorization) { return this.IsAuthorizationValid(authorization.Scope, authorization.ClientIdentifier, authorization.UtcIssued, authorization.User); } + public bool IsResourceOwnerCredentialValid(string userName, string password) { + // This web site delegates user authentication to OpenID Providers, and as such no users have local passwords with this server. + throw new NotSupportedException(); + } + + #endregion + public bool CanBeAutoApproved(EndUserAuthorizationRequest authorizationRequest) { if (authorizationRequest == null) { throw new ArgumentNullException("authorizationRequest"); |