Error: only https connections are permitted
See original GitHub issueWhen calling the token the endpoint after a picking up an authz code from the auth endpoint - the following error will crash the application. Is it required for the token endpoint to use https? Seem like it should not be required, but the error isn’t too explanatory. I’m not specifying a https redirect in the AndroidManifest for the XML either.
Caused by: java.lang.IllegalArgumentException: only https connections are permitted
at net.openid.appauth.Preconditions.checkArgument(Preconditions.java:116)
at net.openid.appauth.connectivity.DefaultConnectionBuilder.openConnection(DefaultConnectionBuilder.java:51)
at net.openid.appauth.AuthorizationService$TokenRequestTask.doInBackground(AuthorizationService.java:397)
at net.openid.appauth.AuthorizationService$TokenRequestTask.doInBackground(AuthorizationService.java:375)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Version: appauth:0.7.0
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:7 (1 by maintainers)
Top Results From Across the Web
android - An error occurred while executing doInBackground ...
update: after I look at the Github repository I find this error in issues. Error: only https connections are permitted.
Read more >How To Force HTTPS Connections - gHacks Tech News
Google Chrome has a startup parameter called --force-https. If you start Chrome with that parameter only https connections are allowed. This ...
Read more >School's elearning website says that "For safety reasons, only ...
School's elearning website says that "For safety reasons, only https connections are allowed", what should I do to access it?
Read more >8 Ways to Fix SSL Connection Errors on Various Browsers ...
5. How to Fix the SSL Connection Error on Android · Open the Chrome browser and access its Settings menu. · Go to...
Read more >Check if a site's connection is secure - Google Chrome Help
Secure; View site information ... that certificate, and if Chrome has a private connection with a site. ... Fix "Your connection is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Какие атаки,? Я чайник в этих делах! Так что промазали
On Wed, Sep 25, 2019, 11:13 Jan Malek notifications@github.com wrote:
You can use an alternative
ConnectionBuilder
that permits whatever URLs you like; there is an example of this in the demo:https://github.com/openid/AppAuth-Android/blob/master/app/java/net/openid/appauthdemo/ConnectionBuilderForTesting.java
This implementation allows http links and also ignores certificate warnings. Of course this should not be used for production, but is fine for testing. Custom connection builders are provided via an
AppAuthConfiguration
instance that is provided toAuthorizationService
, e.g:https://github.com/openid/AppAuth-Android/blob/master/app/java/net/openid/appauthdemo/LoginActivity.java#L384