Commit graph

1040 commits

Author SHA1 Message Date
Akhil Narang
71b869a975
refactor(keycloak): set API endpoint while getting list of oauth providers
urljoin() just adds the base URL to the relative path, here our base URL has an extra route in the path which isn't added in.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-09-19 15:31:32 +05:30
pa1narendra
42b01570ae feat(auth): added keycloak as a social login provider 2024-09-06 10:13:18 +00:00
Akhil Narang
4eac35081c
Merge pull request #26395 from barredterra/address-autocomplete
feat: address autocomplete dialog
2024-09-06 15:04:01 +05:30
Akhil Narang
8c099ced74 chore: update message
(cherry picked from commit 4e6581b0fc9006bdf3e869565ec59727556972c1)
2024-09-05 10:02:47 +00:00
Türker Tunalı
733edd2ffd fix: Enhance the error message of the connected app authorization.
Error were "Invalid state". The reason was user who created the token. So we've added a little bit more context here.

(cherry picked from commit 4ad55b98c28d4c342808d166e7c124b89729607e)
2024-09-05 10:02:46 +00:00
Raffael Meyer
594b0a2536
Merge branch 'develop' into address-autocomplete 2024-08-28 11:14:43 +02:00
Gursheen Kaur Anand
beef1fa224
fix: use authentication url when password not found (#27451) 2024-08-20 10:40:38 +02:00
Akhil Narang
fc12e46171
Merge pull request #27188 from blaggacao/chore/adapt-webhook-preview
chore: adapt webhook preview
2024-08-12 13:34:03 +05:30
David
ac0e46669d
fix: spec preview fields statically on the frontend 2024-08-09 13:50:41 +02:00
Arun
ae3f8f455b fix: http to https for url 2024-07-29 13:53:25 +05:30
David
9ed2271d12
chore: adapt webhook preview 2024-07-22 16:26:21 +02:00
ALB.Leach
dde466be3d
feat: Implement OAuth Backend App Flow for Email Accounts (#27167)
* feat: Implement OAuth Backend App Flow for Email Accounts

* chore: Reformat to satisfy linter

* chore: format

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2024-07-22 16:47:18 +05:30
Arun Mathai S.K.
02c680e68d
fix: migrate-to now works (#27115)
* chore : migrat-to pre check url

* feat: migrate-to now works

* fix: unecessary context

* chore: remove commented code
2024-07-18 10:27:20 +05:30
Suraj Shetty
acd41b2d8c
Merge pull request #26797 from s-aga-r/fm-connector
feat: Frappe Mail Connector
2024-07-11 16:22:43 +05:30
s-aga-r
2488642746 chore: connected app - show title in link field 2024-07-05 08:28:20 +05:30
barredterra
c5d6030654 feat: disable "Create Address" button if mandatory fields are missing 2024-06-22 16:05:16 +02:00
barredterra
f6c4c94f70 feat: add HERE as geolocation provider 2024-06-22 15:40:11 +02:00
mergify[bot]
521c6c1bad
Merge branch 'develop' into address-autocomplete 2024-06-12 16:01:30 +00:00
Akhil Narang
152c4d4b91
fix(make_request): don't blindly try to check the content-type
Ensure that the response has one first

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-06-03 18:28:22 +05:30
barredterra
3933725c6e feat: add Nomatim as geolocation provider 2024-05-19 22:02:59 +02:00
barredterra
97db7aa64b refactor: return generator 2024-05-19 21:37:43 +02:00
barredterra
531b177c91 refactor: rename to Geolocation Settings 2024-05-19 20:51:58 +02:00
barredterra
5293195179 refactor: provider naming 2024-05-09 22:57:32 +02:00
barredterra
1520888f79 fix: API Key label 2024-05-09 22:32:02 +02:00
barredterra
a1aa86589f fix: limit to five results, remove outdated comment 2024-05-09 22:31:49 +02:00
barredterra
388046491e fix: return structured result from provider 2024-05-09 22:08:12 +02:00
barredterra
7a45c76da2 fix(Address Autocomplete Settings): provider and API Key mandatory if enabled 2024-05-09 22:06:55 +02:00
barredterra
9880d9466f Merge branch 'develop' into address-autocomplete 2024-05-09 20:58:07 +02:00
Akhil Narang
19b696acf6
fix(integrations): add back response.raise_for_status()
It got removed in 59ca074780, however it
should still be here, the point of that commit was to fix other
behaviour, don't exactly remember why it was removed.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-05-08 15:14:41 +05:30
David
f9cdcfb7af
feat: allow linking of request http errors 2024-05-06 13:18:33 +02:00
mahsem
076e25658b
style: whitespace in social_login_key.json (#26317) 2024-05-04 17:11:04 +05:30
Raffael Meyer
42be1455f8
fix(oauth2): refresh token is optional (#26266)
Don't overwrite refresh_token with an empty string, if no new refresh_token is received (i.e. the old one is still valid).

Ref: https://www.rfc-editor.org/rfc/rfc6749#section-5.1
2024-05-01 12:35:58 +05:30
Ankush Menat
ae4eb87458 feat: Limit OAuth Client by roles 2024-04-29 14:18:49 +05:30
Ankush Menat
4c85c2038b fix: response logging
if response is 4xx then `Response` object itself is getting logged,
which is stupid. This is because of `res and res.text` and res is falsy
if response is not "OK".
2024-04-18 14:00:37 +05:30
Ankush Menat
535bc10340
fix: make letterhead attachments public by default (#25925)
Also does it for web page.

Note: This is just default config, users can change while uploading.
2024-04-12 05:14:18 +00:00
barredterra
57d7b9ca40 feat: address autocomplete (first draft) 2024-04-10 01:23:23 +02:00
David
39d4318a27
feat: enable db socket connection 2024-03-29 10:29:50 +01:00
Ankush Menat
672f3b2258 refactor!: sort by creation for clearing old logs 2024-03-27 13:04:01 +05:30
Ankush Menat
3896296c6f fix: update sort order in doctypes 2024-03-27 11:18:28 +05:30
Akhil Narang
2af42f5501
fix(webhook): r is referenced here before its initialized
Broke in #21064

Sentry: FRAPPE-2SH

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-22 18:59:02 +05:30
Ankush Menat
e47e76897a
fix: notify on failed s3 backup upload (#25544) 2024-03-19 15:50:37 +00:00
Ankush Menat
0a81407304
perf: Skip running webhook code if method is not supported (#25498)
E.g. `doc.run_method("autoname")` triggers webhook code for no reason.
2024-03-18 10:01:15 +05:30
Ankush Menat
b1a8bc9312
fix: Export None as type if select as no options (#25211)
Select options can be dynamic, in that case we should at least the
default value `None` as a value `DF.Literal` otherwise is invalid type
annotation.
2024-03-04 06:42:41 +00:00
Rucha Mahabal
82179f908d
Merge pull request #24114 from tanmoysrt/integrate_frappe_notification
feat: add frappe push notification client
2024-02-28 11:27:57 +05:30
Rucha Mahabal
8305affddd chore: Add Push Notification Settings to Integrations workspace 2024-02-28 11:07:22 +05:30
Rucha Mahabal
2e79f6acb4 feat: add descriptions to Push Notification Settings
- mark it as beta

- validate relay server url key
2024-02-28 01:09:46 +05:30
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Akhil Narang
59ca074780
fix: only try JSON if content-type says so (#24936)
Keep NoneType as the fallback

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 15:29:22 +05:30
prafful1234
d66fe5a037
feat: Queue selection for webhooks (#24876)
* feat: Queue selection for webhooks

* fix: code refactor

* fix: Add authorization check for get_all_queues

* fix(UX): move field to relevant section

* refactor: rename field for queue

* refactor: simpler autocomplete

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2024-02-19 06:31:30 +00:00
Raffael Meyer
fc64e8a0fb
feat: pass doctype as context when translating label (#24903) 2024-02-18 19:42:15 +05:30