-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
app/src/features/User/UserAuth.tsx
Outdated
<Button onClick={handleLogout} className={classes.button}> | ||
<ExitToApp className={classes.icon} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to use the startIcon
and endIcon
props to add icons to Mui-Buttons
<Button onClick={handleLogout} className={classes.button}> | |
<ExitToApp className={classes.icon} /> | |
<Button | |
onClick={handleLogout} | |
className={classes.button} | |
startIcon={<ExitToApp className={classes.icon} />} | |
> | |
app/src/features/User/UserAuth.tsx
Outdated
<Button | ||
href={OIDC_LOGIN_URL} | ||
color="inherit" | ||
className={classes.button} | ||
> | ||
<Launch className={classes.icon} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
app/src/features/User/UserRoute.tsx
Outdated
if (isLoading) return <CircularProgress />; | ||
if (isAuthenticated) return <Route {...routeProps} />; | ||
|
||
return <Redirect to="/" />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not redirect to OIDC_LOGIN_URL
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget to update deployment with environment variables
have you tested deploying river-api on dev to make sure it doesn't break the current pyrog ?
django/river/settings/base.py
Outdated
@@ -206,7 +206,7 @@ | |||
# CorsHeaders | |||
# Used to access api from third-party domain | |||
|
|||
CORS_URLS_REGEX = r"^/api/.*$" | |||
# CORS_URLS_REGEX = r"^/api/.*$" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before cors policies were only applied on host/api but since the oidc routes are on host/oidc, it didn't worked
@vmttn should I remove this or let it commented ?
@@ -260,6 +260,7 @@ | |||
OIDC_STORE_ACCESS_TOKEN = True | |||
# Silently re-authenticated after following time: | |||
OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS = int(os.environ.get("OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS", 12 * 60 * 60)) | |||
OIDC_TOKEN_USE_BASIC_AUTH = os.environ.get("OIDC_TOKEN_USE_BASIC_AUTH", False) == "True" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hydra clients (i'm testing with local-cohort-client) we use have this property "token_endpoint_auth_method": "client_secret_basic",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment to remember why it's used
No description provided.