eduvpn/macos

oauth token revoking - unable to retrieve new token

efef opened this issue · 4 comments

efef commented

In the Web application an user can revoke the Oauth token by clicking "intrekken" see screenshot:
screen shot 2018-09-28 at 16 06 39 copy

At the next connect of the app, the app should be able to retrieve a new Oauth token. Somehow the token never reaches the app, and the webbrowser status is “waiting for 127.0.0.1”.
screen shot 2018-09-28 at 16 02 39

efef commented

even when I remove the customer server, and add again I can't retrieve the token

This is exactly the same issue as #149

efef commented

the fix makes sure the token is received, however now I get twice in the browser an "approve" notification. As if the client now gets two oauth tokens.
In order to reproduce:
-connect the VPN (green icon)
-go to webinterface - account - click revoke "eduVPN for MacOS"
-in app click 'disconnect'
-wait till icon turns red, click 'connect'
-you will be redirect to webinterface to login - so login
-after login press "approve" in order to get the oauth token to the app
-the VPN connects, but strangely in the webinterface a seconde 'approve' screen will be visable (bug)

I can reproduce this. If you go back one step and connect again it does work as expected with only getting Approve screen on website once. I haven't been able to find the fix yet.