Alexander Walther
09/27/2023, 12:32 PMFlyteRemote
like so
FlyteRemote(
config=Config(
platform=PlatformConfig(
endpoint="foobar",
client_id="bar",
client_credentials_secret="baz"
auth_mode="client_credentials",
),
),
)
where bar
and baz
are the credentials of the foobar
M2M application (we use auth0). in the flyte deployment, userAuth
in the configmap
looks like this
userAuth:
openId:
baseUrl: <authentication_server_url>
clientId: "bar2"
scopes:
- profile
- openid
using FlyteRemote
(e.g. calling fetch_task
) returns the following slightly opaque error:
ERROR:root:Status Code (401) received from IDP: {"error":"invalid_client","error_description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)."}
Failed with Exception Code: SYSTEM:Unknown
requesting a token from authentication_server_url
works fine so i'm not sure if something is misconfigured in flyte that's causing the error? any pointers or questions would be appreciated, thanks 🙂Yee