Giter Site home page Giter Site logo

lets-the-right-one-in's People

Contributors

loveleif avatar mattiaslevin avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

loveleif

lets-the-right-one-in's Issues

Token refresh not handled automatically

Can you please describe how to perform a request which requires the authentication token?
And how to handle an expired token which requires the refresh?

I've tried using the code in AuthAdapter.changePassword() method, but it doesn't work, it seems the ApiAuthInterceptor is never used...

In the RestAdapter builder, there is the possibility to pass the RequestInterceptor object, but in the AuthAdapter this property is missing, how the automatic refresh token is handled? How everything is connected each other?

Thank you

AuthApi customizable

Is it possible to customize the AuthApi interface?
I'm not able to assign mine to the Builder through the setApi() method.

Handle?

1-27 14:57:26.201 3531-3546/se.pfeiff.feeder D/RETROFIT﹕ java.lang.IllegalArgumentException: account is null
at android.accounts.AccountManager.peekAuthToken(AccountManager.java:835)
at se.leiflandia.lroi.auth.ApiAuthenticator.authenticate(ApiAuthenticator.java:42)
at com.squareup.okhttp.internal.http.OkHeaders.processAuthHeader(OkHeaders.java:262)
at com.squareup.okhttp.internal.http.HttpEngine.followUpRequest(HttpEngine.java:951)
at com.squareup.okhttp.Call.getResponse(Call.java:276)
at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:219)
at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:192)
at com.squareup.okhttp.Call.execute(Call.java:79)
at retrofit.client.OkClient.execute(OkClient.java:53)
at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:326)
at retrofit.RestAdapter$RestHandler.access$100(RestAdapter.java:220)
at retrofit.RestAdapter$RestHandler$2.obtainResponse(RestAdapter.java:278)
at retrofit.CallbackRunnable.run(CallbackRunnable.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at retrofit.Platform$Android$2$1.run(Platform.java:142)
at java.lang.Thread.run(Thread.java:818)

Simplify configuration

How much of the configuration can be simplified? For example by build scripts, the manifest merger, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.