appwrite 28.0.0 → 28.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +1 -1
- data/lib/appwrite/services/account.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e15cd2c962b2b82ef5d5c50f34ead2b2a377effbe51a369b60a9139b17c02bd6
|
|
4
|
+
data.tar.gz: e9b8cf19f745d77069fe5b0eaaa3300a4ef5b087e48f2e4d3386c4072f06ee42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6ff3376532ad00e55b4591013679415df9b34794df9d478aae4df0912686e8a6175e70d3edeb230516ff50e0567cf81607357a6ac75baf578b2bb64439a93bf
|
|
7
|
+
data.tar.gz: 7bb52f4c1aa74c69c0799124e180ae5b4a1582d53b51aace26c101d77ca61f1d327c25eca6e00d327ec82af9af7be6ecfe8071aff1005db077a878d3b47b9e68
|
data/lib/appwrite/client.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Appwrite
|
|
|
14
14
|
'x-sdk-name' => 'Ruby',
|
|
15
15
|
'x-sdk-platform' => 'server',
|
|
16
16
|
'x-sdk-language' => 'ruby',
|
|
17
|
-
'x-sdk-version' => '28.
|
|
17
|
+
'x-sdk-version' => '28.1.0',
|
|
18
18
|
'X-Appwrite-Response-Format' => '2.0.0'
|
|
19
19
|
}
|
|
20
20
|
@endpoint = 'https://cloud.appwrite.io/v1'
|
|
@@ -1554,13 +1554,15 @@ module Appwrite
|
|
|
1554
1554
|
# @param [String] success URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
1555
1555
|
# @param [String] failure URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
|
|
1556
1556
|
# @param [Array] scopes A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
|
|
1557
|
+
# @param [String] state An opaque value your app generates and keeps, for example in a cookie. It is returned unchanged as the `state` query parameter on the success and failure URLs, so your app can check that the sign-in it receives is one it started. Printable ASCII only (RFC 6749 Appendix A.5). Max length: 256 chars.
|
|
1557
1558
|
#
|
|
1558
1559
|
# @return []
|
|
1559
1560
|
def create_o_auth2_token(
|
|
1560
1561
|
provider:,
|
|
1561
1562
|
success: nil,
|
|
1562
1563
|
failure: nil,
|
|
1563
|
-
scopes: nil
|
|
1564
|
+
scopes: nil,
|
|
1565
|
+
state: nil
|
|
1564
1566
|
)
|
|
1565
1567
|
api_path = '/account/tokens/oauth2/{provider}'
|
|
1566
1568
|
.gsub('{provider}', provider)
|
|
@@ -1573,6 +1575,7 @@ module Appwrite
|
|
|
1573
1575
|
success: success,
|
|
1574
1576
|
failure: failure,
|
|
1575
1577
|
scopes: scopes,
|
|
1578
|
+
state: state,
|
|
1576
1579
|
}
|
|
1577
1580
|
|
|
1578
1581
|
api_headers = {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appwrite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 28.
|
|
4
|
+
version: 28.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Appwrite Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mime-types
|