Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2330 Lượt xem

I am trying to log in from another website where I have already logged in using Azure AD. I have created a button that will pass the odoo URL with an access_token. 

In the back end, I have written a code to fetch the token and access the user email and then I am trying to redirect to that user's homepage. i.e. I wanted it to skip the login page to redirect to the homepage with that specific user logged in. 


I have cross-checked that, this user is present in the odoo users and I can get the email for the user. However, I cannot redirect to the user's home page. 


Can someone please help me with a method or a backend code to achieve that? 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

First Approach
create a python function

pass the method in the button


Second approach

add direct URL with the access token


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
7993
0
thg 3 15
5390
1
thg 4 18
12729
2
thg 3 24
13387
0
thg 11 23
2870