Prestashop 1.7 - Unable to install module - Oauth required - oauth

I am trying to install a prestashop module, but I see this error message everytime I try to download it: "In order to install this module you need to first install/enable the Oauth libraries on your Prestashop server.". It seems that it needs the oAuth library to be installed. Does any of you know how to configure it for Prestashop to recognize it?
The link to the module: https://addons.prestashop.com/en/third-party-data-integrations-crm-erp/32699-quickbooks-connector.html
I tried downloading an oauth module: https://github.com/jcarloscid/oauthsso/blob/master but couldn't get it to work.

Most hosting companies (thankfully) have firewall's active.
You might want to ask/check if Oauth is allowed, and ask if you van whitelist the destination's IP for your hosting package.

Related

Hyperledger Composer Multiple user mode for REST server throws 401 error

I have been following the tutorials which are provided in Hyperledger Composer docs, but I am not getting the results that they are supposed to I should be getting. Specifically, when I try to enable the multiple user mode for the REST server and I try to call one of the business network REST API operations using the REST API explorer I always get a HTTP 401 Authorization Required. According to the Tutorial, I if get this error is due to I have not authenticated correctly to the REST API, but it does not mention why this error occurs or how I may fix it.
It is very important for application development to be able to authenticate each user who wants to make requests to the API.
What version of Hyperledger Composer are you using?
The tutorial/document you refer to is correct for v0.15.0 and works a little differently for prior versions.
Are you seeing an Access token at the top of the Browser Window - this indicates that you have successfully authenticated and can continue with the steps for the Wallet.
If you are not seeing an Access token displayed, then make sure you hit your REST server with a URL similar to http://localhost:3000/auth/github again and login.
If you are still experiencing problems I would suggest going back to just using authentication without multiuser mode and verify that the authentication works properly from there.
After some research, I found a solution and worked for me.
If you already enable Github authentication then ignore. Otherwise first enable authentication following this tutorial Enaling Authentication.
Before start rest server you will export your admin card from the network by using this command:
composer card export -n admin#sample-network -f admincard.card
Now start rest server with authentication using this command:
composer-rest-server -c admin#sample-network -p 3000 -a true -m true
After some time rest server will start.
Now First, go this link for authentication: http://localhost:3000/auth/github
After successful authentication, you will get an access token and also you will see a Wallet options below.
Now you need to import a card that you already export from your network.
That's it, you can able to add anything to your network.
In my case, I have two missed steps:
enabling authentication for the REST server
https://hyperledger.github.io/composer/v0.19/integrating/enabling-rest-authentication.html
composer-rest-server -c admin#you_project -a true, I just execute composer-rest-server but did not specify the identity "admin#you_project" before.

Enable OAuth in PHP - Azure App Service

Good evening,
We are working with some developers in the creation of one of our first apps, using Microsoft Azure Cloud hosting for the platform.
We are trying to get the bitly API to work from our server however we have been informed by our devs that they are unable to utilise this, with a suspect cause being that the OAuth module isn't listed within the info.php of the Azure App service with the files uploaded.
What we are looking for is to enable the OAuth capabilities for the PHP web app, however we aren't sure how to reconfigure the environment with no root access to the base server (as a result of the Azure App service). Normally we would utilise the PECL or YUM package for OAuth and then reconfigure it for php to be able to access it, however obviously this time we can't.
Wanted OAuth Configuration:
click for image
Can anyone help us enable the OAuth for this application?
Thanks!
Azure Web Apps support custom PHP extensions in the default PHP runtime. Please try the following steps to achieve your requirement.
Download the DLL file of OAuth extension from https://pecl.php.net/package/oauth, select the nts & x86 version.
Add a ext directory to your root directory. Copy the dll file into this directory.
Create an ini file in the root directory called extensions.ini
Add configuration settings to the extensions.ini file using the same syntax you would use in a php.ini file. E.G.
extension = d:\home\site\wwwroot\ext\php_oauth.dll
Add an App Setting to your Web App on Azure protal with the key PHP_INI_SCAN_DIR and value d:\home\site\ini
Deploy your application to Azure Web app, and restart the Azure Web Apps service.
Leverage phpinfo() you can see the extension configured correct,
You can refer to https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-php-configure#how-to-enable-extensions-in-the-default-php-runtime for more info.

Deploy a Rails app to Openshift: rhc - Username or password is not correct

Our company wants to build a Rails-based backend website and we chose the OpenShift platform to host and deploy. To connect the two, all the guides lead to the installation of the ruby rhc gem and then setup it.
I'm fresh to OpenShift and I'm trying to setup the rhc toolkit on a remote Ubuntu server. Now I ran gem install rhc and everything went fine. Since I have to configure rhc through rhc setup, I ran this command afterwards and just after asking which server I want to use (I left it blank to use openshift.redhat.com) it comes to the login part.
At this moment, OpenShift Online allows you to login only with your GitHub account, so I gave in the GitHub credentials and... voilĂ ! Username or password is not correct. Tried this both on PuTTy and ConEmu.
I swear I checked the login data more than 1000 times, and I'm totally lost.
Thank you a lot in advance
If you want to use OpenShift Online NextGen Developer Preview, you do not use the rhc client. You need to use the oc client. So anything you read where it says rhc is the wrong documentation.
Once you are logged in through the new web console, select on the '?' in circle top right and select command line tools. It will give you links to the 'oc' tools to download, plus the command you need to run to login from the command line using a session access token.
The link to that page should be:
https://console.preview.openshift.com/console/command-line
Also suggest you get down and use the free eBook for the new platform at:
https://www.openshift.com/promotions/for-developers.html
It uses a VM, but ignore the client login step from that and use that from page above instead and then follow examples in the book against the Online NextGen Developer Preview instead.

Quickbooks Online without PECL Oauth

I have a client in an hosting environment that will not allow him to install the PECL OAUTH package which is listed as a dependency. Is it possible that there are any simple modifications that will allow me to use some other OAUTH implementation to make the Quickbooks Online sdk work for me?
Use the open source code from here:
https://github.com/consolibyte/quickbooks-php
No Pecl libraries necessary. Here's the quick-start guide:
http://www.consolibyte.com/docs/index.php/PHP_DevKit_for_QuickBooks_-_Intuit_Partner_Platform_Quick-Start

How do I upgrade the OpenId4Java jar version in the OpenID plugin?

I have installed the OpenID plugin (v0.4.3) for my Grails(v2.0.1) app but I am having trouble authenticating with Google as the OpenID provider.
I believe the problem is that OpenId4Java v0.9.4 doesn't handle Google's response properly. I read this somewhere the other day but can't find a reference at the moment (will edit when I find it).
So I want to upgrade the version of the OpenId4Java jar that the plugin has with a later version. But I am not sure where/how to do this.
In the <home dir>/.grails/2.0.1/projects/<my project>/plugins/openid-0.4.3/lib folder the jar is java-openid-sxip-0.9.4.jar. And the one I find in the recommended download from http://code.google.com/p/openid4java/ is openid4java-0.9.6.jar.
I've never had to replace a jar supplied by a plugin before so I'm just wondering where I should put the 0.9.6 jar, and how I get my app to recognise it?
It seems that installing version 0.4.4 (released late May 2012) of the OpenID plugin does the trick. It comes with openid4java-nodeps-0.9.6.jar instead of java-openid-sxip-0.9.4.jar meaning the newer version (v0.9.6) of OpenId4Java is used.

Resources