-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Setting initial access token #984
Comments
Hi @dragomir-parvanov-riskmethods , thank you very much for your issue and sorry for the delay. I need more technical detail to understand your flow. |
For retrieving specific session we generally do not share any tokens. For exemple if we include a widget inside a wesite. We use silent login or of full login to retrieve tokens inside the widget included in a website. This is better for security reason and in general tokens does not require same scopes and domains. |
Hi, thanks for the response
|
we managet to create PoC on "@axa-fr/react-oidc-context": "^3.1.7" with setting sessionStorage before "@axa-fr/react-oidc-context" loads, but it is kinda messing with the internals and in version 6.x, the sessionStorage is different |
Hi @dragomir-parvanov-riskmethods , very sorry for the delay. |
Hello, just to chime in now that I'm responsible for updating this package to the newest version, or at least getting it to build with a newer TypeScript version (5.3.3). We're using the following functions directly, and not having them exported from the index file causes TypeScript to attempt to type check them, causing our build to fail: import { initSession } from '@axa-fr/oidc-client/src/initSession';
import { setTokens as setOidcTokens } from '@axa-fr/oidc-client/src/parseTokens'; We use NX and Next.js in our project, attempting to build it (not type check or run a development server), causes the following error:
Trying to ignore implicit Previously, we were piggy backing off the bundled version of import { initSession } from '@axa-fr/react-oidc/dist/vanilla/initSession';
import { setTokens as setOidcTokens } from '@axa-fr/react-oidc/dist/vanilla/parseTokens'; I think the easiest way to resolve our errors would be to expose at least the functions we use from the library in the The whole issue is somewhat urgent, as we're trying to catch up on major dependency updates and resolve a security vulnerability. |
Hi @UwUnyaa , Do you have a sample of your configuration ? For which use case use the method? You already have tokens for somewhere else? |
Since we don't use a service worker, there's no configuration file to speak of. Authentication and impersonation are handled by a separate domain and application.
We're not using it.
We're using
There's only one file in our whole monorepo (which doesn't contain every single project in the application as it's a language-centric repo) where we use both |
Hello!
Would anyone please share how we can achieve the following scenario:
We do have the access token for the user that we need to "impersonate," but we cannot set it as an initial access token value to react-oicd.
The text was updated successfully, but these errors were encountered: