diff --git a/microsoft_azure_sso_integration/README.rst b/microsoft_azure_sso_integration/README.rst new file mode 100644 index 000000000..0ecb2382d --- /dev/null +++ b/microsoft_azure_sso_integration/README.rst @@ -0,0 +1,56 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Microsoft Azure OAuth2 SSO Integration +================================= +Microsoft Azure OAuth2 SSO Integration is used to login odoo with microsoft +azure account using the single sign on functionality + +Configuration +============= +* Generate Microsoft Azure credentials +* Login the azure portal and go to the azure directory:https://portal.azure.com/ +* Click on the App Registration +* Click on New Registration +* You can get the credentials +* Go to Api Permissions. +* Add permissions +* Click on the Client and Secret and create the secret by clicking the New client secret. +* Create Secret for the app. + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V16) Gayathri V, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if +your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/microsoft_azure_sso_integration/__init__.py b/microsoft_azure_sso_integration/__init__.py new file mode 100644 index 000000000..43ef450cc --- /dev/null +++ b/microsoft_azure_sso_integration/__init__.py @@ -0,0 +1,24 @@ +"""Microsoft azure login""" +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import controllers +from . import models diff --git a/microsoft_azure_sso_integration/__manifest__.py b/microsoft_azure_sso_integration/__manifest__.py new file mode 100644 index 000000000..44865a476 --- /dev/null +++ b/microsoft_azure_sso_integration/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Microsoft Azure OAuth2 SSO Integration', + 'version': "16.0.1.0.0", + 'category': ' Extra Tools', + 'summary': """Microsoft Azure OAuth2 SSO Integration is used to login odoo + with microsoft azure account using the single sign on functionality.""", + 'description': """Basic module for Microsoft Azure connector used to login + with azure account in odoo.We can login in odoo using azure portal account + and also there is no need to enter the pass word each time.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'auth_oauth'], + 'data': [ + 'data/auth_oauth_provider_data.xml', + 'views/auth_oauth_provider_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/microsoft_azure_sso_integration/controllers/__init__.py b/microsoft_azure_sso_integration/controllers/__init__.py new file mode 100644 index 000000000..232f266ea --- /dev/null +++ b/microsoft_azure_sso_integration/controllers/__init__.py @@ -0,0 +1,23 @@ +"""Microsoft login""" +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import microsoft_azure_sso_integration diff --git a/microsoft_azure_sso_integration/controllers/microsoft_azure_sso_integration.py b/microsoft_azure_sso_integration/controllers/microsoft_azure_sso_integration.py new file mode 100644 index 000000000..95b4c191d --- /dev/null +++ b/microsoft_azure_sso_integration/controllers/microsoft_azure_sso_integration.py @@ -0,0 +1,54 @@ +"""Microsoft azure login""" +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import json +import werkzeug.urls +import werkzeug.utils +from odoo.http import request +from odoo.addons.auth_signup.controllers.main import AuthSignupHome as Home + + +class OAuthLogin(Home): + """This class is used for oauth login""" + + def list_providers(self): + """Which provides the oauth provider to login to the odoo""" + super().list_providers() + try: + auth_providers = request.env[ + 'auth.oauth.provider'].sudo().search_read( + [('enabled', '=', True)]) + except Exception: + auth_providers = [] + for rec in auth_providers: + return_url = request.httprequest.url_root + 'auth_oauth/signin' + state = self.get_state(rec) + params = dict( + response_type=rec['response_type'], + client_id=rec['client_id'], + redirect_uri=return_url, + scope=rec['scope'], + state=json.dumps(state), + ) + rec['auth_link'] = "%s?%s" % ( + rec['auth_endpoint'], werkzeug.urls.url_encode(params)) + return auth_providers diff --git a/microsoft_azure_sso_integration/data/auth_oauth_provider_data.xml b/microsoft_azure_sso_integration/data/auth_oauth_provider_data.xml new file mode 100644 index 000000000..9fd5d83a8 --- /dev/null +++ b/microsoft_azure_sso_integration/data/auth_oauth_provider_data.xml @@ -0,0 +1,20 @@ + + + + + + Microsoft + + https://login.microsoftonline.com/common/oauth2/v2.0/authorize + + openid email profile + + https://login.microsoftonline.com/common/oauth2/v2.0/token + + fa fa-fw fa-windows + Log in with Microsoft + code + https://graph.microsoft.com + + + diff --git a/microsoft_azure_sso_integration/doc/RELEASE_NOTES.md b/microsoft_azure_sso_integration/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..00ae67aa1 --- /dev/null +++ b/microsoft_azure_sso_integration/doc/RELEASE_NOTES.md @@ -0,0 +1,8 @@ +## Module + +#### 10.11.2023 +#### Version 16.0.1.0.0 +##### ADD + +- Initial Commit for Microsoft Azure OAuth2 SSO Integration +- \ No newline at end of file diff --git a/microsoft_azure_sso_integration/models/__init__.py b/microsoft_azure_sso_integration/models/__init__.py new file mode 100644 index 000000000..56f26facd --- /dev/null +++ b/microsoft_azure_sso_integration/models/__init__.py @@ -0,0 +1,24 @@ +"""Microsoft login through odoo""" +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import auth_oauth_provider +from . import res_users diff --git a/microsoft_azure_sso_integration/models/auth_oauth_provider.py b/microsoft_azure_sso_integration/models/auth_oauth_provider.py new file mode 100644 index 000000000..6592ae815 --- /dev/null +++ b/microsoft_azure_sso_integration/models/auth_oauth_provider.py @@ -0,0 +1,35 @@ +"""Microsoft login""" +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class AuthOauthProvider(models.Model): + """This class is used to add new fields into the provider""" + _inherit = 'auth.oauth.provider' + + client_secret_id = fields.Char(string='Client Secret', + help="Client Secret of the microsoft app") + response_type = fields.Selection([('token', 'Token'), ('code', 'Code')], + default='token', + required=True, String="Response Type", + help="Response type of the microsoft") diff --git a/microsoft_azure_sso_integration/models/res_users.py b/microsoft_azure_sso_integration/models/res_users.py new file mode 100644 index 000000000..6a6135670 --- /dev/null +++ b/microsoft_azure_sso_integration/models/res_users.py @@ -0,0 +1,161 @@ +"""Microsoft login""" +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import json, logging, requests +from odoo.http import request +from odoo import api, models +from odoo import exceptions +from odoo.addons import base +from odoo.addons.auth_signup.models.res_users import SignupError + +base.models.res_users.USER_PRIVATE_FIELDS.append('oauth_access_token') +_logger = logging.getLogger(__name__) + +try: + import jwt +except ImportError: + _logger.warning( + "Login with Microsoft account won't be available.Please install PyJWT " + "python library, ") + jwt = None + + +class ResUsers(models.Model): + """This class is used to inheriting the res.users and provides the oauth + access""" + _inherit = 'res.users' + + @api.model + def _auth_oauth_rpc(self, endpoint, access_token): + """This is used to pass the response of sign in.""" + res = super()._auth_oauth_rpc(endpoint, access_token) + if endpoint: + return requests.get(endpoint, + params={'access_token': access_token}).json() + return res + + @api.model + def _auth_oauth_code_validate(self, provider, code): + """ Return the validation data corresponding to the access token """ + auth_oauth_provider = self.env['auth.oauth.provider'].browse(provider) + req_params = dict( + client_id=auth_oauth_provider.client_id, + client_secret=auth_oauth_provider.client_secret_id, + grant_type='authorization_code', + code=code, + redirect_uri=request.httprequest.url_root + 'auth_oauth/signin', + ) + headers = {'Accept': 'application/json'} + token_info = requests.post(auth_oauth_provider.validation_endpoint, + headers=headers, data=req_params).json() + if token_info.get("error"): + raise Exception(token_info['error']) + access_token = token_info.get('access_token') + validation = { + 'access_token': access_token + } + if token_info.get('id_token'): + if not jwt: + raise exceptions.AccessDenied() + data = jwt.decode(token_info['id_token'], verify=False) + else: + data = self._auth_oauth_rpc(auth_oauth_provider.data_endpoint, + access_token) + validation.update(data) + return validation + + @api.model + def _auth_oauth_signin(self, provider, validation, params): + """ Retrieve and sign in the user corresponding to provider and validated access token + :param provider: oauth provider id (int) + :param validation: result of validation of access token (dict) + :param params: oauth parameters (dict) + :return: user login (str) + :raise: AccessDenied if signin failed + + This method can be overridden to add alternative signin methods. + """ + user = self.search([('login', '=', str(validation.get('email')))]) + if not user: + user = self.create({ + 'login': str(validation.get('email')), + 'name': str(validation.get('name')) + }) + provider_id = self.env['auth.oauth.provider'].sudo().browse( + provider) + if provider_id.template_user_id: + user.is_contractor = provider_id.template_user_id.is_contractor + user.contractor = provider_id.template_user_id.contractor + user.groups_id = [ + (6, 0, provider_id.template_user_id.groups_id.ids)] + user.write({ + 'oauth_provider_id': provider, + 'oauth_uid': validation['user_id'], + 'oauth_access_token': params['access_token'], + }) + oauth_uid = validation['user_id'] + try: + oauth_user = self.search([("oauth_uid", "=", oauth_uid), + ('oauth_provider_id', '=', provider)]) + if not oauth_user: + raise exceptions.AccessDenied() + assert len(oauth_user) == 1 + oauth_user.write({'oauth_access_token': params['access_token']}) + return oauth_user.login + except (exceptions.AccessDenied, exceptions.access_denied_exception): + if self.env.context.get('no_user_creation'): + return None + state = json.loads(params['state']) + token = state.get('t') + values = self._generate_signup_values(provider, validation, params) + try: + _, login, _ = self.signup(values, token) + return login + except SignupError: + raise exceptions.access_denied_exception + return super()._auth_oauth_signin(provider, validation, + params) + + @api.model + def auth_oauth(self, provider, params): + """This is used to take the access token to sign in with the user account.""" + if params.get('code'): + validation = self._auth_oauth_code_validate(provider, + params['code']) + access_token = validation.pop('access_token') + params['access_token'] = access_token + else: + access_token = params.get('access_token') + validation = self._auth_oauth_validate(provider, access_token) + if not validation.get('user_id'): + if validation.get('id'): + validation['user_id'] = validation['id'] + elif validation.get('oid'): + validation['user_id'] = validation['oid'] + else: + raise exceptions.AccessDenied() + login = self._auth_oauth_signin(provider, validation, params) + if not login: + raise exceptions.AccessDenied() + if provider and params: + return (self.env.cr.dbname, login, access_token) + return super(ResUsers, self).auth_oauth(provider, params) diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/check.png b/microsoft_azure_sso_integration/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/check.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/chevron.png b/microsoft_azure_sso_integration/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/chevron.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/cogs.png b/microsoft_azure_sso_integration/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/cogs.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/consultation.png b/microsoft_azure_sso_integration/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/consultation.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/ecom-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/ecom-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/education-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/education-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/hotel-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/hotel-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/license.png b/microsoft_azure_sso_integration/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/license.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/lifebuoy.png b/microsoft_azure_sso_integration/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/lifebuoy.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/logo.png b/microsoft_azure_sso_integration/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/logo.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/manufacturing-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/manufacturing-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/pos-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/pos-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/puzzle.png b/microsoft_azure_sso_integration/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/puzzle.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/restaurant-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/restaurant-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/service-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/service-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/trading-black.png b/microsoft_azure_sso_integration/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/trading-black.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/training.png b/microsoft_azure_sso_integration/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/training.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/update.png b/microsoft_azure_sso_integration/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/update.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/user.png b/microsoft_azure_sso_integration/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/user.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/icons/wrench.png b/microsoft_azure_sso_integration/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/icons/wrench.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/categories.png b/microsoft_azure_sso_integration/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/categories.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/check-box.png b/microsoft_azure_sso_integration/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/check-box.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/compass.png b/microsoft_azure_sso_integration/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/compass.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/corporate.png b/microsoft_azure_sso_integration/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/corporate.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/customer-support.png b/microsoft_azure_sso_integration/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/customer-support.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/cybrosys-logo.png b/microsoft_azure_sso_integration/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/cybrosys-logo.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/features.png b/microsoft_azure_sso_integration/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/features.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/logo.png b/microsoft_azure_sso_integration/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/logo.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/pictures.png b/microsoft_azure_sso_integration/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/pictures.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/pie-chart.png b/microsoft_azure_sso_integration/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/pie-chart.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/right-arrow.png b/microsoft_azure_sso_integration/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/right-arrow.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/star.png b/microsoft_azure_sso_integration/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/star.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/support.png b/microsoft_azure_sso_integration/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/support.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/misc/whatsapp.png b/microsoft_azure_sso_integration/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/misc/whatsapp.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/modules/5.gif b/microsoft_azure_sso_integration/static/description/assets/modules/5.gif new file mode 100644 index 000000000..8f40aab85 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/modules/5.gif differ diff --git a/microsoft_azure_sso_integration/static/description/assets/modules/6.png b/microsoft_azure_sso_integration/static/description/assets/modules/6.png new file mode 100644 index 000000000..489f44e86 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/modules/6.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/modules/barcode.png b/microsoft_azure_sso_integration/static/description/assets/modules/barcode.png new file mode 100644 index 000000000..618e3e6c4 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/modules/barcode.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/modules/fatoorah.png b/microsoft_azure_sso_integration/static/description/assets/modules/fatoorah.png new file mode 100644 index 000000000..991fc77ec Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/modules/fatoorah.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/modules/integration_biometric.png b/microsoft_azure_sso_integration/static/description/assets/modules/integration_biometric.png new file mode 100644 index 000000000..ed11bd818 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/modules/integration_biometric.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/modules/product_brand.png b/microsoft_azure_sso_integration/static/description/assets/modules/product_brand.png new file mode 100644 index 000000000..1d2238b80 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/modules/product_brand.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/modules/website_cart.png b/microsoft_azure_sso_integration/static/description/assets/modules/website_cart.png new file mode 100644 index 000000000..163485cfd Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/modules/website_cart.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/1.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..2b56ebb46 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/1.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/10.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..3d1a6e85c Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/10.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/11.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..a6959eb01 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/11.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/12.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..1e11b192c Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/12.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/13.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..e5bb106db Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/13.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/14.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..66b5dc379 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/14.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/15.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/15.png new file mode 100644 index 000000000..97b884786 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/15.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/16.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/16.png new file mode 100644 index 000000000..d2c6b90eb Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/16.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/17.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/17.png new file mode 100644 index 000000000..88f75f679 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/17.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/2.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..7829da589 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/2.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/3.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..293084a47 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/3.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/4.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..52d4b1242 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/4.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/5.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..f64102b23 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/5.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/6.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..1b3faa599 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/6.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/7.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..899ccc83b Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/7.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/8.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..8126c8e49 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/8.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/9.png b/microsoft_azure_sso_integration/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..87e84af79 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/9.png differ diff --git a/microsoft_azure_sso_integration/static/description/assets/screenshots/hero.gif b/microsoft_azure_sso_integration/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..f086454bb Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/assets/screenshots/hero.gif differ diff --git a/microsoft_azure_sso_integration/static/description/banner.png b/microsoft_azure_sso_integration/static/description/banner.png new file mode 100644 index 000000000..97e092dc1 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/banner.png differ diff --git a/microsoft_azure_sso_integration/static/description/icon.png b/microsoft_azure_sso_integration/static/description/icon.png new file mode 100644 index 000000000..5008828ac Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/icon.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/arrows-transparent.png b/microsoft_azure_sso_integration/static/description/images/arrows-transparent.png new file mode 100644 index 000000000..f2973bb02 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/arrows-transparent.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/cybro_logo.png b/microsoft_azure_sso_integration/static/description/images/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/cybro_logo.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/ecom.png b/microsoft_azure_sso_integration/static/description/images/icons/ecom.png new file mode 100644 index 000000000..6e720d50e Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/ecom.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/education.png b/microsoft_azure_sso_integration/static/description/images/icons/education.png new file mode 100644 index 000000000..f0de98eb0 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/education.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/hotel.png b/microsoft_azure_sso_integration/static/description/images/icons/hotel.png new file mode 100644 index 000000000..917c6a63e Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/hotel.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/manufacturing.png b/microsoft_azure_sso_integration/static/description/images/icons/manufacturing.png new file mode 100644 index 000000000..68c3722f8 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/manufacturing.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/pos.png b/microsoft_azure_sso_integration/static/description/images/icons/pos.png new file mode 100644 index 000000000..600bfe4f9 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/pos.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/restaurant.png b/microsoft_azure_sso_integration/static/description/images/icons/restaurant.png new file mode 100644 index 000000000..680acf29e Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/restaurant.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/service.png b/microsoft_azure_sso_integration/static/description/images/icons/service.png new file mode 100644 index 000000000..bfbe7a6d2 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/service.png differ diff --git a/microsoft_azure_sso_integration/static/description/images/icons/trading.png b/microsoft_azure_sso_integration/static/description/images/icons/trading.png new file mode 100644 index 000000000..a741219b5 Binary files /dev/null and b/microsoft_azure_sso_integration/static/description/images/icons/trading.png differ diff --git a/microsoft_azure_sso_integration/static/description/index.html b/microsoft_azure_sso_integration/static/description/index.html new file mode 100644 index 000000000..dabd009f7 --- /dev/null +++ b/microsoft_azure_sso_integration/static/description/index.html @@ -0,0 +1,718 @@ +
+ +
+ +
+
+ Community +
+ +
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

