Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW] Enable authenticated endpoints #523

Merged
merged 2 commits into from
Jun 23, 2022
Merged

Conversation

d-gubert
Copy link
Member

@d-gubert d-gubert commented Jun 20, 2022

What? ⛵

Adds properties to IApiEndpoint that allows apps to request an endpoint only be accessed by a request authenticated by Rocket.Chat

Why? 🤔

Authentication here provides some kind of trust to the app the it is a user of the current workspace who is trying to access the resource

Links 🌎

PS 👀

PR on Rocket.Chat side RocketChat/Rocket.Chat#25937

@d-gubert d-gubert merged commit 9c87dd7 into alpha Jun 23, 2022
@d-gubert d-gubert deleted the new/authenticated-apis branch June 23, 2022 20:32
kodiakhq bot pushed a commit to RocketChat/Rocket.Chat that referenced this pull request Jun 28, 2022
<!-- This is a pull request template, you do not need to uncomment or remove the comments, they won't show up in the PR text. -->

<!-- Your Pull Request name should start with one of the following tags
  [NEW] For new features
  [IMPROVE] For an improvement (performance or little improvements) in existing features
  [FIX] For bug fixes that affect the end-user
  [BREAK] For pull requests including breaking changes
  Chore: For small tasks
  Doc: For documentation
-->

<!-- Checklist!!! If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code. 
  - I have read the Contributing Guide - https://github.com/RocketChat/Rocket.Chat/blob/develop/.github/CONTRIBUTING.md#contributing-to-rocketchat doc
  - I have signed the CLA - https://cla-assistant.io/RocketChat/Rocket.Chat
  - Lint and unit tests pass locally with my changes
  - I have added tests that prove my fix is effective or that my feature works (if applicable)
  - I have added necessary documentation (if applicable)
  - Any dependent changes have been merged and published in downstream modules
-->

## Proposed changes (including videos or screenshots)
<!-- CHANGELOG -->
<!--
  Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
  If it fixes a bug or resolves a feature request, be sure to link to that issue below.
  This description will appear in the release notes if we accept the contribution.
-->
Adds adaptations that allow apps to declare an API endpoint that requires authorization from Rocket.Chat prior to executing
<!-- END CHANGELOG -->

## Issue(s)
<!-- Link the issues being closed by or related to this PR. For example, you can use #594 if this PR closes issue number 594 -->

## Steps to test or reproduce
<!-- Mention how you would reproduce the bug if not mentioned on the issue page already. Also mention which screens are going to have the changes if applicable -->

## Further comments
<!-- If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... -->
PR on Apps-Engine side RocketChat/Rocket.Chat.Apps-engine#523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants