summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks
Commit message (Collapse)AuthorAgeFilesLines
* Applied all the StyleCop fixes necessary by the StyleCop 4.7 upgrade.Andrew Arnott2012-03-103-5/+12
|
* Fixed StyleCop messages.Andrew Arnott2012-03-051-1/+1
|
* HttpRequestInfo ctors are now internal, and publicly we have staticAndrew Arnott2012-03-051-1/+1
| | | | factory methods that return HttpRequestBase instances.
* Replaced API requirements for HttpRequestInfo with HttpRequestBase (new in ↵Andrew Arnott2012-03-055-64/+97
| | | | | | .NET 3.5 SP1). This makes us more friendly to MVC as well as mock-based unit testing.
* Added scaffolding for OAuth2 unit tests and added the first test for client ↵Andrew Arnott2012-02-202-1/+29
| | | | authorization.
* Updated all copyright notices to reflect copyright assignment to Outercurve.Andrew Arnott2012-02-0527-54/+54
| | | | Fixes #66
* OpenID messages that are missing signed parameters now throws ↵Andrew Arnott2012-01-291-0/+15
| | | | | | ProtocolException instead of KeyNotFoundException. Fixes #45
* Fixed build warnings.Andrew Arnott2011-10-091-1/+1
|
* All product assemblies build without ccrewrite.exe now.Andrew Arnott2011-09-187-18/+18
|
* Fixed failing OAuth Appendix test.Andrew Arnott2011-09-021-6/+4
|
* StyleCop work.Andrew Arnott2011-08-072-30/+44
|
* The test project now builds, so the whole solution does.Andrew Arnott2011-08-022-24/+162
|
* Added OutgoingWebResponse.Respond method to replace its Send method, and ↵Andrew Arnott2011-06-231-0/+6
| | | | | | avoid the ThreadAbortException that is no longer the recommended approach. Fixes #40
* StyleCop fixes and functional touch-ups.Andrew Arnott2011-05-081-2/+2
|
* Merge branch 'v3.4' into oauth2Andrew Arnott2011-04-061-10/+10
|\ | | | | | | | | | | | | Conflicts: projecttemplates/RelyingPartyLogic/OAuthAuthorizationManager.cs samples/DotNetOpenAuth.ApplicationBlock/DotNetOpenAuth.ApplicationBlock.csproj samples/OAuthResourceServer/Code/OAuthAuthorizationManager.cs
| * Fixed build breaks and StyleCop messages from prior commit.Andrew Arnott2011-04-061-10/+10
| |
| * Merge branch 'v3.3' into v3.4Andrew Arnott2010-07-191-0/+1
| |\ | | | | | | | | | | | | Conflicts: samples/DotNetOpenAuth.ApplicationBlock/Util.cs
| | * Merge branch 'v3.2' into v3.3Andrew Arnott2010-07-191-0/+1
| | |\
| | | * Merge branch 'v3.1' into v3.2Andrew Arnott2010-07-191-0/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | Conflicts: samples/DotNetOpenAuth.ApplicationBlock/Util.cs
| | | | * Merge branch 'v3.0' into v3.1Andrew Arnott2010-07-191-0/+1
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: samples/DotNetOpenAuth.ApplicationBlock/Util.cs
| | | | | * Fixed the namespace of several tests.Andrew Arnott2010-06-271-0/+1
| | | | | |
* | | | | | Merge branch 'v3.4' into oauth2Andrew Arnott2010-07-091-6/+3
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: samples/OAuthConsumer/Web.config src/DotNetOpenAuth/Configuration/DotNetOpenAuth.xsd src/DotNetOpenAuth/DotNetOpenAuth.csproj
| * | | | | Removed dependency on publicize.exe, which crashes now in some branches due ↵Andrew Arnott2010-07-091-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | to bugs, and publicize.exe doesn't appear to be supported by Microsoft any more, so we might as well get off it.
* | | | | | Fixed the namespace of several tests.Andrew Arnott2010-06-271-0/+1
| | | | | |
* | | | | | A bunch of work on OAuth WRAP messages.Andrew Arnott2010-02-071-2/+10
|/ / / / /
* | | | | Merge branch 'master' into master-Dev10Andrew Arnott2010-01-171-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: build.proj lib/DotNetOpenAuth.BuildTasks.dll lib/DotNetOpenAuth.BuildTasks.pdb src/DotNetOpenAuth.Test/Messaging/MessagingUtilitiesTests.cs src/DotNetOpenAuth.Test/Messaging/MultiPartPostPartTests.cs src/DotNetOpenAuth.sln src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/OAuth/OAuthStrings.Designer.cs
| * \ \ \ \ Merge branch 'v3.3' into v3.4Andrew Arnott2010-01-141-2/+2
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/DotNetOpenAuth.BuildTasks.dll lib/DotNetOpenAuth.BuildTasks.pdb src/DotNetOpenAuth.vsmdi
| | * | | | OAuth now supports HEAD HTTP method, and won't throw unhandled exception on ↵Andrew Arnott2010-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unrecognized HTTP methods any more. Fixes Trac #169
* | | | | | Converted all the rest of the tests over to NUnit.Andrew Arnott2010-01-063-4/+4
|/ / / / /
* | | | | Further refactoring of discovery results.Andrew Arnott2009-11-233-19/+16
| | | | |
* | | | | StyleCop fixes.Andrew Arnott2009-11-222-2/+2
| | | | |
* | | | | Some extensive refactoring around IIdentifierDiscoveryResult and ↵Andrew Arnott2009-11-223-16/+18
| | | | | | | | | | | | | | | | | | | | ServiceEndpoint.
* | | | | Updated tests to build with new extensible identifier discovery.Andrew Arnott2009-11-182-4/+52
|/ / / /
* | | | Merge branch 'v3.2'Andrew Arnott2009-11-031-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.Test/DotNetOpenAuth.Test.csproj src/DotNetOpenAuth.sln src/DotNetOpenAuth/OpenId/Provider/IProviderBehavior.cs src/DotNetOpenAuth/OpenId/RelyingParty/IRelyingPartyBehavior.cs
| * | | Preparing to allow for RP discovery to yield more than just return_to endpoints.Andrew Arnott2009-11-021-1/+1
| | | |
* | | | Merge branch 'master' into openiduxAndrew Arnott2009-11-018-20/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/InfoCard/InfoCardSelector.cs src/DotNetOpenAuth/OAuth/ServiceProvider.cs src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyAjaxControlBase.cs src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyControlBase.cs
| * | | | Finishing up contract work.Andrew Arnott2009-09-221-1/+3
| | | | |
| * | | | Merge branch 'master' into contractsAndrew Arnott2009-09-013-1/+47
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.Test/Mocks/MockIdentifier.cs src/DotNetOpenAuth.Test/OpenId/Provider/OpenIdProviderTests.cs src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/DotNetOpenAuth.csproj src/DotNetOpenAuth/Messaging/MessageReceivingEndpoint.cs src/DotNetOpenAuth/OAuth/ChannelElements/OAuthServiceProviderMessageFactory.cs src/DotNetOpenAuth/OAuth/Protocol.cs src/DotNetOpenAuth/OAuth/ServiceProvider.cs src/DotNetOpenAuth/OpenId/Association.cs src/DotNetOpenAuth/OpenId/Behaviors/PpidGeneration.cs src/DotNetOpenAuth/OpenId/NoDiscoveryIdentifier.cs src/DotNetOpenAuth/OpenId/Provider/HostProcessedRequest.cs src/DotNetOpenAuth/OpenId/Provider/IDirectedIdentityIdentifierProvider.cs src/DotNetOpenAuth/OpenId/Provider/PrivatePersonalIdentifierProviderBase.cs src/DotNetOpenAuth/OpenId/Realm.cs src/DotNetOpenAuth/OpenId/RelyingParty/AuthenticationRequest.cs src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyAjaxControlBase.cs src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAuthenticationResponseSnapshot.cs src/DotNetOpenAuth/OpenId/UriIdentifier.cs src/DotNetOpenAuth/OpenId/XriIdentifier.cs src/DotNetOpenAuth/Util.cs
| * \ \ \ \ Merge branch 'master' into contractsAndrew Arnott2009-06-253-13/+66
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/Configuration/TypeConfigurationCollection.cs src/DotNetOpenAuth/Configuration/TypeConfigurationElement.cs src/DotNetOpenAuth/DotNetOpenAuth.csproj src/DotNetOpenAuth/Messaging/HttpRequestInfo.cs src/DotNetOpenAuth/Messaging/Reflection/MessagePart.cs src/DotNetOpenAuth/Messaging/Reflection/ValueMapping.cs src/DotNetOpenAuth/OAuth/ChannelElements/OAuthChannel.cs src/DotNetOpenAuth/OAuth/ConsumerBase.cs src/DotNetOpenAuth/OAuth/Messages/MessageBase.cs src/DotNetOpenAuth/OAuth/Messages/UnauthorizedTokenResponse.cs src/DotNetOpenAuth/OAuth/ServiceProvider.cs src/DotNetOpenAuth/OpenId/Protocol.cs src/DotNetOpenAuth/OpenId/Provider/AutoResponsiveRequest.cs src/DotNetOpenAuth/OpenId/Provider/HostProcessedRequest.cs src/DotNetOpenAuth/OpenId/Provider/IHostProcessedRequest.cs src/DotNetOpenAuth/OpenId/Provider/Request.cs src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingParty.cs src/DotNetOpenAuth/OpenId/RelyingParty/ServiceEndpoint.cs
| * | | | | | Switched almost entirely over to Code Contracts across the entire library.Andrew Arnott2009-05-237-19/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | But some unit tests still fail, and there are other issues.
* | | | | | | Fixed build break introduced in 0f5556420674886b14723898890f3b492a3854a8.Andrew Arnott2009-10-291-2/+2
| |_|/ / / / |/| | | | |
* | | | | | Merge branch 'v3.2'Andrew Arnott2009-08-311-0/+42
|\ \ \ \ \ \ | | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/OpenId/Identifier.cs
| * | | | | Merge branch 'v3.1' into v3.2Andrew Arnott2009-08-311-0/+42
| |\ \ \ \ \ | | |_|/ / / | |/| | / / | | | |/ / | | |/| | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.Test/OpenId/AuthenticationTests.cs src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingParty.cs
| | * | | Merge branch 'v3.0' into v3.1Andrew Arnott2009-08-311-0/+42
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/OpenId/OpenIdStrings.Designer.cs src/DotNetOpenAuth/OpenId/OpenIdStrings.resx
| | | * | Added tests for unsolicited assertion sending and receiving, including ↵Andrew Arnott2009-08-301-0/+42
| | | | | | | | | | | | | | | | | | | | against the RP's whitelist.
* | | | | Merge branch 'rpControlBase'Andrew Arnott2009-08-251-1/+1
|\ \ \ \ \
| * | | | | OpenIdAjaxTextBox rewritten to derive from OpenIdRelyingPartyAjaxControlBase.Andrew Arnott2009-07-231-1/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | A great deal of refactoring went into this, but of C# and Javascript code. The upside to this is now we can write many more AJAX controls (auto-login, for example) with minimal code. Note that the OpenIdAjaxTextBox control is not yet back up to par with the prior one. Postbacks don't yet properly deserialize the 'authenticated' state of the page.
* | | | | Added IServiceProviderTokenManager.UpdateToken method.Andrew Arnott2009-08-191-0/+4
|/ / / / | | | | | | | | | | | | Fixes Trac #96.
* | | | Added IServiceProviderAccessToken and added a method to get it on the ↵Andrew Arnott2009-06-231-1/+11
| | | | | | | | | | | | | | | | IServiceProviderTokenManager interface.
* | | | Merge branch 'v3.1'Andrew Arnott2009-06-191-11/+54
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/Configuration/OpenIdElement.cs src/DotNetOpenAuth/Messaging/MessagingUtilities.cs src/DotNetOpenAuth/OpenId/Provider/ProviderEndpoint.cs
| * | | Merge branch 'v3.0' into v3.1Andrew Arnott2009-06-191-11/+54
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/DotNetOpenAuth.sln src/DotNetOpenAuth.vsmdi src/DotNetOpenAuth/DotNetOpenAuth.csproj src/DotNetOpenAuth/OAuth/ConsumerBase.cs src/DotNetOpenAuth/OAuth/OAuthStrings.Designer.cs src/DotNetOpenAuth/OAuth/OAuthStrings.resx src/DotNetOpenAuth/Yadis/Yadis.cs
| | * | Added request token TTL checking.Andrew Arnott2009-06-151-0/+6
| | | | | | | | | | | | | | | | Resolves Trac ticket #54.
| | * | Refactored OAuth service provider interfaces to better suite token and ↵Andrew Arnott2009-06-081-35/+39
| | | | | | | | | | | | | | | | consumer queries.
| | * | OAuth SP now works with 1.0 Consumers correctly.Andrew Arnott2009-06-081-0/+9
| | | |
| | * | All unit tests pass.Andrew Arnott2009-06-061-8/+23
| | | |
| | * | Initial change to comply with OAuth 1.0a.Andrew Arnott2009-06-051-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Still need to come up with a plan to handle Consumers without callback, including mobile and set-top devices with limited keyboards. No tests yet. Limited thought given so far to interoperability with 1.0 vs. 1.0a.
* | | | Merge branch 'v3.1'Andrew Arnott2009-06-182-2/+2
|\ \ \ \ | |/ / / | | | / | |_|/ |/| |
| * | Cleaned up distinction between public and rewritten request URLs.Andrew Arnott2009-06-182-2/+2
| | |
* | | Merge branch 'v3.1'Andrew Arnott2009-05-211-0/+17
|\ \ \ | |/ /
| * | Merge branch 'v3.0' into v3.1Andrew Arnott2009-05-211-0/+17
| |\ \ | | |/
| | * Fixed StyleCop messages.Andrew Arnott2009-05-201-2/+2
| | |
| | * Test runs more resilient to race conditions.Andrew Arnott2009-05-161-0/+17
| | |
| | * CRLF fix.Andrew Arnott2009-04-161-3/+3
| | |
* | | OP now has a RequireSsl option, which requires RP discovery to happen over ↵Andrew Arnott2009-05-081-1/+4
|/ / | | | | | | | | | | HTTPS. Fixes Trac ticket 51.
* | Merge branch 'v3.0'Andrew Arnott2009-04-152-1/+4
|\ \ | |/
| * Custom OpenID extensions may now exist outside the library.Andrew Arnott2009-04-151-1/+1
| |
| * Fixed failing unit tests.Andrew Arnott2009-04-151-1/+4
| |
* | Renamed IsSignedByProvider and hid it from request extension messages since ↵Andrew Arnott2009-04-111-1/+1
| | | | | | | | | | | | it didn't apply. Fixed Google Code Issue 241.
* | Merge commit 'v3.0'Andrew Arnott2009-04-102-8/+37
|\ \ | |/
| * Split up ITokenManager into two derived interfaces to better fit Consumer ↵Andrew Arnott2009-04-082-8/+37
| | | | | | | | and Service Provider scenarios.
* | Added capability for RPs to receive unsigned extension responses if they so ↵Andrew Arnott2009-03-301-0/+9
|/ | | | choose.
* Cleaned up logging.Andrew Arnott2009-03-151-2/+2
|
* Renamed a couple of methods:Andrew Arnott2009-03-155-11/+11
| | | | | PrepareMessageForSending -> ProcessOutgoingMessage VerifyMessageAfterReceiving -> ProcessIncomingMessage
* Renamed some methods on the Channel class to be more consistent.Andrew Arnott2009-03-154-10/+10
|
* Renamed UserAgentResponse to OutgoingWebResponse, and DirectWebResponse to ↵Andrew Arnott2009-03-157-28/+28
| | | | IncomingWebResponse.
* Refactored MessageDescription to be per-Channel instead of appdomain static.Andrew Arnott2009-03-144-12/+24
| | | | This allows for special scenarios (like OSIS tests) where individual tests might need to contrive special message serialization rules.
* Added test to verify OP's compliance with OpenID 2.0 section 8.4.1.Andrew Arnott2009-03-103-7/+95
|
* Renamed all the Channel virtual methods that end with Internal to end with Core.Andrew Arnott2009-03-104-8/+8
|
* Applied fix for HTTP verb enforcement required by OpenID 2.0 section 5.1.1.Andrew Arnott2009-03-102-1/+7
|
* response_nonces are now checked for replays by the RP against just those ↵Andrew Arnott2009-03-051-0/+4
| | | | | | nonces generated by the same Provider. Fixes Google Code Issue 175.
* Added OpenID Provider downlevel protection for 1.x Relying Parties and ↵Andrew Arnott2009-03-053-18/+18
| | | | turning it on by default.
* Constructors on all OpenID direct response messages now require the OpenID ↵Andrew Arnott2009-02-093-28/+68
| | | | | | version of the message, allowing for RPs to receive response messages in versions differing from their request message. Also added test to verify this, and OpenIdProvider error messages w/o requiring ASP.NET hosting.
* Re-ordering members in test mock message.Andrew Arnott2009-02-081-6/+2
|
* StyleCop fixesAndrew Arnott2009-01-302-4/+10
|
* Refactored IDirectWebRequestHandler to take a set of options rather than be ↵Andrew Arnott2009-01-302-3/+15
| | | | | | two interfaces. Finally got receiving HTTP 400 error responses working.
* OpenID error direct response messages are now sent with HTTP status codes of ↵Andrew Arnott2009-01-291-0/+25
| | | | 400.
* Refactored test helpers to remove TestSupport and move its functionality ↵Andrew Arnott2009-01-292-8/+10
| | | | into OpenIdTestBase.
* Refactored association management functions from the OpenIdRelyingParty ↵Andrew Arnott2009-01-231-1/+4
| | | | class into an AssociationManager class.
* Added detection of multi-threading issues in the OpenIdCoordinator.Andrew Arnott2009-01-201-4/+5
|
* Enabled the rest of the association tests.Andrew Arnott2009-01-191-0/+13
|
* Fixed the DirectWebResponse bug that broke the OAuth sample.Andrew Arnott2009-01-121-3/+3
|
* Fixed the channel's POST entity writing.Andrew Arnott2009-01-121-7/+19
| | | | The HTTP Content-Length was being set to the number of characters in the response instead of the number of bytes.
* IDirectSslWebRequestHandler need not be given to an OpenID RP or OP instance ↵Andrew Arnott2009-01-101-1/+1
| | | | any more. Ssl support is optional.
* CRLF -> LF line endings change to all .cs files.Andrew Arnott2009-01-093-230/+230
|
* Fixed up the new AuthenticationRequestTests unit test to pass.Andrew Arnott2009-01-041-1/+5
|
* Added unit test channel coordination checks to prevent hanging tests when ↵Andrew Arnott2009-01-041-0/+91
| | | | one party's channel is waiting for an incoming message from another channel that will never arrive.
* Fixed mock CoordinatingChannel to send direct responses and indirect ↵Andrew Arnott2009-01-032-3/+35
| | | | messages while more truly simulating the ordinary channel experience.
* CRLF -> LFAndrew Arnott2009-01-031-160/+160
|
* Added replay detection tests.Andrew Arnott2008-12-251-3/+11
|
* Added new OpenID 1.x compatibility-supporting binding elements.Andrew Arnott2008-12-241-149/+152
| | | | | | | This adds: * callback arg support * signed return_to to verify callback args and URL are untampered with * Custom nonces to protect RPs against replay attacks when working with 1.0 OPs.