Commit d365c45
authored
Expose token in Share objects (#427)
Some use cases require passing the token to external applications that
access NextCloud shares via WebDAV.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* File shares now include a read-only token property so users can access
share token information directly when working with shared files.
* **Tests**
* Test coverage expanded to assert that newly created shares provide a
non-empty token and that token values returned by share lookups match
the original creation token.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent c834931 commit d365c45
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
445 | 451 | | |
446 | 452 | | |
447 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments