seitime-frappe/frappe
Revant Nandgaonkar 02aa7b6f41 Social login refactor (#4519)
* Added DocType Social Login Key

WIP for https://github.com/frappe/frappe/issues/4496
added basic fields
after_insert add provider_username and provider_userid fields on User dt
on_trash deletes added fields on User dt

* Added field to store fontawesome icon for provider

* [Patch] Social Login Keys to Social Login Key

* [Patch] Social Login Keys to Social Login Key

* Social Login Key generates boilerplate

* patch fixed for social_login_refactor

* removed patch-not working

* use social login keys to initiate flow

* Login page shows Social Login Key

* show login via if base_url present

* removed boilerplate generator

* Multiple Changes

fix zxcvbn import in password_strength.py
use of child table instead of additional fields on user dt to store username and userid

* Fetched Template on Client JS

* Frappe social login template working

* Added Social Login Key Templates

* Codacy fixes and validate social login key urls

* [Patch] Social Login Keys (untested)

* [Fix] Patch refactor social login keys

* [Fix] Patch refactor_social_login_keys manually tested

* Refactor OAuth 2.0 related changes for Social Login Key

* [Fix] Patch refactor social login keys

* Test - Adding Frappe Social Login Key

* Social Login Key Tests

check added child table entry on user for provider frappe
it also checks if userid is created

* [WIP] Office 365 Social Login Key Template

* [Fix] Social Login - Redirect URL

* [Test] Single sign-on icons for added provider

* [Fix] Codacy Errors

* [Fix] Social Login Key Form JS

* Docs Added for Social Login Key

* [Fix] Patch Refactor Social Login Keys

* Handle different icon types

Handle different icon types (image, icon, emoji) with just icon field

* Move the login methods to a new py file

frappe.integrations.oauth2_logins added
copied whitelisted guest oauth2 redirect endpoints from login.py
removing the functions from login.py will break backward compatibility

* Social Login Key Form Changes

Moved Enable field to top
Fields which are not editable are collapsed

* [Fix] Codacy Errors

* Corrected Docs, sync.py

* [Docs] Adding a social login provider

* [Fix] set frappe userid from User Social Login

* [Fix] frappe userid in oauth.py

* removed icon_type

* Use frappe.utils.is_image
2018-01-03 14:57:16 +05:30
..
change_log Version 10 change log 2017-12-26 14:31:14 +05:30
chat Supressing Chat Profile test cases for now, fixed frappe-chat-toggle on navbar 2017-12-29 10:56:17 +05:30
commands minor print error fix 2018-01-02 21:06:43 +05:30
config Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
contacts Merge branch 'master' into develop 2017-12-25 13:30:48 +05:30
core Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
custom [fix] customize_form.py https://discuss.erpnext.com/t/delivery-note-appears-as-delivery-chalan-on-erpnext-cloud/30589 2017-11-14 15:28:28 +05:30
data [fix] add restrict_to_domain in Framework.sql 2017-09-22 14:50:02 +05:30
data_migration [Bug] fixed install failure due to psycopg2 (#4566) 2017-12-01 14:59:54 +05:30
desk Merge branch 'master' into develop 2018-01-02 12:11:29 +05:30
docs Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
email Fix email_alert test (#4620) 2017-12-18 12:55:45 +05:30
geo Add New Currency - XCD (#4660) 2017-12-25 13:39:48 +05:30
integrations Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
model Remove get_count method, use the same db_query method for count (#4736) 2018-01-02 17:55:51 +05:30
modules Fix the customization (#4704) 2018-01-02 11:56:17 +05:30
patches Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
printing Fixes for align labels right 2017-09-14 12:25:21 +05:30
public Merge pull request #4741 from achillesrasquinha/dialog-fix 2018-01-02 19:55:24 +05:30
templates Align percentage values to the right (#4738) 2018-01-02 12:12:12 +05:30
tests Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
translations [Translation] Updated Translations (#4696) 2017-12-28 12:32:58 +05:30
utils Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
website 🎉 NEW Frappe Chat (#4612) 2017-12-28 18:58:43 +05:30
workflow [Fix] Workflow ui test dependency (#4421) 2017-11-03 13:37:48 +05:30
www Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
__init__.py bumped to version 10.0.6 2018-01-02 12:41:29 +06:00
api.py [hotfix] throw DoesNotExistError if doctype is not available on Delete api (#4013) 2017-09-01 09:16:32 +05:30
app.py Handle content_type application/json in request 2017-12-17 00:31:11 +05:30
async.py 🎉 NEW Frappe Chat (#4612) 2017-12-28 18:58:43 +05:30
auth.py Moved feed from Communication to Activity Log (#4435) 2017-11-21 15:46:51 +05:30
boot.py [hotfix] ignore the disabled reports in sidebar Reports section (#4200) 2017-09-28 12:12:16 +05:30
build.js 🎉 NEW Frappe Chat (#4612) 2017-12-28 18:58:43 +05:30
build.py [BUG] fixed, changed to --restore, reset is a flag for test_runner 2017-09-26 15:44:04 +05:30
client.py [minor] better message on permission 2017-10-16 10:18:56 +05:30
database.py Pure Python MySQL instead mysqlclient (with Python C API) (#4280) 2017-11-06 16:42:01 +05:30
defaults.py [fix] locking for set_default (#4245) 2017-10-04 15:29:16 +05:30
exceptions.py Pure Python MySQL instead mysqlclient (with Python C API) (#4280) 2017-11-06 16:42:01 +05:30
frappeclient.py Data Migration Tool (for hub) (#4144) 2017-10-05 11:15:35 +05:30
handler.py Merge branch 'master' into staging 2017-08-24 16:51:28 +05:30
hooks.py Fix ERPNext #12234 (#4709) 2017-12-29 11:18:33 +05:30
installer.py [minor] setup wizard fixes 2017-07-20 15:54:34 +05:30
limits.py Merge branch 'develop' into fix-urlencode 2017-08-11 13:01:24 +05:30
middlewares.py [website] route caching, bye bye sidebar, navbar search, blog cleanup 2015-03-12 16:31:14 +05:30
migrate.py [fix] patches 2017-03-08 11:57:33 +05:30
modules.txt 🎉 NEW Frappe Chat (#4612) 2017-12-28 18:58:43 +05:30
oauth.py Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
patches.txt Social login refactor (#4519) 2018-01-03 14:57:16 +05:30
permissions.py Convert dict.items() to list for modifying dict while looping 2017-09-04 16:05:57 +05:30
pythonrc.py Web Notes to Frappe, better alerts, css fixes, fixed splash 2015-03-03 15:09:34 +05:30
sessions.py Moved feed from Communication to Activity Log (#4435) 2017-11-21 15:46:51 +05:30
share.py delete references of deprecated chat 2017-12-29 10:08:15 +05:30
test_runner.py 🎉 NEW Frappe Chat (#4612) 2017-12-28 18:58:43 +05:30
translate.py remove print statements (#4650) 2017-12-18 17:44:10 +05:30
twofactor.py [fix] Header for sms send request (#4417) 2017-11-03 16:20:53 +05:30