Commit Graph

1399 Commits

Author SHA1 Message Date
Tobias Oberstein 9ad7878e0c prepare for release (#874) 2017-07-21 13:58:54 +02:00
meejah 47e63dc009 Asyncio component txaio (#873)
* re-write asyncio component with txaio

* do all failure/success counting in component base class

* disconnect a possibly-still-active session

* handle connection errors

* reconnect when 'other' errors happen, too
2017-07-21 09:15:30 +02:00
Tobias Oberstein 0af895bff0 Newapi asyncio component (#872)
* start of asyncio side of component API

* copy-pasta the authentication stuff for now

* add 'trust_root' to TLS config, fix generic component errors

* change MyAuthorizer to match component examples

* new certificate; expired

* move auth code to central place, refactor general new-Session code

* fixes to asyncio, unix, some flake8

* refactor authentication API

add_authenticator now takes an instance of IAuthenticator
that we construct with a factory function

* unused imports

* no qa on invalid syntax for py 2
2017-07-19 14:15:26 +02:00
Richard Artoul d3a4ecc9b6 Check for auth properties in ._args
The current implementation doesn't work, but after changing it to ._args it does the right thing
2017-07-01 22:04:15 -07:00
Tobias Oberstein c797d5a3fc update changelog; bump version (#861) 2017-06-24 14:03:38 +02:00
meejah 4884a7375b Ticket1075 revoke subscription force reregister (#860)
* add force_reregister= option

* meta-API example
2017-06-24 13:08:54 +02:00
Aleksander S afaa5cabb0 Fix typos causing endpoint config parsing to fail in twisted Component API (#852) 2017-06-12 07:48:23 +02:00
Tobias Oberstein 949430e346 tighten type checking 2017-06-10 12:17:02 +02:00
meejah 593ce9a70c fix handling of some TLS options in Component configs 2017-06-10 11:10:10 +02:00
Tobias Oberstein e69b3146fa prepare release (#847)
* prepare release

* pin pytest-asyncio
2017-06-08 17:32:07 +02:00
Tobias Oberstein 7844219a8f Merge pull request #842 from maruno/fix-onConnect-docstring
Fix onConnect docstring regarding return value
2017-06-06 12:03:38 +02:00
Tobias Oberstein c2582550ad Merge pull request #844 from meejah/newapi-transport-options
Newapi transport options
2017-06-06 12:01:32 +02:00
Wieland Hoffmann 8a2deea78b onConnect: Do deny -> To deny 2017-06-05 19:57:15 +02:00
meejah 1c4919d3e0 flake8 2017-06-02 11:49:12 -06:00
meejah e75b61724c remove fixme 2017-06-02 11:29:19 -06:00
meejah 0545d46477 re-factor so RawSocket options can be passed as well, and slightly better error-message 2017-06-02 11:28:48 -06:00
meejah 3df75ecd90 allow snake_case options to work as well 2017-06-01 16:03:49 -06:00
meejah 6465cd4ce4 Allow components to pass WebSocket/RawSocket options 2017-06-01 15:58:35 -06:00
Michel Bouwmans 4b1d307f54 Fix onConnect docstring regarding return value
The docstring mentioned a ConnectionAccept to be returned, whilst this model exists it doesn't seem to be used and the actual expected return value is str.
2017-06-01 10:55:54 +02:00
Tobias Oberstein a9362174be Merge pull request #841 from OOPMan/upstream-issue-836
#836: register/subscribe decorators support different URI syntax from what session.register and session.subscribe support
2017-05-23 17:51:55 +02:00
Adam Jorgensen 1314f40bee #836: Added additional test to test_decorate_endpoint 2017-05-23 15:16:12 +02:00
Adam Jorgensen 229ff62e4b #836: Added a wildcard URI to test_valid_uris 2017-05-23 15:11:18 +02:00
Adam Jorgensen c8311e5a36 #836: Added assertion to ensure uri is never 0-length 2017-05-23 15:11:14 +02:00
Adam Jorgensen 0f4536bb89 #836: Allow for standard Crossbar a.c..d style pattern URIs to be used with Pattern 2017-05-23 15:02:23 +02:00
meejah b6cb802740 split out marshal_options() from marshal() 2017-05-19 15:02:18 -06:00
Tobias Oberstein 8f25d62dbd Merge pull request #835 from meejah/issue834-log-level
add log_level= kwarg to asyncio side
2017-05-14 09:38:10 +02:00
Alex Shafer 8e093d1a9e Ensuring drop reason always gets propogated 2017-05-13 12:25:09 -07:00
meejah ef90f051b8 add log_level= kwarg to asyncio side 2017-05-03 17:08:38 -06:00
Tobias Oberstein c0153708f7 reenable protocol_error on receiving event for unknown subscription ID (the prefix-sub issue needs to be fixed in CB) 2017-05-01 12:21:17 +02:00
Tobias Oberstein 07a36ed5bc bump version; update changelog 2017-05-01 11:43:56 +02:00
Tobias Oberstein f1eb092a5e Merge remote-tracking branch 'upstream/master' into rel_0_18_3 2017-05-01 11:37:52 +02:00
Tobias Oberstein c2ba9312c8 forward subscription on event details; polish up 2017-05-01 11:37:11 +02:00
Alex Grönholm 8f8b3a6821 Added support for the X-Forwarded-For HTTP header 2017-04-29 04:09:03 +03:00
Tobias Oberstein 243ca72b96 Merge pull request #824 from OOPMan/master-decorator-improvements
Register/Subscribe Decorator Improvements
2017-04-19 10:52:31 +02:00
Adam Jorgensen 3139393266 Added additional test cases for new Pattern features 2017-04-19 10:24:35 +02:00
Adam Jorgensen 4b03ff4929 Corrected flake8 issues 2017-04-19 09:58:01 +02:00
Adam Jorgensen 0cc82aeae7 Updated subscribe and register methods on ApplicationSession to handle the changes made to the Pattern class as well as the register and subscribe decorators 2017-04-18 21:29:38 +02:00
Adam Jorgensen 634f498bbe Removed subscribe_options method on Pattern and replaced with uri_type property 2017-04-18 21:27:27 +02:00
Adam Jorgensen a0bc3695ee Added options field to autobahn.wamp.uri.Pattern class. Updated register and subscribe decorators in the same module to use this new field 2017-04-18 21:13:01 +02:00
Adam Jorgensen b073200ace Allow register and subscribe methods on ApplicationSession to handle options provided by register and subscribe decorators 2017-04-18 20:56:11 +02:00
Adam Jorgensen 2c8715d901 Allow register and subscribe decorators to be supplied with options 2017-04-18 20:56:11 +02:00
Alex Grönholm 66c1592ad6 Added missing "self" arguments to instance methods in interfaces 2017-04-18 16:36:04 +03:00
Tobias Oberstein 9349d554c3 deactivate test on < py 3.3 2017-04-15 17:05:34 +02:00
Tobias Oberstein 420ceff178 fix unit test 2017-04-15 14:41:51 +02:00
Tobias Oberstein e554bbfe61 flake8 2017-04-15 14:34:46 +02:00
Tobias Oberstein d9c60be58d Merge pull request #817 from oberstet/master
bump version; update changelog
2017-04-15 14:30:55 +02:00
Tobias Oberstein be321db09d Merge pull request #814 from meejah/ticket811-skipped-tests
Ticket811 skipped tests
2017-04-15 14:30:39 +02:00
Tobias Oberstein b3ddee0e77 Merge pull request #818 from crossbario/pr-816-additions
Pr 816 additions
2017-04-15 14:29:37 +02:00
Tobias Oberstein 9b064f7d5d Merge pull request #820 from meejah/async_request_errbacks
Async request errbacks
2017-04-15 14:29:20 +02:00
Tobias Oberstein e01c999353 Merge remote-tracking branch 'upstream/pr-816-additions' 2017-04-15 14:25:51 +02:00