summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Test/Mocks
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | | |
* | | | | 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.
* | | | | 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.
* Added more targeted extension binding element tests.Andrew Arnott2008-12-221-19/+29
|
* Added a mock extension and test in order to focus the test on the extension ↵Andrew Arnott2008-12-211-0/+91
| | | | binding element.
* Removed IMessage.Incoming and put it just in the OAuth area that needs it.Andrew Arnott2008-12-192-18/+0
|
* Lots of work toward extensions.Andrew Arnott2008-12-192-147/+147
|
* Check_authentication signature verification is now actually being performed.Andrew Arnott2008-12-162-1/+6
|
* Added a private Provider association test (dumb mode).Andrew Arnott2008-12-164-0/+17
| | | | Although it passes, we're still cheating on actually validating the signature of the message at the Provider.
* Lots of stylecop work.Andrew Arnott2008-12-011-1/+1
|
* Hundreds more stylecop fixes.Andrew Arnott2008-11-252-53/+58
| | | | Mostly just doc bugs now.
* Several hundred StyleCop fixes.Andrew Arnott2008-11-242-27/+30
|
* A touch of refactoring and C# warning resolution.Andrew Arnott2008-11-244-12/+11
|
* All 249 enabled tests pass.Andrew Arnott2008-11-241-11/+15
|
* Added discovery and around 60 tests. The discovery and a few other tests ↵Andrew Arnott2008-11-243-1/+264
| | | | still fail, but we're making progress.
* Added YADIS and other discovery, XRDS, untrusted web requests.Andrew Arnott2008-11-234-6/+6
| | | | Hundreds of StyleCop messages and some FxCop as well. Some refactoring definitely went into the new files from their DotNetOpenId origins, but there is much more to do.
* Reworked the way messages are instantiated and deserialized.Andrew Arnott2008-11-207-41/+95
| | | | This was a whole lot of work to just get multi-version capability added to message types so that OpenID could handle its few versions.
* Better abstraction of association-specific behavior.Andrew Arnott2008-11-182-0/+4
|
* Moved association creation logic from test assembly to library.Andrew Arnott2008-11-181-2/+24
|
* Added very basic OpenID message passing scenario test.Andrew Arnott2008-11-094-5/+113
| | | | Lots of refactoring to eliminate IOAuthDirectedMessage which was redundant with other types and to better enable testing of OpenID scenarios.
* Refactored test coordinator so it can be used with OpenID as well as OAuth.Andrew Arnott2008-11-081-0/+142
|
* Added tests for OpenIdChannel and KeyValueForm encoder.Andrew Arnott2008-11-081-0/+30
|