odeac

odeac

Working with goth in Elixir?

I maintain this Elixir application that is using goth for OAuth with Google.

All that it does is to configure goth like this is runtime.exs:

config :goth, json: “/my/path/to/goth.json” |> File.read!()

and then gets the token like this:

Goth.Token.for_scope(...)

Can somebody explain how goth works?

First of all, how can I understand which library depends on goth?

Second, who starts the goth app, since there is no explicit call to its start?

Also, if I want to configure goth programmatically, how should I do it?

Thanks!

Most Liked

mayel

mayel

I know nothing about goth, but glancing at the changelog it seems you may be on an older version: Upgrading from Goth 1.2 — Goth v1.4.5

Last Post!

Hermanverschooten

Hermanverschooten

To find which lib depends on goth in your project you can use mix deps.tree.

goth is a mix project that has an application module defined in its mix.exs file, this gets started automatically, that’s why sometimes you have to add runtime: false to a dependency to not have it start automatically.

For how to configure goth programmatically, the newer version seems to document that on Hexdocs.

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New

Other popular topics Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

We're in Beta

About us Mission Statement