Commit graph

27 commits

Author SHA1 Message Date
Revant Nandgaonkar
d48b270bf5 OAuth 2 Provider for frappe (#2167)
* OAuth 2.0 Classes Added

Added oauthlib in requirement.txt
Added class WebApplicationServer for Authorization code grant and Bearer tokens.
Added class OAuthWebRequestValidator for Validating Oauth Request for Web Application

* copied code from mnt_oauth needs review

* [New] OAuth2 Doctypes and endpoints added

Integrations > OAuth Provider Settings
Integration Broker > OAuth Bearer Token
Integration Broker > OAuth Authorization Code
Integration Broker > OAuth Client
endpoints for authorize, approve, get_token, revoke_token and test_resource

* oauth2.py: renamed skipauth to skip_auth

* [Fix] Parse URL instead of storing it in settings

* [Fix] get skip_auth from OAuth Provider Settings

* Success URL format. Failure URL added. Confirmation dialog layout changed.

* Validate access token if passed during use of REST API

* OAuth Confirmation colours fixed

* Multiple Changes

Added links for OAuth under Integrations in Module list.
Updated permissions on OAuth doctypes.
Updated layout of OAuth Client doctype.

* [Docs] Integrations > How to setup OAuth

* [Docs] Integration > Using OAuth

* [Fix] get_token endpoint must to handle POST request

* [Fix] http verbs and responses for OAuth 2.0 Endpoints

* [Fix] accept oauth2 access_token from headers

* Removed unused imports from api.py
2016-10-25 10:28:32 +05:30
Rushabh Mehta
74919b99a0 [enhancement] remember list settings - sort, filters, paging 2016-05-30 18:19:47 +05:30
Pratik Vyas
422668a67f Async 2015-07-24 10:07:24 +05:30
Anand Doshi
98958334b5 Merge pull request #1026 from pdvyas/limit-page-length
limit page length to 20 by default only for api requests
2015-03-03 15:45:49 +05:30
Anand Doshi
2995f02f3b Web Notes to Frappe, better alerts, css fixes, fixed splash 2015-03-03 15:09:34 +05:30
Anand Doshi
f6cdd4a655 Merge remote-tracking branch 'frappe/develop' into v5.0
Conflicts:
	frappe/__version__.py
	frappe/core/doctype/communication/communication.py
	frappe/core/page/desktop/desktop.js
	frappe/hooks.py
	frappe/translations/ar.csv
	frappe/translations/es.csv
	frappe/translations/fr.csv
	frappe/translations/hr.csv
	frappe/translations/id.csv
	frappe/translations/ja.csv
	frappe/translations/nl.csv
	frappe/translations/pl.csv
	frappe/translations/pt-BR.csv
	frappe/translations/ru.csv
	frappe/translations/tr.csv
	frappe/translations/zh-cn.csv
	frappe/translations/zh-tw.csv
	frappe/utils/email_lib/html2text.py
	setup.py
2015-02-24 18:06:16 +05:30
Anand Doshi
f3b37df2dd [fix] Added unicode_literals if missing in py files 2015-02-24 12:24:20 +05:30
Pratik Vyas
b6e9b9b7ca limit page length to 20 by default only to api requests 2015-02-22 16:30:42 +05:30
Rushabh Mehta
f96fb3a7d6 [docs] fixes and updates 2015-02-13 16:10:47 +05:30
Anand Doshi
ce9e3ed931 Remove flags in frappe.call, api, run_method, filter moduleview items by permission 2015-02-10 18:56:28 +05:30
Rushabh Mehta
e7c4e4ef13 Merge branch 'item-variants' into v5.0
Conflicts:
	frappe/api.py
	frappe/core/doctype/custom_field/custom_field.json
	frappe/core/doctype/customize_form_field/customize_form_field.json
2014-09-29 12:33:28 +05:30
Rushabh Mehta
5a0a9aac66 [refactor] frappe.widgets > frappe.desk 2014-09-29 12:21:12 +05:30
Rushabh Mehta
575ec0015a [api] added frappe.client.get_list 2014-09-26 18:53:37 +05:30
Anand Doshi
1674a2d6f1 [fixes] api - pop run_method from form_dict 2014-08-06 16:39:54 +05:30
Anand Doshi
c9610025e1 [minor] removed doc.update for delete in api.py 2014-07-28 16:39:39 +05:30
Hassan
ce6b83a215 Fix for api.py
Now understands doc name with '/' in it.
Also stop updating docs to be deleted.
2014-07-28 16:39:38 +05:30
Anand Doshi
484191754a Whitelisting of controller methods 2014-05-05 17:51:38 +05:30
Pratik Vyas
276877a753 API doesn't depend on client.py anymore 2014-05-05 07:57:07 +05:30
Rushabh Mehta
cfec573e77 more message fixes for translation 2014-04-15 22:54:11 +05:30
Nabin Hait
044ff32a94 frappe/frappe#478 fixes 2014-04-07 12:03:00 +05:30
Rushabh Mehta
5d4e39bef6 frappe/frappe#478, more changes, removed bean 2014-04-03 14:30:49 +05:30
Rushabh Mehta
7bef30b270 frappe/frappe#478 2014-03-28 16:52:23 +05:30
Rushabh Mehta
0a43add3d3 few minor fixes 2014-03-13 18:41:13 +05:30
Anand Doshi
d2f6905815 Handler response: each type of handler will create its own response 2014-03-13 13:04:25 +05:30
Anand Doshi
3444dd4a38 Refactored handler, catch exceptions, response codes and build response from app.py 2014-03-12 19:04:22 +05:30
Anand Doshi
edbadc18b2 Changed frappe.conn to frappe.db 2014-02-26 12:35:02 +05:30
Rushabh Mehta
024ddfcc5b -webnotes +frappe 💥 2014-02-14 14:55:11 +05:30