Commit graph

35 commits

Author SHA1 Message Date
Shridhar Patil
abd3333bae Token based authentication (#5752)
* token based authentication

* authentication

Basic base64encode(api_key:api_secret)
token api_key:api_secret

* test added

Validation: only user with system manager can generate the keys

* codacy issues fixed

* token based authentication

* authentication

Basic base64encode(api_key:api_secret)
token api_key:api_secret

* test added

Validation: only user with system manager can generate the keys

* codacy issues fixed

* use frappe.safe_encode

* base64 encode use frappe.safe_encode

* set frappe.local.form_dict after setting user

* removed test

* removed unused imports

* test for python 3

* Update user.js

* [user.py] throw correct error

* Update user.py
2018-07-23 11:06:29 +05:30
Makarand Bauskar
6fa9967a04 [hotfix] throw DoesNotExistError if doctype is not available on Delete api (#4013)
* [hotfix] throw DoesNotExistError if doctype is not available on Delete api

* [fixes] aded tests cases and codecy, travis fixes
2017-09-01 09:16:32 +05:30
Aditya Hase
e324406c8a Import six.moves.urllib.parse.urlencode instead of urllib.urlencode 2017-08-11 00:38:26 +05:30
Aditya Hase
375dfd601d Replaced urlparse imports with six.moves.urllib.parse (#3847) 2017-08-03 11:43:28 +05:30
Saurabh
7620bb3789 Deprecate Integration Broker (#2831)
* [fix] remove razorpay from integration service

* [fix] clean-up js side integration service dependancies

* [fix] remove integration service, .py cleanup, move integration request to integration

* [fix] move oauth to integrations and deprecate integration broker

* [fix] mark services enabled and update integrations listing

* [fix] V7.1 and V7.2 integration service related pathch fixes and move payment gateway dotype to core module

* [fix] create payment gateway records if not exists

* [fix] module page for integrations

* [minor][fix] minor checks

* [fix] remove integration broker module only if not allocated to any doctype
2017-03-14 11:24:26 +05:30
Revant Nandgaonkar
7757aaef6a [Fix] oauth url delimiter moved to function instead of global (#2305)
* [Fix] oauth url delimiter moved to function instead of global

* [Fix] renamed oauth_url_delimiter to get_url_delimiter
2016-11-14 12:05:47 +05:30
Rushabh Mehta
924510610b [fix] remove global variables in oauth 2016-11-11 14:57:13 +05:30
Rushabh Mehta
80a3a3f8f1 [fix] global variable import issue 2016-11-11 14:50:12 +05:30
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