Rev 1293 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1293 | Rev 1305 | ||
---|---|---|---|
Line 95... | Line 95... | ||
95 | $gen = OIDplusAuthContentStoreJWT::JWT_GENERATOR_AJAX; |
95 | $gen = OIDplusAuthContentStoreJWT::JWT_GENERATOR_AJAX; |
96 | $sub = $ra_email; |
96 | $sub = $ra_email; |
97 | 97 | ||
98 | $authSimulation = new OIDplusAuthContentStoreJWT(); |
98 | $authSimulation = new OIDplusAuthContentStoreJWT(); |
99 | $authSimulation->raLogin($ra_email); |
99 | $authSimulation->raLogin($ra_email); |
100 | $authSimulation->setValue('oidplus_generator', $gen); |
100 | $authSimulation->setValue(OIDplusAuthContentStoreJWT::CLAIM_GENERATOR, $gen); |
101 | $token = $authSimulation->getJWTToken(); |
101 | $token = $authSimulation->getJWTToken(); |
102 | 102 | ||
103 | $out['text'] .= '<p>'._L('You can make automated calls to your OIDplus account by calling the AJAX API.').'</p>'; |
103 | $out['text'] .= '<p>'._L('You can make automated calls to your OIDplus account by calling the AJAX API.').'</p>'; |
104 | $out['text'] .= '<p>'._L('The URL for the AJAX script is:').'</p>'; |
104 | $out['text'] .= '<p>'._L('The URL for the AJAX script is:').'</p>'; |
105 | $out['text'] .= '<p><b>'.OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL).'ajax.php</b></p>'; |
105 | $out['text'] .= '<p><b>'.OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE_CANONICAL).'ajax.php</b></p>'; |