+ Microsoft Azure OAuth2 SSO Integration

+

+ This module is used to log in with Microsoft Azure account.

+ + + +
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ Microsoft sso integration the module allows users to authenticate and + login to the Odoo platform using their Microsoft credentials, + eliminating the need for users to remember multiple login credentials.. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Secure login with Microsoft single sign-on (SSO) +
+
+ + No need to remember password after login. +
+
+ +
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Generate Microsoft Azure credentials +

+

+ Login the azure portal and go to the azure directory. +

+ Azure Portal + +
+ +
+

+ Click on the App Registration +

+

+ +
+ +
+

+ Click on New Registration +

+

+ +
+ + +
+

+ You can get the credentials +

+

+ +
+ +
+

+ Go to Api Permissions. +

+

+ +
+ +
+

+ Click on the Add permissions +

+

+

+ + +
+ +
+

+ Click on the Client and Secret and create the secret by clicking the New client secret. +

+

+

+ + +
+ +
+

+ Created Secret for the app. +

+

+

+ +
+
+

+ On the debug mode you can get this menu. +

+

+

+ +
+
+

+ Go to the oauth provide menu. +

+

+

+ +
+
+

+ FIll the client ID and Secret. +

+

+

+ +
+
+

+ Go to the Login page. +

+

+

+ +
+
+

+ Login with the microsoft login button. +

+

+

+ +
+ +
+
+ + + +
+
+ +
+

+ Related + Products +

+
+
+
+ +
+
+ + + + +
+
+ +
+

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/microsoft_azure_sso_integration/views/auth_oauth_provider_views.xml b/microsoft_azure_sso_integration/views/auth_oauth_provider_views.xml new file mode 100644 index 000000000..c21ad9247 --- /dev/null +++ b/microsoft_azure_sso_integration/views/auth_oauth_provider_views.xml @@ -0,0 +1,21 @@ + + + + + + auth.oauth.provider.view.form.inherit.microsoft.azure.sso.integration + + auth.oauth.provider + + + + + + + + + + +