You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the best way to deal with this right now would be to subclass Hyperdrive and modify requests inside constructRequest with your appropriate access token or authentication mechanism.
As for performing your authorization flow to retrieve the access token. You would mostly have to do this yourself unless it is described via Hypermedia. It may make sense for us to make func request(request:NSURLRequest, completion:(RepresentorResult -> Void)) public so that you could use this for convenience.
I'd love to hear any feedback you have, I'd definitely be interested in seeing how we could improve Hyperdrive to supply a better API when it comes to authentication.
It would help if we could provide our own NSURLSession with the constructor of the Hyperdrive instance.
We could then set custom headers by using the configuration, or provide authentication logic by using a delegate on the session.
Such as OAuth? or JSON Web Tokens
The text was updated successfully, but these errors were encountered: