symfonycorp / connect Goto Github PK
View Code? Open in Web Editor NEWThe SymfonyConnect official API SDK
Home Page: https://connect.symfony.com/
License: MIT License
The SymfonyConnect official API SDK
Home Page: https://connect.symfony.com/
License: MIT License
The following method set the link to badge's image
protected function getLinkToFoafDepiction(\DOMElement $element)
{
return $this->getLinkNodeHref('./atom:link[@rel="foaf:depiction"]', $element);
}
however there is no reference to foaf:depiction in fixtures https://github.com/sensiolabs/connect/tree/master/tests/fixtures.
The badges images are always set to null.
Should this to be fixed on the SDK side?
Please fix either the filename VndComSensiolabsConnectXmlParser.php
or the classname VndComSensiolabsConnectXmlParser
in src/SensioLabs/Connect/Api/Parser
.
With case sensitive file system the class cannot be found (the L
in SensioLabs
is lowered in the filename).
https://connect.sensiolabs.com/faq redirects to https://connect.sensiolabs.com/help that displays :
Unable to find a user or a club named "help"
There are a few issues with serialization / deserialization.
When serializing the token, everything is stored in the session storage. When restoring the session, there are a few issues, especially with external classes (such as the logger, in the case you use a Monolog stream handler, which doesn't have any protection against deserialization).
This issue is pretty simple to test.
Inside any Symfony2 controller of an application using ConnectBundle (apart from the interactive login), the following code should fail, monolog complaining about not being able to open the resource in case you set it up with a stream handler.
$user = $this->get('security.context')->getToken()->getApiUser()->refresh();
In symfony 2.2 the Token is no more given through contructor but through setToken. https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php#L41.
This issue is related to the connect website and its integration in other Symfony/SensioLabs website, but there is no public issue tracker for it AFAIK, so I'm opening it on the SDK repo.
It is very annoying that each time you connect with SensioLabsConnect, you get redirected to the homepage of the website instead of staying on the current page. The redirection should go to the page where we were before the connection.
I went to official https://connect.sensiolabs.com/
Profile => Your online Profile => Facebook => Link your facebook account
and this is what I got
:)
I can see the rewarding date of any badge in my badgesBag, and for all others users.
For example, it could be interesting to know that for "Symfony Certification" and "Years" badges.
The certificate for connect.sensiolabs.com expired on Dec 28th.
hi, can we have a js plugin to pull badges to our blogs of badges?
one could take SDK and do this through knpbundles.com but maybe it is better from the source
I'm trying to use sensiolabs/connect to retrieve a user's badges.
I've beeing trying to avoid the use of Silex but I couldn't complete the operation.
Then I've been trying with Silex and following the documentation.
When it comes to the connect/callback route, I have the following error:
ClientException:
file_get_contents(https://connect.sensiolabs.com/oauth/access_token):
failed to open stream: operation failed
An here's what it says:
[...]
at Browser->submit('https://connect.sensiolabs.com/oauth/access_token', array('client_id' => '9e...ac', 'client_secret' => '002...36', 'code' => 'b8...4b', 'grant_type' => 'authorization_code', 'redirect_uri' =>'http://badges.local/connect/callback', 'response_type' => 'code', 'scope' => 'SCOPE_PUBLIC')) in /var/www/badges/vendor/sensiolabs/connect/src/SensioLabs/Connect/OAuthConsumer.php line 93
at OAuthConsumer->requestAccessToken('http://badges.local/connect/callback', 'b8...4b') in /var/www/badges/web/index.php line 42
[...]
Is it possible that the problem is in: https://connect.sensiolabs.com/oauth/access_token ?
Without Silex the problem was the same: a 500 error from https://connect.sensiolabs.com/oauth/access_token
no sure if this is the right place for the request.
It would be great if one could login to connect.sensiolabs.com with a github account, and without to register just another account for another portal..
Hello,
After migrating to version 4.3.0:
- Updating sensiolabs/connect (v4.2.3 => v4.3.0): Loading from cache
I get this error
Error: Cannot access private property SensioLabs\Connect\Security\Authentication\Token\ConnectToken::$apiUser
.../vendor/sensiolabs/connect/src/SensioLabs/Connect/Security/Authentication/Token/SerializationConnectTokenTrait.php:9
.../vendor/symfony/security/Core/Authentication/Token/AbstractToken.php:174
...
This follows #47
When something goes wrong in a client application, during the login workflow, the user end up with a default message:
Warning! Authentication request could not be processed due to a system problem..
SensioLabsInsight needs access to your SensioLabsConnect account. Please accept the application in your Connect Apps preferences.
But actually, the end user (I in this case) did not "refuse" the oauth application. there is an SQL error.
But there is nothing in the log, and no exception. So the monitoring stack did not see it. And so the end user can not login anymore to the application.
If I turn my application in dev env, I can see this kind of logs:
[2014-10-13 16:05:27] security.INFO: Authentication request failed: An exception occurred while executing 'SELECT ...... FROM account_user a0_ WHERE a0_.uuid = ?' with params ["90f28e69-9ce9-4a42-8b0e-e8c7fcc27713"]: SQLSTATE[42703]: Undefined column: 7 ERROR: column a0_.workflow_id does not exist LINE 1: ...n_id12, a0_.beta AS beta13, a0_.admin AS admin14, a0_.workfl... ^ [] {"uuid":"06af53b6-838c-4568-bb75-2c445ebf0677"}
ping @tucksaun
I need the user's picture but I'm getting nothing from Connect:
properties: array:23 [▼
"username" => "saro0h"
"uuid" => "…"
"name" => "Sarah Khalil"
"image" => null
…
The scope of my app is SCOPE_PUBLIC
, I should access it right?
I finally could update a big Symfony app to 7.0. When trying to browse the app, I see this error:
Typed property Symfony\Component\HttpKernel\Bundle\Bundle::$extension
must not be accessed before initialization
The error happens here:
connect/src/SymfonyConnectBundle.php
Line 30 in ef075c7
@nicolas-grekas did you expect this issue? What would be the best way to solve this? Thanks!
In composer.json
dependency on symfony/http-kernel
is missing:
https://github.com/sensiolabs/connect/blob/master/src/SensioLabs/Connect/OAuthConsumer.php#L16
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.