-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add matrix-auth integration (#565)
* feat: add matrix-auth observer --------- Co-authored-by: Yanks Yoon <[email protected]>
- Loading branch information
Showing
17 changed files
with
477 additions
and
16 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
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
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,92 @@ | ||
<!-- markdownlint-disable --> | ||
|
||
<a href="../src/matrix_auth_observer.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
# <kbd>module</kbd> `matrix_auth_observer.py` | ||
The Matrix Auth relation observer. | ||
|
||
|
||
|
||
--- | ||
|
||
## <kbd>class</kbd> `MatrixAuthObserver` | ||
The Matrix Auth relation observer. | ||
|
||
<a href="../src/matrix_auth_observer.py#L28"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
### <kbd>function</kbd> `__init__` | ||
|
||
```python | ||
__init__(charm: CharmBaseWithState) | ||
``` | ||
|
||
Initialize the observer and register event handlers. | ||
|
||
|
||
|
||
**Args:** | ||
|
||
- <b>`charm`</b>: The parent charm to attach the observer to. | ||
|
||
|
||
--- | ||
|
||
#### <kbd>property</kbd> model | ||
|
||
Shortcut for more simple access the model. | ||
|
||
|
||
|
||
--- | ||
|
||
<a href="../src/matrix_auth_observer.py#L45"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
### <kbd>function</kbd> `get_charm` | ||
|
||
```python | ||
get_charm() → CharmBaseWithState | ||
``` | ||
|
||
Return the current charm. | ||
|
||
|
||
|
||
**Returns:** | ||
The current charm | ||
|
||
--- | ||
|
||
<a href="../src/matrix_auth_observer.py#L67"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
### <kbd>function</kbd> `get_requirer_registration_secrets` | ||
|
||
```python | ||
get_requirer_registration_secrets() → Optional[List] | ||
``` | ||
|
||
Get requirers registration secrets (application services). | ||
|
||
|
||
|
||
**Returns:** | ||
dict with filepath and content for creating the secret files. | ||
|
||
--- | ||
|
||
<a href="../src/matrix_auth_observer.py#L53"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
### <kbd>function</kbd> `update_matrix_auth_integration` | ||
|
||
```python | ||
update_matrix_auth_integration(charm_state: CharmState) → None | ||
``` | ||
|
||
Update matrix auth integration relation data. | ||
|
||
|
||
|
||
**Args:** | ||
|
||
- <b>`charm_state`</b>: The charm state. | ||
|
||
|
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
Oops, something went wrong.