Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

We are developing a custom Odoo module to support Lark SSO login. The integration works, but there is a problem:

  • Odoo stores the Lark OAuth access token in the user record (
    oauth_access_token
    ).
  • When the same user logs in from a second browser, the new token overwrites the old one, causing the first browser’s session to be invalidated ("session expired" error).
  • We tried storing tokens in a separate model to track multiple sessions per user and only writing an "old" token to 
    oauth_access_token
    , but this causes issues with Odoo’s internal OAuth validation.
  • If we don’t update 
    oauth_access_token
    , login fails; if we do, only one session works at a time.

Question:

How can we allow multiple browsers to log in simultaneously with Lark SSO in Odoo, without causing session conflicts? Is there a recommended pattern or workaround for this situation? Any advice or best practices would be appreciated!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 24
2102
1
thg 5 23
333
0
thg 7 21
3161
1
thg 11 20
6060
1
thg 9 20
5195