$ 85.32
Availability |
Odoo Online
Odoo.sh
On Premise
|
Community Apps Dependencies | Show |
Lines of code | 764 |
Technical Name |
ekika_oauth2_provider |
License | OPL-1 |
Website | https://ekika.co |
Versions | 17.0 16.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Community Apps Dependencies | Show |
Lines of code | 764 |
Technical Name |
ekika_oauth2_provider |
License | OPL-1 |
Website | https://ekika.co |
Versions | 17.0 16.0 |
OAuth2 Provider
Introduction
Our OAuth 2.0 provider product offers a robust and scalable solution for implementing secure authorization in applications. It enables seamless integration, allowing third-party services to access user data with fine-grained permissions while maintaining the highest standards of privacy and authentication. Our product simplifies the implementation of OAuth 2.0, providing developers with a reliable and customizable solution for enhancing the security of their applications.
We provide four different types Grant Type:
Authorization Code Grant: Ideal for web applications, this flow involves obtaining an authorization code that is exchanged for an access token, enhancing security by keeping sensitive information confidential.
Implicit Grant: Suited for browser-based applications, this flow directly issues access tokens to clients after user authentication, simplifying the process but requiring careful consideration of security implications.
Resource Owner Password Credentials Grant: Allows clients to directly exchange user credentials for an access token, making it suitable for trusted clients but less preferable due to potential security risks.
Client Credentials Grant: Designed for machine-to-machine authentication, this flow enables direct exchange of client credentials for an access token, ensuring efficient authorization between services without involving user credentials.
How It Works:
Authorization Code Grant:
Note: For Authorization Code Grant, You Have To Define Controller at client-side for callback URL. Consider Sample Code Below Or you can use our odoo module which provide authorization code grant flow: https://apps.odoo.com/apps/modules/17.0/api_auth_oauth2/
@http.route('/cb', methods=['GET'], type='http', auth='none', save_session=False, csrf=False)
def oauth2_client_callback(self, **kwargs):
"""
This is for client, testing purpose
"""
if 'error' in kwargs:
= {
error 'error': kwargs['error']
}return Response(json.dumps(error), status=400)
= '<your client id>'
client_id = '<your client secret>'
client_secret = 'https://easyapi.ekika.app/cb'
redirect_uri = ['read','write','create','delete']
scope = OAuth2Session(client_id, redirect_uri=redirect_uri)
oauth = oauth.fetch_token(
token 'https://oauth-provider.ekika.app/oauth2/token',
=request.httprequest.url, include_client_id=True)
authorization_response# Note: token['scope'] responded as list ["read", "write", "create", "delete"]
# but client has to store string of space saperated like "read write create delete"
return Response(json.dumps(token), status=200)
Implicit Grant:
Resource Owner Password Credential Grant:
Client Credential Grant:
Refresh Access Token:
Token Revocation:
Screenshots
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module