Skip to content

Commit

Permalink
Merge pull request #6 from CinCoders/feature/issue-05
Browse files Browse the repository at this point in the history
Fix: fix redirect URI of auth to actual page
  • Loading branch information
dcruzb authored Oct 30, 2023
2 parents 0d97821 + 2719ffd commit 7f9dec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Professor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function ProfessorInfo() {
return response;
}
getProfessorName();
}, [professor]);
}, [professor.id]);

const handleChange = (event: SyntheticEvent, newValue: number) => {
setValue(newValue);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const keycloakConfig = JSON.parse(process.env.REACT_APP_KEYCLOAK_JSON ??
export const authProviderProps: AuthProviderProps = {
authority: `${keycloakConfig['auth-server-url']}/realms/${keycloakConfig.realm}`,
client_id: keycloakConfig.resource,
redirect_uri: window.location.origin + process.env.PUBLIC_URL,
redirect_uri: `${window.location.origin}${window.location.pathname}`,
post_logout_redirect_uri: window.location.origin + process.env.PUBLIC_URL,
accessTokenExpiringNotificationTimeInSeconds: 30,
client_authentication: 'client_secret_post',
Expand Down

0 comments on commit 7f9dec4

Please sign in to comment.