PipedreamHQ / PipedreamHQ/pipedream

[BUG] Submit an app form doesn't let capture session auth configs smoothly

Open
#7,166 0 comments 0 reactions 0 assignees View on GitHub
bug tracked internally triaged
Dominant language
JavaScript
Stars
11.7k
Forks
5.8k
Avg merge
3d 10h
Merged PRs (30d)
102

Description

**Describe the bug**
When you want to submit an app having Session Auth as authentication method, you have to use the layout for OAuth. While the requests displayed in OAuth authentication method are enough to handle Session Auth, it is necessary to tweak the different requests configs, in order to make the Session Auth flow using the layout for OAuth.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to the 'submit an app form' https://pipedream.com/submit-an-app
2. Fill 'Basic Info' tab, then hit 'Save'
4. Go to 'Authentication Strategy' tab
5. For 'Select an auth type', select 'OAuth', then hit 'Save'
6. Setup 'Request Token request'
7. Setup 'Test request',, then hit 'Save'
8. Hit the 'test' button
9. log pop up show 'no host component for URI'
**Expected behavior**
the test request is executed properly. the submit an app form is able to detect that OAuth ID/Secret were set to "DO NOT USE" and recognize no setup (ie. URIs) are necessary under Authorization/Access Token/Refresh token requests
the token from 'Request Token request' should be propagated via custom, oauth, or any other variable bag and be available in 'test request' to reuse

or

create a new authentication method for Session Auth

**Screenshots**
If you setup 'Request Token request' and 'test request', which appears to be enough for a Session Auth based application, you get an error 'no host component for URI' , here is the setup:
![image](https://github.com/PipedreamHQ/pipedream/assets/101526248/ddd57538-7bb9-4a98-b747-52953766b861)

here is the error, down in the bottom
![image](https://github.com/PipedreamHQ/pipedream/assets/101526248/e68d0871-8f06-4025-953b-446937e62f50)

**Additional context**
this is a recurring issue when tackling session auth apps in the submit an app store project.

for an example of the workarounds, see the following setup, where 'Request Token request', 'Access Token request', and 'Test request' are setup, and values from "token" are extracted from 'Request Token request' and propagated to 'Test request' via extractin a custom field "access_token" of 'Access Token request' as a middle man.

setup part 1) oauth client setup and request token request
![image](https://github.com/PipedreamHQ/pipedream/assets/101526248/099423e1-f982-4637-92ac-a61b3fb6791d)

setup part 2) access token request and test request
![image](https://github.com/PipedreamHQ/pipedream/assets/101526248/17a0a4cb-81cf-4ca1-bb50-8742cc853721)

the "access token request" shouldn't be necessary to setup for a Session Auth app

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.