Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CO-3739 Change OAuth Provider for GMC #1572

Merged
merged 1 commit into from Sep 16, 2021

Conversation

JCompassion
Copy link
Collaborator

When this commit is included in the codebase, the odoo.conf file have to
be updated otherwise message to GMC will fail. See related Jira task for
modifications to be applied.

When this commit is included in the codebase, the odoo.conf file have to
be updated otherwise message to GMC will fail. See related Jira task for
modifications to be applied.
@@ -124,12 +124,9 @@ def get_gmc_token(cls):
"connect_token_server in your Odoo configuration file."
)
)
params_post = "grant_type=client_credentials&scope=read+write"
params_post = "grant_type=client_credentials&scope=connect/read-write"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be retro-compatible?

_logger.error("Please install python jwt")
raise e
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you raise the error we won't be able to run odoo even when the module is not installed I think.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I though that since communication with the US is a hard requirement, it should be good to let Odoo crash if the requirements are not met instead of letting it run. It's up to you :)

@ecino ecino changed the base branch from devel to cognito-token September 16, 2021 10:28
@ecino ecino merged commit 62cba66 into CompassionCH:cognito-token Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants