Repository navigation
Conversation
295836a to
dd7e861
Compare
| To configure this module, you need to add a section | ||
| ``[auth_oauth.provider_simple_name]`` to you server_environment_files | ||
| configurations, where 'provider_simple_name' match the simplified name field on | ||
| ``[auth_oauth.provider_name]`` to you server_environment_files |
yankinmax
left a comment
There was a problem hiding this comment.
Thanks for adding the test. As we're migrationg form v11 probably it worth it to rename openerp to odoo?
I used for the |
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
@gurneyalex The merge process could not be finalized, because command |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
dd7e861 to
498e0a3
Compare
498e0a3 to
a143eca
Compare
a143eca to
15ab6bb
Compare
|
Note Changed since the merge attempt [auth_oauth.provider_google]
client_id = 123-abc
enabled = TrueIf someone renamed "Google OAuth2" to "Google" in the UI, its Installing the module also kept nothing from before: a provider missing from the config came out disabled with an empty client ID, and the ones added by hand had no |
Migrates
auth_oauth_environmentto 17.0: OAuth providers readclient_idandenabledfrom server_environment files, in a[auth_oauth.<tech_name>]section.Supersedes #253.
Note
Changed since the merge attempt
Renaming a provider no longer breaks its config. Say the server env file has:
If someone renamed "Google OAuth2" to "Google" in the UI, its
tech_namebecamegoogle, so this section no longer applied: the client ID came back empty and the Google button disappeared from the login page. Now the provider keepsprovider_google. I also addedtech_nameto the provider form so you can see which section a provider reads.Installing the module also kept nothing from before: a provider missing from the config came out disabled with an empty client ID, and the ones added by hand had no
tech_name, so they couldn't be configured either. A post-init hook now keeps their client ID and Allowed values and gives them atech_namefrom their name.tech_nameauth_oauth)provider_google,provider_openerp,provider_facebook(same as their XML ids)My Corp SSO→my_corp_ssoTests cover reading the config, searching on
enabled(used by the login page), and renaming.