DSD-DBS / capella-collab-manager

A web app for collaboration on Capella (MBSE) projects
https://dsd-dbs.github.io/capella-collab-manager/
Apache License 2.0
23 stars 5 forks source link

feat: Issue session token for usage with API #1710

Open MoritzWeber0 opened 2 months ago

MoritzWeber0 commented 2 months ago

Some sessions may want to automate tasks against the CCM API. A session token is issued as PAT and is valid for the duration of the session.

The session token should only have access to read-operations, not write-operations. Therefore, it's required to implement fine-grained tokens before this PR can be merged.

Resolves #1774.

github-actions[bot] commented 2 months ago

A Storybook preview is available for commit 8d3f4e2f19c477fa7133a222fc5a6724a6ba700e. View Storybook View Chromatic build

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 56.52174% with 10 lines in your changes missing coverage. Please review.

Project coverage is 83.85%. Comparing base (4906bab) to head (6528b9e). Report is 1 commits behind head on main.

Files Patch % Lines
...kend/capellacollab/sessions/hooks/session_token.py 47.36% 10 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1710 +/- ## ========================================== - Coverage 83.96% 83.85% -0.11% ========================================== Files 185 186 +1 Lines 6105 6126 +21 Branches 674 676 +2 ========================================== + Hits 5126 5137 +11 - Misses 831 841 +10 Partials 148 148 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.