SURFscz / SBS

Samenwerking Beheer Systeem ↣ Collaboration Management System
Apache License 2.0
3 stars 2 forks source link

Login in SBS turns up 4 times in `user_logins` table #359

Open baszoetekouw opened 1 year ago

baszoetekouw commented 1 year ago

When logging in to SBS test using the SURFnet Acc IdP (with SSID SFO), the login turn up 4 times in the user_logins table:

id login_type succeeded user_id user_uid service_id service_entity_id created_at
147 proxy_authz_sbs 0 21246 9bf251bf6cfa9eb8c75f15a90075fa7074eb3d48@acc.sram.eduteams.org APP-B799ADC6-EA57-4383-B493-27FB03D9195F 2022-10-17 09:43:08
148 sbs_login 1 21246 9bf251bf6cfa9eb8c75f15a90075fa7074eb3d48@acc.sram.eduteams.org 2022-10-17 09:43:11
149 proxy_authz_sbs 1 21246 9bf251bf6cfa9eb8c75f15a90075fa7074eb3d48@acc.sram.eduteams.org APP-B799ADC6-EA57-4383-B493-27FB03D9195F 2022-10-17 09:43:13
150 sbs_login 1 21246 9bf251bf6cfa9eb8c75f15a90075fa7074eb3d48@acc.sram.eduteams.org 2022-10-17 09:43:13

This is probably causes by the SFO login:

It probably makes sense to log all those 4 steps, but we should make clear in the table which one denotes the actual successful login.

So I propose the following:

In that way, a user logging in would still give 4 entries in the table, but only 1 will have type sbs_login.

oharsta commented 1 year ago

@baszoetekouw It would really help if we make a sequence-diagram / overview of the different login types and statuses and possible outcomes. It is now not clear to me, which combination of login_type and status to use in some of the different flows.

baszoetekouw commented 7 months ago

blocked by #883