https://github.com/zextras/carbonio-user-management-sdk
Official SDK for Zextras Carbonio User Management service
https://github.com/zextras/carbonio-user-management-sdk
carbonio-component
Last synced: 5 months ago
JSON representation
Official SDK for Zextras Carbonio User Management service
- Host: GitHub
- URL: https://github.com/zextras/carbonio-user-management-sdk
- Owner: zextras
- License: agpl-3.0
- Created: 2022-03-23T11:40:58.000Z (over 4 years ago)
- Default Branch: devel
- Last Pushed: 2026-02-02T03:48:28.000Z (5 months ago)
- Last Synced: 2026-02-02T15:02:21.942Z (5 months ago)
- Topics: carbonio-component
- Language: Java
- Size: 76.2 KB
- Stars: 1
- Watchers: 15
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Carbonio User Management SDK 🚀
Official SDK for Zextras Carbonio User Management service
[![Contributors][contributors-badge]][contributors]
[![Activity][activity-badge]][activity]
[![License][license-badge]](COPYING)
[![Project][project-badge]][project]
[![Twitter][twitter-badge]][twitter]
## Dependency installation 🏁
```xml
com.zextras.carbonio.user-management
carbonio-user-management-sdk
${carbonio-user-management-sdk.version}
```
## Usage 📈
```java
package com.zextras.carbonio.usermanagement;
import com.zextras.carbonio.usermanagement.entities.UserId;
import com.zextras.carbonio.usermanagement.entities.UserInfo;
import java.util.Optional;
import java.util.UUID;
public class App {
public static void main(String[] args) throws Exception {
Optional userId = UserManagementClient
.atURL("http://127.78.0.1:20000")
.validateUserToken("fake-carbonio-user-token")
.map(Optional::of)
.getOrElseThrow(failure -> new Exception(failure));
String cookie = "ZM_AUTH_TOKEN=fake-carbonio-user-token";
Optional userInfoByUUID = UserManagementClient
.atURL("http", "127.78.0.1", 20000)
.getUserByUUID(cookie, UUID.fromString("fake-user-UUID"))
.map(Optional::of)
.getOrElseThrow(failure -> new Exception(failure));
Optional userInfoByEmail = UserManagementClient
.atURL("http://127.78.0.1:20000")
.getUserByEmail(cookie, "user@example.com")
.map(Optional::of)
.getOrElseThrow(failure -> new Exception(failure));
}
}
```
## License
Official SDK for Zextras Carbonio User Management service.
Released under the AGPL-3.0-only license as specified here: [COPYING](COPYING).
Copyright (C) 2022 Zextras
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
See [COPYING](COPYING) file for the project license details
See [THIRDPARTIES](THIRDPARTIES) file for other licenses details
### Copyright notice
All non-software material (such as, for example, names, images, logos, sounds) is owned by Zextras
s.r.l. and is licensed under [CC-BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/4.0/).
Where not specified, all source files owned by Zextras s.r.l. are licensed under AGPL-3.0-only
[contributors-badge]: https://img.shields.io/github/contributors/zextras/carbonio-user-management-sdk "Contributors"
[contributors]: https://github.com/zextras/carbonio-user-management-sdk/graphs/contributors "Contributors"
[activity-badge]: https://img.shields.io/github/commit-activity/m/zextras/carbonio-user-management-sdk "Activity"
[activity]: https://github.com/zextras/carbonio-user-management-sdk/pulse "Activity"
[license-badge]: https://img.shields.io/badge/license-AGPL-blue.svg
[project-badge]: https://img.shields.io/badge/project-carbonio-informational "Project Carbonio"
[project]: https://www.zextras.com/carbonio/ "Project Carbonio"
[twitter-badge]: https://img.shields.io/twitter/follow/zextras?style=social&logo=twitter "Follow on Twitter"
[twitter]: https://twitter.com/intent/follow?screen_name=zextras "Follow Zextras on Twitter"