Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

OAuth2 login with Azure AD

Odoberať

Get notified when there's activity on this post

This question has been flagged
oauth2azure
3 Replies
13226 Zobrazenia
Avatar
Qiqo

Trying to enable OAuth2 login with our Azure AD, currently stuck with this error: AADSTS50001: Resource identifier is not provided.

It seems that there is a difference in AAD's implementation of OAuth2 as they have "Resources" instead of scope. Has anyone been successful in integrating AAD Outh2 with odoo 10? 

0
Avatar
Zrušiť
Avatar
Chris Mann
Best Answer

Appreciate it's an old thread but still Odoo (as of V16) does not officially support Azure AD for OAUTH.
However this very simple open-source module does and works with most versions.
I've used it for many years and been involved in the testing / documentation of it.
odoonz-addons/auth_oauth_microsoft_graph at 15.0 · odoonz/odoonz-addons (github.com)

0
Avatar
Zrušiť
Avatar
IAS Software
Best Answer

Hello

I found this information https://www.odoo.com/documentation/master/applications/general/auth/azure.html, this error is because Odoo does not support connection with oauth microsoft azure.

0
Avatar
Zrušiť
Avatar
Qiqo
Autor Best Answer

i've managed to reconfigure and allow to authenticate using Microsoft Graph with the sign in and read profile but now getting:


2017-09-07 03:18:47,468 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:47] "GET /auth_oauth/signin HTTP/1.1" 200 - 2017-09-07 03:18:48,062 12070 ERROR theasiaodoo odoo.addons.auth_oauth.controllers.main: OAuth2: HTTP Error 401: Unauthorized Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/controllers/main.py", line 139, in signin

    credentials = env['res.users'].sudo().auth_oauth(provider, kw)

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/models/res_users.py", line 104, in auth_oauth

    validation = self._auth_oauth_validate(provider, access_token)

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/models/res_users.py", line 42, in _auth_oauth_validate

    validation = self._auth_oauth_rpc(oauth_provider.validation_endpoint, access_token)

  File "/usr/lib/python2.7/dist-packages/odoo/addons/auth_oauth/models/res_users.py", line 34, in _auth_oauth_rpc

    f = urllib2.urlopen(url)

  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen

    return opener.open(url, data, timeout)

  File "/usr/lib/python2.7/urllib2.py", line 435, in open

    response = meth(req, response)

  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response

    'http', request, response, code, msg, hdrs)

  File "/usr/lib/python2.7/urllib2.py", line 473, in error

    return self._call_chain(*args)

  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain

    result = func(*args)

  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default

    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

HTTPError: HTTP Error 401: Unauthorized 2017-09-07 03:18:48,063 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:48] "GET /auth_oauth/signin?access_token=eyJ0eXAiOiJKV1QiLCJub25jZSI6IkFRQUJBQUFBQUFBOWtUa2xoVnk3U0pUR0F6Ui1$2017-09-07 03:18:48,253 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:48] "GET /web/login?oauth_error=2 HTTP/1.1" 200 - 2017-09-07 03:18:48,552 12070 INFO theasiaodoo werkzeug: 127.0.0.1 - - [07/Sep/2017 03:18:48] "POST /website/translations HTTP/1.1" 200 -

-----

settings are

ODOO:

ClientID: AAD App ID

Authentication URL: https://login.microsoftonline.com/[tenant]/oauth2/authorize?resource=https%3A%2F%2Fgraph.microsoft.com&

Validation URL: https://login.microsoftonline.com/b4ee2b10-c018-4d42-abb0-5754023fc6cc/oauth2/token (also tried https://graph.microsoft.com/v1.0/me but no go)


Any help would be appreciated, thanks


0
Avatar
Zrušiť
HTG Admins

Hi Qiqo,

I'm curious to know if you ever solved this problem. I have been stuck with the same error while attempting to setup OAuth2 and AzureAD.

V/R,

Evan

Jornald

I have the same problem.Did you solve this problem?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
Is OAuth2 supported in the Odoo 18 Community Edition?
oauth2
Avatar
Avatar
Avatar
2
sep 25
3172
Can't find where to put the client secret
oauth2
Avatar
Avatar
2
okt 23
5545
Connecting Okta with Odoo using Oauth
oauth2
Avatar
Avatar
1
júl 23
5489
Enable OAUTH2 with Windows Azure Active Directory (WAAD) as a oauth2 provider
v7.0 oauth2 azure waad
Avatar
0
júl 21
16114
Oauth error with my own oauth provider
oauth2
Avatar
Avatar
1
nov 15
9747
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now