-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(silentsignin): recover missing commit (#734)
- Loading branch information
1 parent
a6591de
commit e77191e
Showing
9 changed files
with
121 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/context/src/oidc/core/default-component/SilentCallback.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React, { useEffect, useState, PropsWithChildren} from 'react'; | ||
import Oidc from "../../vanilla/oidc"; | ||
import {OidcSecure} from "../../OidcSecure"; | ||
|
||
const CallBak = ({configurationName}) =>{ | ||
const getOidc = Oidc.get; | ||
useEffect(() => { | ||
let isMounted = true; | ||
const playCallbackAsync = async () => { | ||
const oidc = getOidc(configurationName); | ||
oidc.silentSigninCallbackFromIFrame(); | ||
}; | ||
playCallbackAsync(); | ||
return () => { | ||
isMounted = false; | ||
}; | ||
},[]); | ||
|
||
return <></>; | ||
} | ||
|
||
const CallbackManager: PropsWithChildren<any> = ({configurationName }) => { | ||
return <OidcSecure> | ||
<CallBak configurationName={configurationName}/> | ||
</OidcSecure>; | ||
}; | ||
|
||
export default CallbackManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters