I am trying to do external oauth in forge app
this is my project structure:
In server.js-> I am having all trigger related functions
Int Client ->App.js -> My react code which displays hello world
In manifest.yml
providers:
auth:
- key: custom-oauth
name: CustomOAuthProvider
type: oauth2
clientId: 8h75dZztMPONZfk2cMqcj5j7hTJEZJrRW1pdt86PfpM
clientSecret: kdB6L8NqhJ_8a_OQF32Qul3NdY9SHXys_0N9cd-wK6c
remotes:
- custom-oauth-remote
bearerMethod: authorization-header
actions:
authorization:
remote: custom-oauth-remote
path: /signup?provider=jira
exchange:
remote: custom-oauth-remote
path: /o/oauth/token
remotes:
- key: custom-oauth-remote
permissions:
scopes:
- read:jira-work
- write:jira-work
- manage:jira-configuration
external:
fetch:
backend:
what is the use the below function
function:
- key: main
handler: index.run
providers:
auth:
- custom-oauth
where i have to add them in my project structure either server.js or in App.js in client
why it is used for?
where i have to call them?
is my manifest.yml valid?
can anyone help me with this
Thanks in advance