Live data from Hacker News

Elixir Livebook is a secret weapon for documentation

fly.io

71–72 of 72 posts

Re: Elixir Livebook is a secret weapon for documentation

#71

Earlier quoted context omitted.

I slightly complain a single time for the last few years, and jose directly chimes in with kind words immediately. You rock, honestly! But on the topic: I think its a simple problem ultimately, the SF Api ( https://developer.salesforce.com/docs/atlas.en-us.api_rest.m... ) needs OAuth, which needs a redirect at some point, where I have no idea how to capture it from a livebook instance (easy in a phx app). This is a r…

I wonder if we could proxy OAuth flows to notebooks. For example, a notebook could initiate an OAuth2 flow, Livebook handles it, and once it gets back, we notify the notebook which may approve or deny the request. The biggest concern though is that we need to have a static callback URL, so you would need to run Livebook internally at a fixed address? If this is something you would like to work on, please reach out, I…

currently starting to run stuff on fly.io, so the notebooks are public (albeit password protected) - should work this way!

Re: Elixir Livebook is a secret weapon for documentation

#72

Earlier quoted context omitted.

I slightly complain a single time for the last few years, and jose directly chimes in with kind words immediately. You rock, honestly! But on the topic: I think its a simple problem ultimately, the SF Api ( https://developer.salesforce.com/docs/atlas.en-us.api_rest.m... ) needs OAuth, which needs a redirect at some point, where I have no idea how to capture it from a livebook instance (easy in a phx app). This is a r…

I wonder if we could proxy OAuth flows to notebooks. For example, a notebook could initiate an OAuth2 flow, Livebook handles it, and once it gets back, we notify the notebook which may approve or deny the request. The biggest concern though is that we need to have a static callback URL, so you would need to run Livebook internally at a fixed address? If this is something you would like to work on, please reach out, I…

update: this specific issue is something I could work around differently: defining a user that has its own credentials within SF who can be used in the auth flow did the trick without any redirect needs!

See: https://gist.github.com/Anonyfox/3f36c26fb00a9bc4067d6dc9c9a...

I sound totally dumb now to bitch about it, but glad I could solve it in like 1 hour in a sufficient way

Post reply on HN