Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
added portal auth module
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamg9 committed Feb 8, 2024
1 parent 9494d9e commit 5d3e747
Show file tree
Hide file tree
Showing 15 changed files with 535 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website
args: ["https://github.com/OpenG2P/openg2p-auth"]
args: ["https://openg2p.org"]
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Available addons
addon | version | maintainers | summary
--- | --- | --- | ---
[g2p_auth_id_oidc](g2p_auth_id_oidc/) | 15.0.1.2.0 | | G2P Auth: OIDC - Reg ID
[g2p_portal_auth](g2p_portal_auth/) | 15.0.1.2.0 | | G2P Portal Auth

[//]: # (end addons)

Expand Down
3 changes: 0 additions & 3 deletions g2p_auth_id_oidc/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion g2p_auth_id_oidc/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "15.0.1.2.0",
"sequence": 1,
"author": "OpenG2P",
"website": "https://github.com/OpenG2P/openg2p-auth",
"website": "https://openg2p.org",
"license": "Other OSI approved licence",
"development_status": "Alpha",
"depends": ["auth_oidc", "g2p_registry_base"],
Expand Down
57 changes: 57 additions & 0 deletions g2p_portal_auth/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
===============
G2P Portal Auth
===============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3c6142caba8c92d08be8ad12392e724abf382bb6bcf08ce9e2b8f49d9900faba
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/github-OpenG2P%2Fopeng2p--auth-lightgray.png?logo=github
:target: https://github.com/OpenG2P/openg2p-auth/tree/15.0-develop/g2p_portal_auth
:alt: OpenG2P/openg2p-auth

|badge1| |badge2|

G2P Portal Auth

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OpenG2P/openg2p-auth/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 welcomed
`feedback <https://github.com/OpenG2P/openg2p-auth/issues/new?body=module:%20g2p_portal_auth%0Aversion:%2015.0-develop%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* OpenG2P

Maintainers
~~~~~~~~~~~

This module is part of the `OpenG2P/openg2p-auth <https://github.com/OpenG2P/openg2p-auth/tree/15.0-develop/g2p_portal_auth>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions g2p_portal_auth/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions g2p_portal_auth/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Part of OpenG2P Registry. See LICENSE file for full copyright and licensing details.
{
"name": "G2P Portal Auth",
"category": "G2P",
"version": "15.0.1.2.0",
"sequence": 1,
"author": "OpenG2P",
"website": "https://openg2p.org",
"license": "Other OSI approved licence",
"development_status": "Alpha",
"depends": ["auth_oidc"],
"data": [
"views/auth_oauth_provider.xml",
],
"assets": {
"web.assets_backend": [],
"web.assets_qweb": [],
},
"demo": [],
"images": [],
"application": False,
"installable": True,
"auto_install": False,
}
1 change: 1 addition & 0 deletions g2p_portal_auth/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import auth_oauth_provider
12 changes: 12 additions & 0 deletions g2p_portal_auth/models/auth_oauth_provider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from odoo import fields, models


class G2PSelfServiceOauthProvider(models.Model):
_inherit = "auth.oauth.provider"

g2p_self_service_allowed = fields.Boolean(
"Allowed in Self Service Portal", default=False
)
g2p_service_provider_allowed = fields.Boolean(
"Allowed in Service Provider Portal", default=False
)
1 change: 1 addition & 0 deletions g2p_portal_auth/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
G2P Portal Auth
Binary file added g2p_portal_auth/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5d3e747

Please sign in to comment.