ambitious-businessperson-90319
07/30/2024, 11:14 PMambitious-businessperson-90319
07/30/2024, 11:14 PM{
"json": {},
"level": "error",
"msg": "Failed to retrieve tokens from request, redirecting to login handler. Error: [EMPTY_OAUTH_TOKEN] Failure to retrieve cookie [flyte_idt], caused by: http: named cookie not present",
"ts": "2024-07-30T22:18:58Z"
}
If I go to the web ui I get a popup saying Authorization Required, if I click it's back to sign in button I get a 403 page with this url:
https://my-url.com/callback?error=invalid_request&error_description=Missing+parameter%3A+code_challenge_method&state=91c4dd04c1826b70b09456fc2591a442146e69dd1eb0d3207280ac12e9409a2b&iss=mykeycloak
I then see two more logs in flyteadmin:
{"json":{},"level":"error","msg":"Failed to retrieve tokens from request, redirecting to login handler. Error: [EMPTY_OAUTH_TOKEN] Failure to retrieve cookie [flyte_idt], caused by: http: named cookie not present","ts":"2024-07-30T22:19:45Z"}
{"json":{},"level":"error","msg":"Error when exchanging code oauth2: \"invalid_grant\" \"Code not valid\"","ts":"2024-07-30T22:19:45Z"}
ambitious-businessperson-90319
07/30/2024, 11:16 PMsecrets:
adminOauthClientCredentials:
enabled: true
clientSecret: "raw generated password"
clientId: flytepropeller
adminServer:
server:
security:
secure: false
useAuth: true
allowCors: true
allowedOrigins:
# Accepting all domains for Sandbox installation
- "*"
allowedHeaders:
- "Content-Type"
auth:
appAuth:
thirdPartyConfig:
flyteClient:
clientId: flytectl
redirectUri: <http://localhost:53593/callback>
scopes:
- offline
- all
selfAuthServer:
staticClients:
flyte-cli:
id: flyte-cli
redirect_uris:
- <http://localhost:53593/callback>
- <http://localhost:12345/callback>
grant_types:
- refresh_token
- authorization_code
response_types:
- code
- token
scopes:
- all
- offline
- access_token
public: true
flytectl:
id: flytectl
redirect_uris:
- <http://localhost:53593/callback>
- <http://localhost:12345/callback>
grant_types:
- refresh_token
- authorization_code
response_types:
- code
- token
scopes:
- all
- offline
- access_token
public: true
flytepropeller:
id: flytepropeller
client_secret: "bcrypt hash of raw password"
redirect_uris:
- <http://localhost:3846/callback>
grant_types:
- refresh_token
- client_credentials
response_types:
- token
scopes:
- all
- offline
- access_token
public: false
authorizedUris:
- <https://my-url.com>
- <http://flyteadmin:80>
- <http://flyteadmin.flyte.svc.cluster.local:80>
userAuth:
openId:
baseUrl: "oidcBaseUrl"
clientId: "oidcClientId"
scopes:
- profile
- openid
ambitious-businessperson-90319
07/30/2024, 11:17 PMk describe secret flyte-admin-secrets
Name: flyte-admin-secrets
Namespace: flyte
Labels: <http://app.kubernetes.io/managed-by=Helm|app.kubernetes.io/managed-by=Helm>
Annotations: <http://meta.helm.sh/release-name|meta.helm.sh/release-name>: flyte
<http://meta.helm.sh/release-namespace|meta.helm.sh/release-namespace>: flyte
Type: Opaque
Data
====
token_rsa_key.pem: 1679 bytes
claim_symmetric_key: 43 bytes
cookie_block_key: 43 bytes
cookie_hash_key: 86 bytes
oidc_client_secret: 32 bytes
freezing-airport-6809
average-finland-92144
07/31/2024, 4:54 PMambitious-businessperson-90319
07/31/2024, 6:14 PMaverage-finland-92144
07/31/2024, 6:16 PMAre there some config options to support it?That's what we'll need to find out, bc seems to be something missing from the client side
average-finland-92144
08/05/2024, 9:37 PMambitious-businessperson-90319
08/05/2024, 9:49 PMaverage-finland-92144
08/05/2024, 9:50 PM