diff --git a/src/authentic2_auth_fc/views.py b/src/authentic2_auth_fc/views.py index 8e4ab138d..8514b7dc8 100644 --- a/src/authentic2_auth_fc/views.py +++ b/src/authentic2_auth_fc/views.py @@ -334,6 +334,10 @@ class LoginOrLinkView(View): def link(self, request): '''Request an access grant code and associate it to the current user''' + # keep id_token around for logout + request.session['fc_id_token'] = self.id_token + request.session['fc_id_token_raw'] = self.token['id_token'] + try: self.fc_account, created = models.FcAccount.objects.get_or_create( sub=self.sub,