MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

User

MMO.oauth · 1 symbole · générée le 27 Oct 2026

class

User

oauth.js:7
class MMO.oauth.User
Espace de noms
MMO.oauth

Index

constructor(config)
getScopes(uid)
getScopesCatalog(uid)What the scopes' editor needs: the scopes the application lists, the actions checked under them, the roles...
isAllowed(uid, def)
getConfig()
setConfig(path, value, quiet)Set user config
deleteConfig(path)
pushConfig(path, value)

Méthodes8

constructor(config)

oauth.js:12
constructor(config)
config

getScopes(uid)

oauth.js:22
getScopes(uid = null)
uid = null

getScopesCatalog(uid)

oauth.js:32

What the scopes' editor needs: the scopes the application lists, the actions checked under them, the roles...

getScopesCatalog(uid = null)(`AccessController::routeScopesCatalog`)
uid = null?stringthe role or the client edited, null for a new one
retournePromise<{data: Object>}

isAllowed(uid, def)

oauth.js:36
isAllowed(uid, def = false)
uid
def = false

setConfig(path, value, quiet)

oauth.js:71

Set user config

setConfig(path, value, quiet = false)
path
value
quiet = falseboolean- true for a value the user did not ask to save (where a tour was left): its failure, a session expired included, is the caller's to handle and shows no error window (MMO.fetchJSON shows one)
retournePromise
MMO.user.setConfig('guides/users', {status: 'done'}, true).catch(() => null)

pushConfig(path, value)

oauth.js:80
pushConfig(path, value)
path
value