wadpam / lets-the-right-one-in Goto Github PK
View Code? Open in Web Editor NEWGuja related Android components
License: MIT License
Guja related Android components
License: MIT License
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
Is it possible to customize the AuthApi interface?
I'm not able to assign mine to the Builder through the setApi() method.
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)
How much of the configuration can be simplified? For example by build scripts, the manifest merger, etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.