https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Andrew

01/30/2024, 3:35 PM
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)
d

David Espejo (he/him)

01/30/2024, 4:51 PM
hey @Andrew Are you using externalAuthServer? or just the selfAuth I'm wondering if the token is expiring
a

Andrew

01/30/2024, 4:54 PM
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
d

David Espejo (he/him)

01/30/2024, 5:02 PM
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
a

Andrew

01/30/2024, 5:32 PM
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
d

David Espejo (he/him)

01/30/2024, 5:35 PM
a

Andrew

01/30/2024, 5:39 PM
I see. So you’d recommend using the ClientSecret method? Would that solve the cli browser issue and the console re-login issue?
d

David Espejo (he/him)

01/30/2024, 5:40 PM
that would probably help for the CLI, but won't have an effect on the console
a

Andrew

01/30/2024, 5:42 PM
ok, do I want to remove refresh_token? or maybe remove authorization_code?
d

David Espejo (he/him)

01/30/2024, 5:43 PM
I don't think so. Also the
offline
scope helps with refreshing the token "silently"
a

Andrew

01/30/2024, 5:45 PM
gotcha. looks like I have this on each one
Copy code
scopes:
                - all
                - offline
                - access_token
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
d

David Espejo (he/him)

01/31/2024, 6:12 PM
@Andrew would you mind creating an Issue?
a

Andrew

01/31/2024, 10:14 PM
For sure
@David Espejo (he/him) sorry, which repo should I put that in, for the console refreshing issue?
flyteconsole
? Or just
flyte
for the deployment part?
d

David Espejo (he/him)

02/01/2024, 4:06 PM
it should be
flyte