hjalti
8 years agoNew Contributor
Authorization with OAuth2.0 implicit grant: Delete cookie/log out
So I am doing authorization with OAuth2.0 implicit flow. With one profile it works really well.
But now I am creating api access tests where I need to use another user profile. So naturally I create another profile and everything works perfectly except that SoapUI seems to send a cookie, belonging to the first profile, to the identity server. The identity server then "thinks" I am already logged in so it doesn't ask for username+password and gives me another token belonging to the first profile.
So I have been trying to clear all the cookies with a groovy script but I have not been able to access them. It seems to me that these specific cookies are not accessable by groovy, could that be true?
Any solutions?