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

Missing "target_link_uri" param & Could not find issuer #4

Open
ashutoshsoni891 opened this issue Nov 16, 2020 · 1 comment
Open

Missing "target_link_uri" param & Could not find issuer #4

ashutoshsoni891 opened this issue Nov 16, 2020 · 1 comment

Comments

@ashutoshsoni891
Copy link

ashutoshsoni891 commented Nov 16, 2020

Hi there!
First of all , Thanks for making Php package of LTI.I am trying to hit [localhost:9001/login](localhost url) but it says :

Missing "target_link_uri" param and
Fatal error: Uncaught IMSGlobal\LTI\OIDC_Exception: Could not find issuer in /srv/app/vendor/imsglobal/lti-1p3-tool/src/lti/LTI_OIDC_Login.php:101 Stack trace: #0 /srv/app/vendor/imsglobal/lti-1p3-tool/src/lti/LTI_OIDC_Login.php(56): IMSGlobal\LTI\LTI_OIDC_Login->validate_oidc_login(Array) #1 /srv/app/web/login.php(8): IMSGlobal\LTI\LTI_OIDC_Login->do_oidc_login_redirect('http://localhos...') #2 {main} thrown in /srv/app/vendor/imsglobal/lti-1p3-tool/src/lti/LTI_OIDC_Login.php on line 101

There is no suck key exists in example.json , however I have target_link_uri : see this. I am running docker-compose up --build .Also after successfully running this repo , will we be certified ? because I already successfully published testing tool here : (https://lti-ri.imsglobal.org/platforms/1366)
Could you please help me out ?

@hugotiburtino
Copy link

hugotiburtino commented Nov 22, 2021

Almost an year now and no answer so far...

I'm also just someone passing by and have done a hot fix just to see the redirect at login.php, adding a $request parameter.

LTI\LTI_OIDC_Login::new(new Example_Database())
    ->do_oidc_login_redirect(TOOL_HOST . "/game.php", $request = [ 'iss' => 'http://localhost:9001', 'login_hint' => '123456'] )
    ->do_redirect();

But it would be great if the code would simply run when you spin it up.
(that solves the 'Could not find issuer' error. I hadn't the 'target_link_uri' error)

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

2 participants