James McKinney

Results 188 comments of James McKinney

New PR without conflicts: #476

Can do along with #272 (now #474), so closing here as there are conflicts and we'd need to make new commits either way.

To add some detail to this comment: > Anyone using a custom laucher, poller, spiderqueue, sqlitequeue will have their code broken. This PR would require changing these interfaces: * `ISpiderQueue.list`...

Discussion of replacement to default spider queue moved to #475 Noting that this issue was postponed "in favour of https://github.com/scrapy/scrapyd/issues/187/3rd solution (Unify queues/dbs)" https://github.com/scrapy/scrapyd/pull/201#issuecomment-485489769 However, #187 has gone nowhere since...

## get_unverified_header ```python from jose import jwt jwt.get_unverified_header(token) ``` ```python import jwt jwt.get_unverified_header(token) ``` ## base64url_decode ```python from jose.utils import base64url_decode ``` https://github.com/mpdavis/python-jose/blob/4b0701b46a8d00988afcc5168c2b3a1fd60d15d8/jose/utils.py#L72-L77 ```python from jwt.utils import base64url_decode ``` https://github.com/jpadilla/pyjwt/blob/7b4bc844b9d4c38a8dbba1e727f963611124dd5b/jwt/utils.py#L28-L33...

For my needs, I just haven't figured out the replacement for [jwk.construct()](https://github.com/mpdavis/python-jose/blob/4b0701b46a8d00988afcc5168c2b3a1fd60d15d8/jose/jwk.py#L63) ([docs](https://python-jose.readthedocs.io/en/latest/jwk/index.html?highlight=construct)). I probably need to do something with [PyJWK](https://github.com/jpadilla/pyjwt/blob/72ad55f6d7041ae698dc0790a690804118be50fc/jwt/api_jwk.py)? ```python from jose import jwk key = jwk.construct(data) key.verify(msg,...