How to configure a provider for Odoo?
See original GitHub issueDescribe your question/ Create an OAuth provider for Odoo 14
Relevant infos Latest version of Authentik, on docker.
Screenshots If applicable, add screenshots to help explain your problem.
Context
After trying to connect to my Odoo instance using my Authentik provider, I get error=unsupported_response_type
The authorization server does not support obtaining an authorization code using this method
Could you perhaps provide us with a tutorial on how to integrate OAuth into Odoo using authentik?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
System configuration — Odoo 16.0 documentation
This document describes basic steps to set up Odoo in production or on an internet-facing server. It follows installation, and is not generally...
Read more >How to Configure Vendors, Locations & Alerts in Odoo 15 ...
How to Configure Vendors, Locations & Alerts in Odoo 15 Lunch Module | Odoo 15 Enterprise Edition · Comments.
Read more >How to Run a Service Provider Company in Odoo
These companies range from hospitality services providers, assistance service providers, equipment repair and installation, construction works ...
Read more >Auth oauth configuration with server_environment
'provider_simple_name' is the first part (until first space character) in lower case of provider name. Using existing providers, it could be either google,...
Read more >What is best hosting solution for odoo? - Fraxnet.com
Top hosting providers for odoo servers, odoo hosting on digital ocean, ... Install odoo on your own local server when you have a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The odoo OAuth code was written something like 8 years ago and uses practices that were deemed OK then, but have since been considered insecure. I assume that’s why Authentik doesn’t seem to support it. I’ve been banging my head against this very same problem the past couple of days and happened on this thread while madly googling for a solution. Here’s how I got it to work: (in each section i will only mention the non obvious fields)
In Authentik: Client Type: Confidential Redirect URI: http://your.odoo/auth_oauth/signin/ –edited to add: The Redirect URI is where I have the most problems. I’ve had to include serveral URIs in this field for example: http://your.odoo/auth_oauth/signin/ https://your.odoo/auth_oauth/signin/ https://www.your.odoo/auth_oauth/signin/ – end edit Signing Key: authentik Self-signed certificate (RSA) please note the redirect uri is http NOT https but depending on your setup maybe you can get away with https and you need to specify a signing key or it won’t work.
In Odoo:
Create a new OAuth provider: Auth Flow: OpenID Connect (authorization code flow) Token Map: email:user_id Fill in all the rest by plugging in values from your Authentik provider: Client ID Client Secret Authorization URL UserInfo URL Token URL JWKS URL For every user you want to enable OAuth open the OAuth tab on the user record:
As a last step: pray to the deity of your choice, maybe go to a sunday service or two, promise to sacrifice your first-born child and…
try not to rip your hair out or throw your computer out the window when it doesn’t work anyway.
Wow, thanks a lot for that detailed reply, I’ll try that right when I’m back to work