danilobuerger / redux-implicit-oauth2

OAuth 2.0 Implicit Grant Flow with Redux
MIT License
30 stars 20 forks source link

It is possible use oauth2 if server has another url? #16

Closed BesyadaV closed 6 years ago

BesyadaV commented 6 years ago

Currently i have front runs on localhost:1234/ but my requirements for oauth2 is: { response_type: token client_id: octes state: hsadjksahdjksahdjksahdjkhsadjkhsakjd redirect_uri: http://octes/oauth/callback scope: openid profile email } it is possible to use? If yes, how? plz provide example if it is not a problem.

danilobuerger commented 6 years ago

Did you take a look at the example at https://github.com/danilobuerger/redux-implicit-oauth2#example-with-react ? What doesn't work? You can set your oauth2 url to anything you like in config.url as shown in the example

BesyadaV commented 6 years ago

Sorry, this is was my fail! And 1 more question. It is posible to make callback(or promises) on Login and Logout function?

danilobuerger commented 6 years ago

They are just normal redux actions and you can do with them what you can do with any other action

BesyadaV commented 6 years ago

thanks.