Jan Fiedler
11/06/2023, 10:10 AMStatus Code (400) received from IDP: {"error":"invalid_scope","error_description":"The requested scope is invalid, unknown, or malformed. The OAuth 2.0 Client is not allowed to request scope 'offline,all'."}
Did anyone got this working already? configs can be found in this threadfrom flytekit import task, workflow
from flytekit.experimental import eager
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config, PlatformConfig
@task
def add_one(x: int) -> int:
return x + 1
@task
def double(x: int) -> int:
return x * 2
@eager(
remote=FlyteRemote(
config=Config.auto(config_file="config.yaml")
),
client_secret_group="test",
client_secret_key="test",
)
async def wf(x: int) -> int:
out = await add_one(x=x)
if out < 0:
return -1
return await double(x=out)
admin:
endpoint: dns:///my_endpoint
authType: ClientSecret
clientId: my_new_client
scopes:
- offline
- all
selfAuthServer:
staticClients:
...
my_new_client:
id: my_new_client
client_secret: client_secret
redirect_uris:
- "<http://localhost:3846/callback>"
grant_types:
- refresh_token
- client_credentials
response_types:
- token
scopes:
- all
- offline
- access_token
David Espejo (he/him)
11/22/2023, 3:35 PMJan Fiedler
11/22/2023, 3:38 PM