more openid work

This commit is contained in:
zotlabs 2019-10-10 18:34:44 -07:00
parent 26109b9643
commit b2229bdc6d
5 changed files with 5 additions and 8 deletions

View file

@ -228,11 +228,6 @@ class Inbox extends Controller {
// These require a resolvable object structure
if (is_array($AS->obj)) {
$item = Activity::decode_note($AS);
// @wip replies must go to the replyTo endpoint if the top level post originated here.
//if ($item['mid'] !== $item['parent_mid'] && stripos(z_root(), $item['parent_mid']) === 0) {
// $item = null;
// break;
//}
}
else {
logger('unresolved object: ' . print_r($AS->obj,true));

View file

@ -12,6 +12,7 @@ class Jwks extends Controller {
$key = Keyutils::pemtome(get_config('system','pubkey'),$m,$e);
$keys = [
[
'alg' => 'RS256',
'e' => base64url_encode($e),
'n' => base64url_encode($m),
'kty' => 'RSA',

View file

@ -10,7 +10,7 @@ class Oauthinfo extends Controller {
$ret = [
'issuer' => z_root(),
'authorization_endpoint' => z_root() . '/authorize',
'jwks_uri' => z_root() . '/jwks/0',
'jwks_uri' => z_root() . '/jwks',
'token_endpoint' => z_root() . '/token',
'userinfo_endpoint' => z_root() . '/userinfo',
'scopes_supported' => [ 'openid', 'profile', 'email' ],

View file

@ -6,7 +6,7 @@ namespace Zotlabs\Web;
class HttpMeta {
private $vars = null;
private $og = null;
private $og = null;
function __construct() {

View file

@ -2503,4 +2503,5 @@ function get_safemode() {
$_SESSION['safemode'] = 1;
}
return intval($_SESSION['safemode']);
}
}