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
Last Post!
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.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









