Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1404 → Rev 1405

/trunk/TODO
69,7 → 69,6
- a possibility to move objects/nodes from one hierarchy level to another (for now, I have to reconstruct them)
- 2FA TOTP support (+backup codes) - good for public instances, like FreeOID (Yes, I'm that one person who always asks for true totp 2FA everywhere xD )
- a setting for a permanent choice between 'Always switch to newly created object' / 'Never switch' / 'Ask user if they want to switch'
- a possibility to export&transfer all data between OIDplus'es: Attention: Do not use this XML Export/Import to exchange, backup or restore data between OIDplus systems!
- a possibility to 'construct' my own object types in UI (1: specify list of their fields and 2: choose "oid-like/forward" com.example.api or "domain-like/reverse" api.example.com naming scheme), so they would appear as the whole new type
 
Recently added TODO entries:
87,7 → 86,6
* Own color settings
* Newly created OIDs: Always open, Never open, Ask (default)
But what do we do if multiple users are logged in??
- "Download Complete Backup" plugin (contains a full SQL backup for all DBMS, as well as everything inside "userdata" and "userdata_pub")
- if a third-party plugin throws an exception in the init() method, maybe OIDplus should avoid loading the plugin?
- "hidden" alt ids which are not shown in the GUI, but can be used for reverse-Alt-ID ? (I believe we have excluded some AltIDs which are "not neccessary", e.g. an GUID already is a GUID and therefore does not need a Namespace GUID, or something like that)
 
294,7 → 292,8
- At "oidplus:system_log", user log section and object log section, the users and/or objects should be clickable
 
IDEAS
- Database plugin (adminPage 401): Use an INTF_OID_ interface let other plugins backup/restore their own data/tables, too.
- Backup plugin (adminPage 401): Use an INTF_OID_ interface let other plugins backup/restore their own data/tables, too.
- Backup plugin (adminPage 401): In addition to the already existing database backup, also let the user choose to download a ZIP containing userdata and userdata_pub
- admin plugin that shows the recent oid edits / inserts?
- in the search feature, search for object creation/update date?
- adminPages/800_plugins: We could also list plugins that have been blacklisted in the config? But that is hard to achieve, because these plugins are ignored and not loaded at all
/trunk/doc/developer_notes/auth_methods.md
8,6 → 8,6
-----------------------------------------------------------------------------------------------------------------------------------
Browser login JWT 40 Optional COOKIE No (Silent) No
Automated AJAX call JWT 10 No GET/POST Yes Only ajax.php with GET/POST
REST plugin JWT 10 No HTTP Bearer Yes Yes
REST plugin JWT 20 No HTTP Bearer Yes Yes
Manually created JWT token JWT 80 Optional GET/POST/COOKIE Only via GET/POST Only ajax.php with GET/POST
-----------------------------------------------------------------------------------------------------------------------------------
/trunk/doc/developer_notes/feature_oids.md
23,7 → 23,7
The OIDplus autoloader will make sure that interfaces following this naming convention
are replaced with an empty "fake" interface if the plugin defining the interface is not installed.
Therefore, the interface is "optional" and there won't be a fatal error if a plugin implements (references)
a feature that is not known.
a feature that is unknown.
 
Previously, the plugin-to-plugin-communication used a function called implementsFeature(), which
has been discontinued as of 26 March 2023, because types could not be easily checked.
30,7 → 30,8
 
### Usage example (new method):
 
// Implement feature in a class:
Implement feature in a class:
 
class OIDplusPageAdminNostalgia
extends OIDplusPagePluginAdmin
implements INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_8 /* getNotifications */
41,7 → 42,8
}
}
 
// Call all plugins supporting the feature:
Call all plugins supporting the feature:
 
foreach (OIDplus::getAllPlugins() as $plugin) {
if ($plugin instanceof INTF_OID_1_3_6_1_4_1_37476_2_5_2_3_8) {
$plugin->getNotifications(...);
50,12 → 52,13
 
### Old method (deprecated as of 26 March 2023):
 
// Implement feature in a class:
Implement feature in a class:
 
class OIDplusPageAdminNostalgia
extends OIDplusPagePluginAdmin
{
public function implementsFeature(string $oid): bool {
if ($oid == '1.3.6.1.4.1.37476.2.5.2.3.8') return true;
if ($oid == '1.3.6.1.4.1.37476.2.5.2.3.8') return true; /*getNotifications*/
return false;
}
public function getNotifications(...) {
64,7 → 67,8
}
}
 
// Call all plugins supporting the feature:
Call all plugins supporting the feature:
 
foreach (OIDplus::getAllPlugins() as $plugin) {
if ($plugin->implementsFeature('1.3.6.1.4.1.37476.2.5.2.3.8')) {
$plugin->getNotifications(...);
/trunk/doc/install_facebook_oauth2.md
2,7 → 2,7
How to setup Facebook Authentication
====================================
 
(1) https://developers.facebook.com/ , register as developer
(1) Go to https://developers.facebook.com/ and register as developer
 
(2) Create a new project
 
/trunk/doc/install_google_oauth2.md
22,7 → 22,8
- Name: OIDplus 2.0
- Authorized JavaScript origins: None
- Authorized redirect URIs:
Add https://<Your OIDplus URL>/plugins/viathinksoft/publicPages/810_login_google/oauth.php
Add `https://<Your OIDplus URL>/plugins/viathinksoft/publicPages/810_login_google/oauth.php`
If your system has multiple URIs, add all possible URIs
 
You will now receive a client ID and a client key (secret!)