Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate towards customisable channel authorization strategies #95

Closed
wants to merge 10 commits into from

Conversation

lukeredpath
Copy link
Contributor

Opening an early pull request for my work on extracting our current, hardcoded HTTP-based channel auth strategy into a customisable strategy system, that lets users of the library implement channel authorization however they like (e.g. HTTP using a library of their own choice, not using HTTP at all etc.).

/cc @mloughran @aschuch

current HTTP authorisation code into a specific implementation.

This moves us towards customisable authorisation strategies while 
maintaining the previous public API as a facade around the new internal
implementation.

This also simplifies the calls between PTPusher and PTPusherChannel, as
the channel is no longer directly responsible for authorisation.
Cancellation seems unnecessary as we ignore any callbacks from the auth
delegate if we are disconnected.
…nURL

override it. 

Setting the auth delegate explicitly should always take precedence.
This lets us extend the API for modifying outgoing requests through
the PTPusherChannelAuthorizationOperation class rather than just exposing
what NSMutableURLRequest has to offer.
@lukeredpath
Copy link
Contributor Author

Closing in favour of #213.

@lukeredpath lukeredpath modified the milestones: v1.7, v2.0 Jun 28, 2016
@lukeredpath lukeredpath deleted the authentication-strategies branch June 28, 2016 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant