Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ client.set_project('<YOUR_PROJECT_ID>') # Your project ID
project = Project(client)

result: ProjectModel = project.update_passkey_policy(
rp_id = '<RP_ID>', # optional
origins = [] # optional
rp_id = '<RP_ID>'
)

print(result.model_dump())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const client = new Client()
const project = new Project(client);

const result = await project.updatePasskeyPolicy({
rpId: '<RP_ID>', // optional
origins: [], // optional
rpId: '<RP_ID>',
});

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Client client = Client()
Project project = Project(client);

Project result = await project.updatePasskeyPolicy(
rpId: '<RP_ID>', // (optional)
origins: [], // (optional)
rpId: '<RP_ID>',
);
```
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ Client client = new Client()
Project project = new Project(client);

Appwrite.Models.Project result = await project.UpdatePasskeyPolicy(
rpId: "<RP_ID>", // optional
origins: new List<string>() // optional
rpId: "<RP_ID>"
);

```
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ func main() {
service := project.New(client)

response, err := service.UpdatePasskeyPolicy(
service.WithUpdatePasskeyPolicyRpId("<RP_ID>"),
service.WithUpdatePasskeyPolicyOrigins([]string{"example"}),
"<RP_ID>",
)
fmt.Println(response, err)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
```graphql
mutation {
projectUpdatePasskeyPolicy(
rpId: "<RP_ID>",
origins: []
rpId: "<RP_ID>"
) {
_id
_createdAt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ Client client = new Client()
Project project = new Project(client);

project.updatePasskeyPolicy(
"<RP_ID>", // rpId (optional)
List.of(), // origins (optional)
"<RP_ID>", // rpId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ val client = Client()
val project = Project(client)

val response = project.updatePasskeyPolicy(
rpId = "<RP_ID>", // optional
origins = listOf() // optional
rpId = "<RP_ID>"
)
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const client = new sdk.Client()
const project = new sdk.Project(client);

const result = await project.updatePasskeyPolicy({
rpId: '<RP_ID>', // optional
origins: [], // optional
rpId: '<RP_ID>',
});
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ $client = (new Client())
$project = new Project($client);

$result = $project->updatePasskeyPolicy(
rpId: '<RP_ID>', // optional
origins: [] // optional
rpId: '<RP_ID>'
);
```
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ client.set_key('<YOUR_API_KEY>') # Your secret API key
project = Project(client)

result: ProjectModel = project.update_passkey_policy(
rp_id = '<RP_ID>', # optional
origins = [] # optional
rp_id = '<RP_ID>'
)

print(result.model_dump())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ X-Appwrite-Response-Format: 2.4.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

{
"rpId": "<RP_ID>",
"origins": []
"rpId": "<RP_ID>"
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ client = Client.new
project = Project.new(client)

result = project.update_passkey_policy(
rp_id: '<RP_ID>', # optional
origins: [] # optional
rp_id: '<RP_ID>'
)
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let project = Project::new(&client);

let result = project.update_passkey_policy(
Some("<RP_ID>"), // optional
Some(vec![]) // optional
"<RP_ID>"
).await?;

let _ = result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ let client = Client()
let project = Project(client)

let project = try await project.updatePasskeyPolicy(
rpId: "<RP_ID>", // optional
origins: [] // optional
rpId: "<RP_ID>"
)

```
74 changes: 30 additions & 44 deletions specs/2.4.x/open-api3-2.4.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -4813,8 +4813,7 @@
"scope": "sessions.write",
"platforms": [
"console",
"client",
"server"
"client"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -4894,8 +4893,7 @@
"scope": "sessions.write",
"platforms": [
"console",
"client",
"server"
"client"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -5262,8 +5260,7 @@
"scope": "sessions.write",
"platforms": [
"console",
"client",
"server"
"client"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -7787,8 +7784,7 @@
"scope": "account",
"platforms": [
"console",
"client",
"server"
"client"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -7859,8 +7855,7 @@
"scope": "public",
"platforms": [
"console",
"client",
"server"
"client"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -14285,9 +14280,7 @@
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "avatars.write",
"platforms": [
"console",
"client",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -14352,9 +14345,7 @@
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "avatars.write",
"platforms": [
"console",
"client",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -50760,8 +50751,7 @@
"rate-key": "url:{url},ip:{ip}",
"scope": "providers.write",
"platforms": [
"console",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -50857,8 +50847,7 @@
"rate-key": "url:{url},ip:{ip}",
"scope": "providers.write",
"platforms": [
"console",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -83250,8 +83239,7 @@
"rate-key": "url:{url},ip:{ip}",
"scope": "project.oauth2.write",
"platforms": [
"console",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -84785,8 +84773,7 @@
"rate-key": "url:{url},ip:{ip}",
"scope": "project.oauth2.write",
"platforms": [
"console",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -85109,8 +85096,7 @@
"rate-key": "url:{url},ip:{ip}",
"scope": "project.oauth2.write",
"platforms": [
"console",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -87923,7 +87909,7 @@
"tags": [
"project"
],
"description": "Configure the relying party passkeys are bound to. The relying party ID is the domain of your application, and origins are the exact web origins allowed to register and sign in with passkeys. Passkeys stay unavailable until both are set and the passkey auth method is enabled. The relying party ID cannot change while users have passkeys, and any change invalidates ceremonies in progress.",
"description": "Set the relying party ID passkeys are bound to: the domain of your application. Passkeys work on the project's web platforms on that domain or its subdomains, and on the domain itself for Apple apps. A localhost web platform enables passkeys for local development without a relying party ID. The relying party ID cannot change while users have passkeys, and any change invalidates ceremonies in progress.",
"responses": {
"200": {
"description": "Project",
Expand Down Expand Up @@ -87976,18 +87962,14 @@
"type": "object",
"properties": {
"rpId": {
"description": "Relying party ID: the domain of your application, such as `example.com`. Use `localhost` for local development.",
"description": "Relying party ID: the domain of your application, such as `example.com`. Use `localhost` for local development, or an empty string to unset it.",
"type": "string",
"example": "<RP_ID>"
},
"origins": {
"description": "Web origins allowed to use passkeys, such as `https:\/\/example.com` or `https:\/\/app.example.com`. Each must be HTTPS on the relying party ID or one of its subdomains, without a path. HTTP is only allowed for `localhost`. Maximum of 10 origins.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"required": [
"rpId"
]
}
}
}
Expand Down Expand Up @@ -88250,8 +88232,7 @@
"project.policies.write"
],
"platforms": [
"console",
"server"
"console"
],
"packaging": false,
"public": true,
Expand Down Expand Up @@ -144211,22 +144192,26 @@
"$id": {
"type": "string",
"description": "Policy ID.",
"example": "password-dictionary"
"example": "password-dictionary",
"default": ""
},
"rpId": {
"type": "string",
"description": "Relying party ID passkeys are bound to. Empty until configured.",
"example": "example.com"
"example": "example.com",
"default": ""
},
"origins": {
"type": "array",
"description": "Web origins allowed to register and sign in with passkeys.",
"description": "Web origins passkeys work on, from the project's platforms on the relying party ID and a localhost web platform. Read-only.",
"items": {
"type": "string"
},
"example": [
"https:\/\/example.com"
]
"https:\/\/app.example.com",
"http:\/\/localhost"
],
"default": []
}
},
"required": [
Expand All @@ -144238,7 +144223,8 @@
"$id": "password-dictionary",
"rpId": "example.com",
"origins": [
"https:\/\/example.com"
"https:\/\/app.example.com",
"http:\/\/localhost"
]
}
},
Expand Down
Loading