Giter Site home page Giter Site logo

Comments (7)

maxmantz avatar maxmantz commented on August 18, 2024

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.

maxmantz avatar maxmantz commented on August 18, 2024

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.

maxmantz avatar maxmantz commented on August 18, 2024

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.

maxmantz avatar maxmantz commented on August 18, 2024

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.

maxmantz avatar maxmantz commented on August 18, 2024

FYI I've fixed a bug in silent refresh. Please make sure you use the latest version (1.1.12).

from redux-oidc.

maxmantz avatar maxmantz commented on August 18, 2024

Just out of curiosity: Did you try using the update already?

from redux-oidc.

pekkah avatar pekkah commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.