# SSO error after migration to 3.5.10

**URL:** <https://forum.seatable.com/t/sso-error-after-migration-to-3-5-10/2323>\
**Category:** Configuration\
**Tags:** sso\
**Created:** [April 28, 2023, 9:12am UTC](https://forum.seatable.com/t/sso-error-after-migration-to-3-5-10/2323 "2023-04-28T09:12:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent](https://forum.seatable.com/user_avatar/forum.seatable.com/vincent/32/2568_2.png) [@Vincent](https://forum.seatable.com/u/Vincent)\
**Post date:** [April 28, 2023, 9:12am UTC](https://forum.seatable.com/t/sso-error-after-migration-to-3-5-10/2323/1 "2023-04-28T09:12:21Z")

</div>

Hi after Migration to 3.5.10, problem at login.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/core/handlers/exception.py”, line 47, in inner  
response = get\_response(request)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/core/handlers/base.py”, line 181, in \_get\_response  
response = wrapped\_callback(request, \*callback\_args, \*\*callback\_kwargs)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/views/decorators/csrf.py”, line 54, in wrapped\_view  
return view\_func(\*args, \*\*kwargs)  
File “/opt/seatable/seatable-server-latest/dtable-web/seahub/saml/views.py”, line 94, in \_decorated  
return func(request)  
File “/opt/seatable/seatable-server-latest/dtable-web/seahub/saml/views.py”, line 190, in acs  
profile.save()  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/models/base.py”, line 739, in save  
self.save\_base(using=using, force\_insert=force\_insert,  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/models/base.py”, line 776, in save\_base  
updated = self.\_save\_table(  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/models/base.py”, line 858, in \_save\_table  
updated = self.\_do\_update(base\_qs, using, pk\_val, values, update\_fields,  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/models/base.py”, line 912, in \_do\_update  
return filtered.\_update(values) \> 0  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/models/query.py”, line 802, in \_update  
return query.get\_compiler(self.db).execute\_sql(CURSOR)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/models/sql/compiler.py”, line 1559, in execute\_sql  
cursor = super().execute\_sql(result\_type)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/models/sql/compiler.py”, line 1175, in execute\_sql  
cursor.execute(sql, params)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/backends/utils.py”, line 66, in execute  
return self.\_execute\_with\_wrappers(sql, params, many=False, executor=self.\_execute)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/backends/utils.py”, line 75, in \_execute\_with\_wrappers  
return executor(sql, params, many, context)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/backends/utils.py”, line 84, in \_execute  
return self.cursor.execute(sql, params)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/utils.py”, line 90, in **exit**  
raise dj\_exc\_value.with\_traceback(traceback) from exc\_value  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/backends/utils.py”, line 84, in \_execute  
return self.cursor.execute(sql, params)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/django/db/backends/mysql/base.py”, line 73, in execute  
return self.cursor.execute(query, args)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/MySQLdb/cursors.py”, line 206, in execute  
res = self.\_query(query)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/MySQLdb/cursors.py”, line 319, in \_query  
db.query(q)  
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/MySQLdb/connections.py”, line 254, in query  
\_mysql.connection.query(self, query)  
django.db.utils.IntegrityError: (1062, “Duplicate entry ‘vincent.dousset@symta.fr’ for key ‘profile\_profile\_contact\_email\_0975e4bf\_uniq’”)

---

<div class="post-metadata">

**Author:** ![rdb](https://forum.seatable.com/user_avatar/forum.seatable.com/rdb/32/1869_2.png) [@rdb](https://forum.seatable.com/u/rdb)\
**Post date:** [April 28, 2023, 10:17am UTC](https://forum.seatable.com/t/sso-error-after-migration-to-3-5-10/2323/2 "2023-04-28T10:17:25Z")

</div>

The SAML configuration was changed in SeaTable 3.5. Please see here: [https://manual.seatable.io/config/enterprise/saml/](https://manual.seatable.io/config/enterprise/saml/)

Also see this prior exchange of yours in this forum: [https://forum2.seatable.io/t/saml-sso-error/2138/8?u=rdb](https://forum2.seatable.io/t/saml-sso-error/2138/8?u=rdb)

---

<div class="post-metadata">

**Author:** ![Vincent](https://forum.seatable.com/user_avatar/forum.seatable.com/vincent/32/2568_2.png) [@Vincent](https://forum.seatable.com/u/Vincent)\
**Post date:** [April 28, 2023, 11:41am UTC](https://forum.seatable.com/t/sso-error-after-migration-to-3-5-10/2323/3 "2023-04-28T11:41:53Z")

</div>

Yes I updated according to the information present in the tutorial, but for a user already registered I have to delete him so that he registers again.

It works for new user.

Regard

---

<div class="post-metadata">

**Author:** ![cdb](https://forum.seatable.com/user_avatar/forum.seatable.com/cdb/32/7_2.png) [@cdb](https://forum.seatable.com/u/cdb)\
**Post date:** [April 29, 2023, 9:03am UTC](https://forum.seatable.com/t/sso-error-after-migration-to-3-5-10/2323/4 "2023-04-29T09:03:47Z")

</div>

The link to the admin manual has changed. We published yesterday a new section in the manual “authentication”. There you will find all the necessary information about how authentication works in SeaTable and also how to switch users from one authentication method to another.

Here is the link: [https://manual.seatable.io/authentication/auth\_overview/](https://manual.seatable.io/authentication/auth_overview/)

@Vincent, with this information, it should be easy for you to find out why SeaTable denies the login of the user with the error “duplicate entry”.

---

<div class="post-metadata">

**Author:** ![system](https://forum.seatable.com/uploads/default/original/1X/04603423fe81a46c321283663086c475429e8ccb.png) [@system](https://forum.seatable.com/u/system)\
**Post date:** [May 1, 2023, 9:03am UTC](https://forum.seatable.com/t/sso-error-after-migration-to-3-5-10/2323/5 "2023-05-01T09:03:57Z")

</div>

Closed on May 1, 2023, 9:03am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
