Package: odoo14-addon-auth-oidc
This module allows users to login through an OpenID Connect provider using the
authorization code flow or implicit flow.Note the implicit flow is not recommended because it exposes access tokens to
the browser and in http logs.Table of contentsInstallationConfigurationSetup for Microsoft AzureSetup for KeycloakUsageKnown issues / RoadmapChangelog14.0.1.1.0 2023-11-2214.0.1.0.2 2022-03-1414.0.1.0.1 2022-01-1714.0.1.0.0 2021-12-1013.0.1.0.0 2020-04-1010.0.1.0.0 2018-10-05Bug TrackerCreditsAuthorsContributorsMaintainersInstallationThis module depends on thepython-joselibrary, not to be confused withjosewhich is also available on PyPI.ConfigurationSetup for Microsoft AzureExample configuration with OpenID Connect implicit flow.
This configuration is not recommended because it exposes the access token
to the client, and in logs.# configure a new web application in Azure with OpenID and implicit flow (seetheprovider documentation)# in this application the redirect url must be be “<url of yourserver>/auth_oauth/signin” and of course this URL should be reachable from
Azure# create a new authentication provider in Odoo with the followingparameters (see theportal documentationfor more information):Provider Name: AzureAuth Flow: OpenID ConnectClient ID: use the value of the OAuth2 autorization endoing (v2) from the Azure Endpoints listBody: Azure SSOAuthentication URL: use the value of “OAuth2 autorization endpoint (v2)” from the Azure endpoints listScope: openid emailValidation URL: use the value of “OAuth2 token endpoint (v2)” from the Azure endpoints listAllowed: yesSetup for KeycloakExample configuration with OpenID Connect authorization code flow.In Keycloak:# configure a new Client
# make sure Authorization Code Flow is Enabled.
# configure the client Access Type as “confidential” and take note of the client secret in the Credentials tab
# configure the redirect url to be “<url of your server>/auth_oauth/signin”In Odoo, create a new Oauth Provider with the following parameters:Provider name: Keycloak (or any name you like that identify your keycloak
provider)Auth Flow: OpenID Connect (authorization code flow)Client ID: the same Client ID you entered when configuring the client in KeycloakClient Secret: found in keycloak on the client Credentials tabAllowed: yesBody: the link text to appear on the login page, such as Login with KeycloakScope: openid emailAuthentication URL: The “authorization_endpoint” URL found in the
OpenID Endpoint Configuration of your Keycloak realmToken URL: The “token_endpoint” URL found in the
OpenID Endpoint Configuration of your Keycloak realmJWKS URL: The “jwks_uri” URL found in the
OpenID Endpoint Configuration of your Keycloak realmUsageOn the login page, click on the authentication provider you configured.Known issues / RoadmapWhen going to the login screen, check for a existing token and do a direct login without the clicking on the SSO linkWhen doing a logout an extra option to also logout at the SSO provider.Changelog14.0.1.1.0 2023-11-22Forward port OpenID Connect fixes from 13.0 to 14.014.0.1.0.2 2022-03-14Fix werkzeug deprecated warning for url_encode, url decode14.0.1.0.1 2022-01-17Updated readme and pot14.0.1.0.0 2021-12-10Odoo 14 migration13.0.1.0.0 2020-04-10Odoo 13 migration, add authorization code flow.10.0.1.0.0 2018-10-05Initial implementationBug TrackerBugs are tracked onGitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomedfeedback.Do not contact contributors directly about support or help with technical issues.CreditsAuthorsICTSTUDIOAndré SchenkelsACSONE SA/NVContributorsAlexandre Fayolle <alexandre.fayolle@camptocamp.com>Stéphane Bidoul <stephane.bidoul@acsone.eu>Andreas Perhab <andreas.perhab@wt-io-it.at>MaintainersThis module is maintained by the OCA.OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.Currentmaintainer:This module is part of theOCA/server-authproject on GitHub.You are welcome to contribute. To learn how please visithttps://odoo-community.org/page/Contribute.