oat-sa / lib-lti1p3-core

PHP library for LTI 1.3 Core implementations as platforms and / or as tools.
GNU General Public License v2.0
33 stars 18 forks source link

OidcAuthenticationRequestHandler raises RuntimeException #143

Open febiusWeschool opened 2 years ago

febiusWeschool commented 2 years ago

I'm calling the handler in my platform oidc/auth controller like this: $psrRequest = $this->requestFactory->createServerRequest($request->getMethod(), $request->getRequestUri()); return $this->handler->handle($psrRequest);

but it triggers a RuntimeException with this error: Resources are not supported in serialized data. Path: Nyholm\Psr7\Stream -> Nyholm\Psr7\Response

because the serializer finds a property of type resource...

Any idea what might be wrong? Since I'm using the bundle handler I'm not really sure how to avoid it.

ekkinox commented 2 years ago

hey @febiusWeschool

if you are talking about making your application offering an OIDC auth endpoint (as platform) via the LTI symfony bundle, you have nothing else to do than making sure the flex recipe correctly enabled it (it's provided by the bundle so you don't have even to code it)

please check: https://oat-sa.github.io/doc-lti1p3/bundle/doc/message/platform/#provide-platform-oidc-authentication

if the problem is something else, could you bring a bit more context so I can help ?

thx :)