Random question, but it seems like the flyte conso...
# flyte-support
b
Random question, but it seems like the flyte console has increased the frequency that it forces me to relogin, which is now happening multiple times a day, where it did it maybe once a day previously. Is this something that can be configured? (hosting in GCS, used
union-oss/deploy-flyte
to deploy it)
a
hey @big-notebook-82371 Are you using externalAuthServer? or just the selfAuth I'm wondering if the token is expiring
b
Its using OAuth through GCP. I think I’m using the OpenID Connect, but I created the app and the client id and secret and did it that way
a
I see that
Copy code
- refresh_token
is part of the `grant_types`for the
selfAuthServer
. It should enable the authentication server on flyteadmin to refresh the token without prompting the user
b
Looks like I do have that, under
flyte-cli
,
flytectl
, and
flytepropeller
. It also does open a web page every so often when I run a flytectl or pyflyte command, which would be nice if that happened in the background as well without the web page opening
Copy code
grant_types:
                - refresh_token
                - authorization_code
a
b
I see. So you’d recommend using the ClientSecret method? Would that solve the cli browser issue and the console re-login issue?
a
that would probably help for the CLI, but won't have an effect on the console
b
ok, do I want to remove refresh_token? or maybe remove authorization_code?
a
I don't think so. Also the
offline
scope helps with refreshing the token "silently"
b
gotcha. looks like I have this on each one
Copy code
scopes:
                - all
                - offline
                - access_token
👍🏽 1
I’ll see if it continues to refresh so often, it seems like I already had the settings ok, at least on the console side. I’ll try out the ClientSecret method
Its still refreshing often. Seems like I’m either missing some other setting, or I need to remove one of those
grant_types
or
scopes
, not sure
a
@big-notebook-82371 would you mind creating an Issue?
b
For sure
@average-finland-92144 sorry, which repo should I put that in, for the console refreshing issue?
flyteconsole
? Or just
flyte
for the deployment part?
a
it should be
flyte
1