Rev 568 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 568 | Rev 570 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | return; |
91 | return; |
92 | } |
92 | } |
93 | 93 | ||
94 | $authSimulation = new OIDplusAuthContentStoreJWT(); |
94 | $authSimulation = new OIDplusAuthContentStoreJWT(); |
95 | $authSimulation->raLogin($ra_email); |
95 | $authSimulation->raLogin($ra_email); |
- | 96 | $authSimulation->setValue('oidplus_tokentype', 0); // 0=Automated AJAX, 1=Reserved for normal login |
|
- | 97 | $authSimulation->setValue('sub', $ra_email); // JWT "sub" attribute |
|
96 | $token = $authSimulation->GetJWTToken(); |
98 | $token = $authSimulation->GetJWTToken(); |
97 | 99 | ||
98 | $out['text'] .= '<p>'._L('You can make automated calls to your OIDplus account by calling the AJAX API.').'</p>'; |
100 | $out['text'] .= '<p>'._L('You can make automated calls to your OIDplus account by calling the AJAX API.').'</p>'; |
99 | $out['text'] .= '<p>'._L('The URL for the AJAX script is:').':</p>'; |
101 | $out['text'] .= '<p>'._L('The URL for the AJAX script is:').':</p>'; |
100 | $out['text'] .= '<p><b>'.OIDplus::webpath(null,false).'ajax.php</b></p>'; |
102 | $out['text'] .= '<p><b>'.OIDplus::webpath(null,false).'ajax.php</b></p>'; |