Commit graph

16 commits

Author SHA1 Message Date
Revant Nandgaonkar
a16e6a143f OpenID Connect for Frappe (#2227)
* Add field for client_secret in Oauth Client Doctype

* openid_profile endpoint in oauth2.py

* added stub methods for OpenID Connect in RequestValidator

* [Fix] using werkzeug url_fix on uri

* added 3 oidc methods in RequestValidator

* Added Frappe Section in Social Login Keys

Add section in `Social Login Keys` for fields `Frappe Client ID` and `Frappe Client Secret` and additional field Frappe OAuth 2 Server because github, facebook and google have fixed urls, Frappe server URL can change as per the hosting domain/server/company

* [Fix] accept code id_token param for oidc

* generate id_token jwt alg HS256

* Updates to OAuth 2 and OIDC

`OAuth Authorization Code` and `OAuth Bearer Token` DocType made RO
Delete Invalid Codes and Revoked Tokens periodically
generate and send `id_token` only if scope of token is `openid`

* [Fix] Periodically delete revoked tokens

* Social Logins untested

* Enabled Frappe social login

* [Docs] OpenID Connect and Frappe social login

* [Fix] Allow multiple scopes for OAuth 2

* [Docs] Added screenshot steps to configure openid and frappe social login

* saved doctype to solve merge conflict

* [fix] re-added client_secret after resolving merge conlict

* [Fix] frappe_userid and default scope
2016-11-07 22:25:11 +05:30
Nabin Hait
f9f203dcb6 Fixed version conflict 2016-10-26 16:43:31 +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
Rohit Waghchaure
be0d83ed81 [Documentation] Fixed images in how to make report 2016-10-24 17:09:47 +05:30
Rushabh Mehta
9353303be6 Exporting Customizations docs and other minor fixes (#2136)
* [fix] email alert in sync

* [fixes] web form mandatory and docs for exporting customizations
2016-10-03 12:18:57 +05:30
Rushabh Mehta
8899a46faa [enhance] added roles for portal users #2091 (#2093)
* [enhance] added roles for portal users #2091

* [fix] test

* [fix] make default roles have desk access
2016-09-23 21:44:20 +05:30
Pawan Mehta
5d3abf7df5 [docs] fix images for query report 2016-08-17 14:18:23 +05:30
Valmik Jangla
0d3a5be28e Added docs for limits 2016-07-27 17:45:33 +05:30
Rushabh Mehta
fe3cbef407 [fix] documentation 2016-06-27 14:54:56 +05:30
Rushabh Mehta
349a65402f [website] fixes for generating docs 2016-06-23 18:22:03 +05:30
Valmik Jangla
4d45ade05b Added Bench Documentation 2016-04-27 02:48:03 -07:00
Rushabh Mehta
d0c2e57e1f [translation] moved Translation DocType from erpnext 2016-03-02 14:50:11 +05:30
Valmik Jangla
f627986fe0 Fixed spelling mistakes
Made some sentences clearer
Changed desk image
2016-02-15 17:36:25 +05:30
Anand Doshi
a60248964f [docs] fetch a field value from a document into a transaction 2016-01-06 13:24:32 +05:30
Anand Doshi
f4a27b6475 [docs] drop shadow in fake browser frame and darkened the top 2015-12-08 12:59:18 +05:30
Rushabh Mehta
02f39bf71a [docs] added docs first-cut 2015-10-29 18:46:04 +05:30