hi everyone, i'm trying to connect to flyte with `...
# ask-the-community
a
hi everyone, i'm trying to connect to flyte with
FlyteRemote
like so
Copy code
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
Copy code
userAuth:
  openId:
    baseUrl: <authentication_server_url>
    clientId: "bar2"
    scopes:
    - profile
    - openid
using
FlyteRemote
(e.g. calling
fetch_task
) returns the following slightly opaque error:
Copy code
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 🙂
is this helpful at all?