PromucFlow_constructor/app/client/src/api
Nilesh Sarupriya 53f355a830
chore: change saas authentication to context based (#31064)
## Description
> Add context based authentication instead of being bounded by page.

#### PR fixes following issue(s)
Fixes # (issue number)
> if no issue exists, please create an issue and ask the maintainers
about this first
>
>
#### Media
> N/A

#### Type of change
- Chore (housekeeping or task changes that don't impact user perception)

## Testing
>
#### How Has This Been Tested?
- [x] Manual

#### Test Plan
> N/A

#### Issues raised during DP testing
> N/A

## Checklist:
#### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Enhanced request handling for Appsmith tokens with additional
parameters for broader context.
    - Streamlined integration processes with new data transfer objects.
- **Refactor**
- Consolidated integration functionalities for improved code
reusability.
    - Optimized authentication process with updated method signatures.
- **Documentation**
- Updates in user and developer interactions with the API, focusing on
token requests and integrations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Nilesh Sarupriya <20905988+nsarupr@users.noreply.github.com>
Co-authored-by: Ayush Pahwa <ayushpahwa96@gmail.com>
2024-03-07 15:36:31 +05:30
..
ActionAPI.tsx feat: workflow queries/actions rename code split (#31300) 2024-03-05 10:28:34 +05:30
Api.ts chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
ApiResponses.tsx chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
AppThemingApi.tsx chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
CloudServicesApi.ts feat: Support OAuth for all plugin types (#9657) 2022-01-14 12:01:54 +05:30
ConsolidatedPageLoadApi.tsx feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
DatasourcesApi.ts chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
GitSyncAPI.tsx chore: remove git release feature flags (#30962) 2024-02-09 10:22:47 +05:30
ImportApi.ts chore: refactor curl import API to support context type (#30934) 2024-02-14 12:18:30 +05:30
LibraryAPI.tsx chore: remove xml parser v3 as a default library (#28012) 2023-10-20 11:08:47 +05:30
OAuthApi.ts chore: change saas authentication to context based (#31064) 2024-03-07 15:36:31 +05:30
PageApi.tsx feat: Frontend changes for consolidated-api with EE test case support (#30506) 2024-01-24 12:14:16 +05:30
PluginApi.ts feat: Add knowledge retrieval in Appsmith AI (#30725) 2024-02-05 17:15:45 +05:30
ReleasesAPI.tsx chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
SaasApi.ts chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
SearchApi.tsx feat: Homepage experience v2 changes (#29282) 2024-01-25 19:11:48 +05:30
TemplatesApi.ts chore: template upload process revamping (#29626) 2023-12-15 17:31:25 +05:30
WidgetConfigsApi.tsx chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00
WidgetSidebarApi.tsx chore:add eslint rules (#27878) 2023-10-09 16:54:06 +03:00