Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error #3

Open
abulut opened this issue Jan 28, 2019 · 4 comments
Open

Compile Error #3

abulut opened this issue Jan 28, 2019 · 4 comments

Comments

@abulut
Copy link

abulut commented Jan 28, 2019

Hi, I try to work with the sdk sample, but if given some errors like this:

Getting access token...
Warning: openssl_sign(): supplied key param cannot be coerced into a private key in /var/www/..../include/adobe_stock_sample/vendor/firebase/php-jwt/src/JWT.php on line 196

Fatal error: Uncaught DomainException: OpenSSL unable to sign data in /var/www/...../include/adobe_stock_sample/vendor/firebase/php-jwt/src/JWT.php:198 Stack trace: #0 /var/www/...../include/adobe_stock_sample/vendor/firebase/php-jwt/src/JWT.php(167): Firebase\JWT\JWT::sign('eyJ0eXAiOiJKV1Q...', '-----BEGIN RSA ...', 'RS256') #1 /var/www/.../include/adobe_stock_sample/src/Utils/ImsToken.php(59): Firebase\JWT\JWT::encode(Array, '-----BEGIN RSA ...', 'RS256') #2 /var/www/....../include/adobe_stock_sample/src/sdk_license1.php(39): SdkDemo\Utils\ImsToken->__construct(Object(SdkDemo\Config\AppConfig)) #3 /var/www/..../fotodruck_konfigurator.php(19): include_once('/var/www/.....') #4 /var/www/....../index.php(2899): include_once('/var/www/.....') #5 {main} thrown in /var/www/...../include/adobe_stock_sample/vendor/firebase/php-jwt/src/JWT.php on line 198

@chfabbro
Copy link
Member

Hi. First of all, this sample is for enterprise customers who have created a service account integration. Is this application for an enterprise customer, or for an individual customer? If you need to sign in an individual user, you need to use an OAuth workflow. I have sample code here for this workflow:
https://bitbucket.org/chfabbro/authcode-php/src/master/

And see documentation here:
https://www.adobe.io/authentication/auth-methods.html#!adobeio/adobeio-documentation/master/auth/OAuth2.0Endpoints/web-oauth2.0-guide.md

But if you have a service account created and need to integrate that way, please paste your AppConfig.php contents here (do not include the secret on line 22!), and I can troubleshoot.

@abulut
Copy link
Author

abulut commented Jan 29, 2019

Hi @chfabbro, our company used the fotolia api, as you know fotolia will shutdown the service from may. Because of that i must integrate the adobe stock api in the future. I already registered adobe io and i added an integration. I will only use the image library for a configurator.

@chfabbro
Copy link
Member

Hi @abulut,

This is not the correct integration type. I believe you should use the links I shared above:
https://bitbucket.org/chfabbro/authcode-php/src/master/
https://www.adobe.io/authentication/auth-methods.html#!adobeio/adobeio-documentation/master/auth/OAuth2.0Endpoints/web-oauth2.0-guide.md

Can we take this conversation offline? Please email [Grp-Adobe Stock Partnerships] ([email protected]) so we can make sure you are following the correct path. My colleagues will check your Fotolia use case and make sure you are set up with the proper account type, and then I can help you with the integration.

Thanks, Christopher

@jeremie1112
Copy link

Hello working on a new patch for log4j.
Update log4j to 2.17.1 to address CVE-2021-44832.
https://nvd.nist.gov/vuln/detail/CVE-2021-44832

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants