Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1404 → Rev 1405

/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!)