redux-oidc icon indicating copy to clipboard operation
redux-oidc copied to clipboard

Updating Examples

Open nate-vukovich opened this issue 6 years ago • 7 comments

Hi.

I wanted to open this Issue so I get some info before I start updating the examples - for guidelines and additional info.

What I wanted to do is create a new example app showing implementation without redux-router and also a better hook integration.

Let me know if you would consider this a + to PR or not.

Best from Vienna.

Nejc

nate-vukovich avatar Jun 05 '19 08:06 nate-vukovich

I'm very interested in a working sample app for React IODC with or without redux. Have you got something up an running, @nvwebd?

eloekset avatar Jun 28 '19 21:06 eloekset

@eloekset yeah I have something up and running - with Redux - for without I still have to do something, but I didn't manage to find the time.

nate-vukovich avatar Jul 05 '19 07:07 nate-vukovich

Hi!

If you have an updated example I would be happy to link it to the docs.

maxmantz avatar Jul 10 '19 08:07 maxmantz

I would love to see some example for the SignoutCallbackComponent also

davidkhierl avatar Dec 02 '19 11:12 davidkhierl

I created a new example project using the library: https://github.com/henriquels25/redux-oidc-sample

@maxmantz, do you think we can link it to the docs?

If someone has suggestions, I can work on improving the example application.

henriquels25 avatar Feb 03 '20 15:02 henriquels25

Thanks for the new example @henriquels25.

I expected onRedirectSuccess in CallbackComponent to populate redux store with user, but it doesn't. Am I supposed to dispatch USER_FOUND myself in the successCallback? I see neither the existing example nor @henriquels25 new example do this, or am I missing something?

aleksandervalle avatar Feb 04 '20 19:02 aleksandervalle

Never mind! It's done by the OidcProvider upon user load event.

aleksandervalle avatar Feb 04 '20 20:02 aleksandervalle