forked from unimatrix/web
Install independent osCommerce portal with central account linking
This commit is contained in:
parent
34f3c4ae7e
commit
7ab013bd53
1 changed files with 266 additions and 6 deletions
|
|
@ -8,7 +8,7 @@ import {accessFor} from './permissions.mjs';
|
|||
const hash=s=>createHash('sha256').update(s).digest('hex');
|
||||
const json=(body,status=200)=>Response.json(body,{status,headers:{'Cache-Control':'no-store'}});
|
||||
export function createIntegrationSSO(db,settings={}){
|
||||
const clients={git:'https://www.dunerealms.com/git/sso/callback',mybb:'https://forums.dunerealms.com/dune-sso.php',osticket:'https://support.dunerealms.com/dune-sso.php',shop:'https://cp.dunerealms.com/store/dune-login'};
|
||||
const clients={git:'https://www.dunerealms.com/git/sso/callback',mybb:'https://forums.dunerealms.com/dune-sso.php',osticket:'https://support.dunerealms.com/dune-sso.php',shop:'https://cp.dunerealms.com/store/dune-login',oscommerce:'https://shop.dunerealms.com/dune-login.php'};
|
||||
return async request=>{
|
||||
const url=new URL(request.url),client=url.searchParams.get('client');
|
||||
if(url.pathname==='/sso/authorize'){
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff