mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 16:15:13 +00:00
more openid work
This commit is contained in:
parent
26109b9643
commit
b2229bdc6d
5 changed files with 5 additions and 8 deletions
|
@ -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));
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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' ],
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace Zotlabs\Web;
|
|||
class HttpMeta {
|
||||
|
||||
private $vars = null;
|
||||
private $og = null;
|
||||
private $og = null;
|
||||
|
||||
function __construct() {
|
||||
|
||||
|
|
3
boot.php
3
boot.php
|
@ -2503,4 +2503,5 @@ function get_safemode() {
|
|||
$_SESSION['safemode'] = 1;
|
||||
}
|
||||
return intval($_SESSION['safemode']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue