Skip to content

Commit

Permalink
login test
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Oct 26, 2023
1 parent b0b8c36 commit 5864eba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { useEffect } from "react";

export const NotAuthenticatedOverride = () => {
useEffect(() => {
console.log("Redirecting");
window.location.replace("/");
// window.location.replace("/");
}, []);

return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export const AuthProvider = ({ children }: contextProps) => {
};
return (
<AuthenticationProvider
notAuthenticated={() => <NotAuthenticatedOverride />}
notAuthenticated={() => {
return <NotAuthenticatedOverride />;
}}
configuration={configuration}
history={history}
>
Expand Down
2 changes: 1 addition & 1 deletion src/parking-place/react-app/src/utils/configurations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const repositoryUrl = "https://sampleapps.test.sensenet.cloud";
export const configuration = {
client_id: "TdDZR9am6OVoYQgZ", // clientID of your repository
automaticSilentRenew: true,
redirect_uri: `${window.location.origin}/authentication/login_callback`,
redirect_uri: `${window.location.origin}/authentication/callback`,
response_type: "code",
post_logout_redirect_uri: `${window.location.origin}/`,
scope: "openid profile sensenet",
Expand Down

0 comments on commit 5864eba

Please sign in to comment.