跳至內容
選單
此問題已被標幟
2 回覆
8431 瀏覽次數

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.

頭像
捨棄
最佳答案


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.


頭像
捨棄
最佳答案

Hi everyone

Anyone knows a solution for this error. Thanks

頭像
捨棄

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

相關帖文 回覆 瀏覽次數 活動
2
7月 24
15555
1
4月 20
10213
1
4月 20
4762
5
9月 19
5202
0
9月 19
2626