xgeek116

xgeek116

Goth.Token change for_scope function

Hello,

I saw that the function Goth.Token.for_scope is deprecated, can you please help me with the equivalent config for the function Goth.Token.fetch(config), my current config is :

Goth.Token.for_scope("https://www.googleapis.com/auth/cloudkms")

Many thanks

First Post!

xgeek116

xgeek116

Hello, any experiences with Goth ?

Last Post!

felix-starman

felix-starman

You can take a look at this issue and my accompanying PR. I need to finish it to support backwards compatibility.

Hopefully the library isn’t supervising its own Goth process, as in my experience that’s a little more difficult to unwind without breaking things

If you’re running on Google Cloud I’ve found the only thing that doesn’t support the metadata generated server token is obviously signing urls for cloud storage, since it’s not a private key, just a token.

But if you’re already using a service account JSON it should be just swapping the calls, configuring the library to take a name, and starting your MyApp.Goth before any process that will depend on it.

https://github.com/codedge-llc/pigeon/issues/232

https://github.com/codedge-llc/pigeon/pull/235

Where Next?

Popular in Questions Top

Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
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
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
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
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement