As an admin, I would like to be able to setup a Self-Service Action which will call a REST API endpoint with the user token required by the API for authentication and authorization purpose (contrary to machine-to-machine token that can be implemented now).
For me as admin, I can set up the backend simply based on a few inputs: I tell to Port that i will call an OAuth2 endpoint, so I need to tell which authentication service I need to use. For that, previously, I set up the service in the admin (with credentials like the client_id, client_secret, ...).
On the user part, using this action will request an authentication workflow for the user to login to the targeted service (here github for the example) then Port will use the user token to call the Rest API endpoint.
The response (error or success) of the API can be logged in the Self Service Action report.