Skip to content

Commit

Permalink
Merge pull request #111 from SamTV12345/fix/basic-auth-login
Browse files Browse the repository at this point in the history
Fixed basic auth
  • Loading branch information
SamTV12345 authored May 7, 2023
2 parents 725a9a5 + e25a25c commit 4db6314
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions ui/src/components/LoginComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const LoginComponent = () => {
sessionStorage.setItem("auth", basicAuthString)
}
dispatch(setLoginData(data))
axios.defaults.headers.common['Authorization'] = 'Basic ' + btoa(basicAuthString);
navigate('/')
})
.catch((e: AxiosError) => {
Expand Down
1 change: 0 additions & 1 deletion ui/src/components/OIDCRefresher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const OIDCRefresher:FC<PropsWithChildren> = ({children})=>{
const refreshInterval = 1000*60

useOnMount(()=>{
console.log("Installing refresher")
const interval = setInterval(()=> {
if (auth.user &&auth.user.expires_in&& auth.user.expires_in<70){
auth.signinSilent()
Expand Down

0 comments on commit 4db6314

Please sign in to comment.