2 years ago
<@775678427511783434> <@539512869780455445> <@229706675936821249>
24 Replies
2 years ago
hey
2 years ago
oh, I don't know nothing about gcp auth mb
2 years ago
4aec7600-6fe7-4915-90be-b3ef03bff8dd
2 years ago
ty anyways for trying though
2 years ago
i don't have any examples at hand but what you can do is pass the auth credentials as a base64, decode that on your code and then use the credentials SDK
2 years ago
oh ok that actually shouldn't be tooooo hard. thanks thanks thanks!
2 years ago
you can get the service account by going to your GCP dashboard, let me get the path to it
2 years ago
IAM & Admin -> Service Accounts
2 years ago
@Creitin Gameplays it's in your account, my dude. so follow along to there & find the service account for your ....is imagen 3 in vertex?
2 years ago
pseudo-code:
import base64
import os
CREDENTIALS = json.decode(base64.decode(os.environ["GOOGLE_API_CREDS"]))
2 years ago
idfk how to encode it to base64 exactly, but i think you got it, @Creitin Gameplays, yeah? if you have a .json of your credentials, i have a website to just drop in to encode to base64 for ya, and that should be good. then we set a env var & drop in the output from that.
2 years ago
prolly this is out need: https://www.base64encode.net/file-to-base64
2 years ago
if you guys are on Linux, there's the base64 cli command available
2 years ago
thanks for the help, dude! i think we should be aces from here, but let's see. ✨
2 years ago
what in the spaghetti code is this
2 years ago
blame google APIs
2 years ago
xD
2 years ago
@ThallesComH yaaaaaaaaaaaaaaaay thanks!!!!

2 years ago
@Creitin Gameplays
2 years ago
!s
Status changed to Solved brody • over 1 year ago