Comments (7)
This is not yet implemented - I will have a look at the sample though and see what I can do. Thank you!
from redux-oidc.
I've had a look at the requirements and tried to implement it. The real difficulty here is that you need to provide an actual HTML file for the token manager to render in an iframe
. So you would need to alter your webpack/gulp/grunt configuration to export another module which then builds into the silentrefresh.html
. This is the part I'm looking to solve right now. I'm afraid there is no 'reacty' way to handle it. Will investigate further though.
from redux-oidc.
I have published v1.1.11-beta1 (many 1s wow) to npm. The middleware now automatically detects when the silent_renew
option in the config is set to true
and triggers the silent renew flow.
As I've mentioned, the real difficulty I've had is to configure webpack in such a way, that a separate HTML file for the iframe gets generated. You would have to create the refresh page by yourself and configure it in your project.
I've collaborated with a few awesome people to come up with an idea on how to solve this problem. This is the configuration I use to build a separate refresh.html
file. I know that your configuration might differ greatly from what I have. I would be happy to help as much as I can. I haven't had the time to test it in my project, hence the beta status, but I will as soon as I have the time. Give it a shot :)
from redux-oidc.
I've just tested it in my project and it works perfectly. I would be happy to hear your feedback on how your configuration went in order to update the docs.
from redux-oidc.
FYI I've fixed a bug in silent refresh. Please make sure you use the latest version (1.1.12).
from redux-oidc.
Just out of curiosity: Did you try using the update already?
from redux-oidc.
It looks good. The team just went to another direction with it so I haven't been able to test it out. But I'm sure there's a need for it in the next projects.
from redux-oidc.
Related Issues (20)
- LOADING_USER called multiple times from my reducers
- User signed out when calling silent renew HOT 1
- access_token is undefined in user object HOT 1
- user State is not getting maintained between browser tabs HOT 2
- Error when automatically trying to reauthenticate HOT 1
- Using the library with authorization code + PKCE HOT 1
- How to store the auth token in a cookie called 'token'? HOT 1
- Passing runtime configuration to UserManager HOT 1
- On redirect, LOADING_USER and USER_EXPIRED fires just before USER_FOUND HOT 1
- errorCallback called right after successCallback in Google Chrome and Edge HOT 5
- Redux state changed to Loading_user , User_Expired, User_found HOT 1
- Update UserManager authority after creation? HOT 1
- Google OAuth: Refresh token not present in token response HOT 7
- Passing state from signinRedirect to successCallback
- Manually update the oidcUser object with extra info
- Multiple-Apps-And-One-IdentityServer
- React js version 18 typescripts issue HOT 4
- Switch oidc-client to oidc-client-ts HOT 1
- redux-oidc(4.0.0-beta1) onSuccessCallback - redirect is not working HOT 1
- Support for React 18? HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-oidc.