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

Hi, When we tried to login with WAAD (microsoft) credentials,  authentication is successful and at the time of redirecting, the odoo 11 giving "Access Denied" error. Below are the configurations used:


1) Created Windows Azure AD(WAAD) in azure portal with granted the  User.ReadWrite.All permissions and reply URL: http://localhost:8069/auth_oauth/signin?


2)  Installed OAuth2 authentication app in Odoo 11 application

3)  OAuth Providers settings in Odoo application

    a.  Provider Name - Windows Azure AD

    b.  Client ID – <WAAD ID>

    c.  Allowed – Enabled

    d.  Body - Login with Microsoft

    e.  Authentication URL - https://login.microsoftonline.com/<tenantid>/oauth2/authorize

    f.  Scope - User.ReadWrite.All

    g.  Validation URL: https://login.microsoftonline.com/<tenantid>/oauth2/token

    h.  Data URL: https://graph.windows.net/<tenantid>


When we tried with other options, we changed the Authentication URL to https://login.microsoftonline.com/<tenantid>/oauth2/authorize?response_type=code+id_token&response_mode=fragment&nonce=678910


also, customized the code accordingly so that id_token act as access_token and requests.post(endpoint, params={'access_token': access_token}) used instead of requests.get(), then Odoo giving an error "Sign up is not allowed on this database"


Suggest us how to resolve the error(s)?


Thanks,

Lakshmi Chowdam.

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


Follow the below step from Odoo documentation , it works for me !

First activate the developer mode, and then go to Settings ‣ Technical ‣ System Parameters.

Click Create and on the new/blank form that appears, add the following system parameter auth_oauth.authorization_header to the Key field, and set the Value to 1. Then click Save to finish.


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

Hi everyone

Anyone knows a solution for this error. Thanks

Ảnh đại diện
Huỷ bỏ

Go to General Settings, under users --> Customer Account, allow Free Sign Up

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
15676
1
thg 4 20
10270
1
thg 4 20
4815
5
thg 9 19
5222
0
thg 9 19
2658