forked from nextcloud/user_oidc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #13 Central customization setup V31
- Loading branch information
Showing
5 changed files
with
146 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# MagentaCLOUD user_oidc | ||
|
||
Customisation of the Nextcloud delivered OpenID connect app for MagentaCLOUD. | ||
|
||
The app extends the standard `user_oidc` Nextcloud app, | ||
see [upstream configuration hints for basic setup](https://github.com/nextcloud/user_oidc/blob/main/README.md) | ||
|
||
|
||
## Feature: Event-based provisioning (upstream contribution candidate) | ||
The mechanism allows to implement custom puser provisioning logic in a separate Nextcloud app by | ||
registering and handling a attribute change and provisioning event: | ||
|
||
``` | ||
use OCP\AppFramework\App; | ||
use OCP\AppFramework\Bootstrap\IBootContext; | ||
use OCP\AppFramework\Bootstrap\IBootstrap; | ||
use OCP\AppFramework\Bootstrap\IRegistrationContext; | ||
class Application extends App implements IBootstrap { | ||
... | ||
public function register(IRegistrationContext $context): void { | ||
$context->registerEventListener(AttributeMappedEvent::class, MyUserAttributeListener::class); | ||
$context->registerEventListener(UserAccountChangeEvent::class, MyUserAccountChangeListener::class); | ||
} | ||
... | ||
} | ||
``` | ||
The provisioning handler should return a `OCA\UserOIDC\Event\UserAccountChangeResult` object | ||
|
||
## Feature: Telekom-specific bearer token | ||
|
||
Due to historic reason, Telekom bearer tokens have a close to standard structure, but | ||
require special security implementation in detail. The customisation overrides te standard | ||
|
||
|
||
### Requiring web-token libraries | ||
The central configuration branch `nmc/2372-central-setup` automatic merge will frequently fail if composer | ||
upstream | ||
|
||
The fast and easy way to bring it back to sync with upstream is: | ||
``` | ||
git checkout nmc/2372-central-setup | ||
git rebase --onto main nmc/2372-central-setup | ||
# manually take over everything from upstream for composer.lock (TODO: automate that) | ||
# ALWAYS update web-token dependencies in composer.lock | ||
# to avoid upstream conflicts. The lock file diff should only contain adds to upstream state! | ||
composer update "web-token/jwt-*" | ||
``` | ||
|
||
|
||
### Configuring an additional Bearer preshared secret with provider | ||
TODO | ||
|
||
### Testing Bearer secrets | ||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Although this Nextcloud app code is free and available under the AGPL3 license, Deutsche Telekom | ||
(including T-Systems) fully reserves all rights to the Telekom brand. To prevent users from getting confused about | ||
the source of a digital product or experience, there are stringent restrictions on using the Telekom brand and design, | ||
even when built into code that we provide. For any customization other than explicitly for Telekom or T-Systems, you must | ||
replace the Deutsche Telekom and T-Systems brand elements contained in the provided sources. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters