This topic was automatically generated from Slack. You can find the original thread here.
I like how Pipedream is able to manage our credentials for us by providing us with a login prop that often redirects to Oauth login pages and fetches the credentials for us, and then securely saves them in Pipedream. There are some apps that do not have Pipedream integrations yet, but I would still like to log on to them in the same manner. Is this possible? Please guide me if so.
To integrate with apps that do not have pre-built Pipedream integrations, you can still use OAuth for authentication, but you’ll need to set up the OAuth flow manually. Here’s a high-level overview of the steps you would typically follow: 1. Register your application with the provider: Go to the app’s developer console and register your application. You’ll receive a client ID and client secret, which you’ll use in the OAuth flow. 2. Configure OAuth in Pipedream: In Pipedream, you can create an app and configure the OAuth parameters. Go to the Pipedream Accounts page, click on the “New App” button, and fill in the OAuth details provided by the app you’re integrating with. 3. Implement the OAuth flow: You’ll need to implement the OAuth flow in a Pipedream workflow. This typically involves: - Redirecting users to the app’s authorization URL. - Handling the OAuth callback to receive an authorization code. - Exchanging the authorization code for an access token. 4. Use the access token: Once you have the access token, you can use it to authenticate API requests to the app. Here’s an example of how you might set up a custom OAuth flow in a Pipedream workflow: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { // Define your OAuth app details here oauth_app: { type: "app", app: "custom_oauth_app", }, }, async run({ steps, $ }) { // Use the access token to make an authenticated API request const response = await axios($, { method: "GET", url: "https://api.example.com/data", headers: { Authorization: `Bearer ${this.oauth_app.$auth.oauth_access_token}`, }, }); return response; }, }); Remember to replace "https://api.example.com/data" with the actual API endpoint you’re trying to access and "custom_oauth_app" with the name you gave your app when you set it up in Pipedream. Please note that the exact details of the OAuth flow can vary depending on the app you’re integrating with. You’ll need to refer to the app’s OAuth documentation for specific instructions. If you need further assistance or have any specific questions about the OAuth process
thanks, i do know that. But I’m just trying to leverage the open source repo to build my own login prop for any app if i can. Is that even possible? Please guide
We have a step where we have to provide with credentials for an email. Those credentials should not be a part of code. Since that application is not natively integrated with pipedream. Is there a way, we can hide those credential in accounts like we can do for apps that are available in pipedream ?
@U065TDUC4G2 the authentication logic for our integrated apps isn’t part of our public repo — that code is all internal currently, but we’re happy to take a look at any request you submit.