GCP Auth Assistance for newbz

<@775678427511783434> <@539512869780455445> <@229706675936821249>

Solved

24 Replies

passos
MODERATOR

a year ago

hey


medim
MODERATOR

a year ago

oh, I don't know nothing about gcp auth mb


4aec7600-6fe7-4915-90be-b3ef03bff8dd


ty anyways for trying though


passos
MODERATOR

a year 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


oh ok that actually shouldn't be tooooo hard. thanks thanks thanks!


passos
MODERATOR

a year ago

you can get the service account by going to your GCP dashboard, let me get the path to it


passos
MODERATOR

a year ago

IAM & Admin -> Service Accounts


@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?


creitingameplays123
TRIAL

a year ago

yes


creitingameplays123
TRIAL

a year ago

just found


passos
MODERATOR

a year ago

pseudo-code:

import base64
import os

CREDENTIALS = json.decode(base64.decode(os.environ["GOOGLE_API_CREDS"]))

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.



passos
MODERATOR

a year ago

if you guys are on Linux, there's the base64 cli command available


thanks for the help, dude! i think we should be aces from here, but let's see. ✨


medim
MODERATOR

a year ago

what in the spaghetti code is this


passos
MODERATOR

a year ago

blame google APIs



@ThallesComH yaaaaaaaaaaaaaaaay thanks!!!!

1348703656442069000


@Creitin Gameplays


creitingameplays123
TRIAL

a year ago

it worked!!!!!!!1


creitingameplays123
TRIAL

a year ago

@ThallesComHthanks fella brasileiro


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 11 months ago


Loading...