/project/oauth2/appleScope project.oauth2.writeSDK: @owbase/node only
Update the project OAuth2 Apple configuration.
Parameters
Section titled “Parameters”serviceId string
‘Service ID’ of Apple OAuth2 app. For example: ip.owbase.app.web
keyId string
‘Key ID’ of Apple OAuth2 app. For example: P4000000N8
teamId string
‘Team ID’ of Apple OAuth2 app. For example: D4000000R6
p8File string
Contents of the Apple OAuth2 app .p8 private key file. The secret key wrapped by the PEM markers is 200 characters long. For example: —–BEGIN PRIVATE KEY—–MIGTAg…jy2Xbna—–END PRIVATE KEY—–
enabled boolean
Browser-based OAuth2 sign-in status. Set to true to enable new session creation through the redirect flow. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. Has no effect on native sign-in, which is controlled by nativeEnabled only.
nativeClientIds string[]
App bundle IDs accepted as ID token audiences for native Sign in with Apple. For example: com.example.app. Together with the Services ID, these are the only client IDs whose tokens are trusted. Pass an empty array to clear the list.
nativeEnabled boolean
Native Sign in with Apple status. This is the only switch for creating sessions from ID tokens obtained on device and is independent of enabled. Needs a Services ID or at least one native client ID to match tokens against, but no key or team ID: this method verifies a signature rather than redeeming an authorization code.
Access: API key with the project.oauth2.write scope.
Responses
Section titled “Responses”200Success400Invalid or missing parameter401No session, no permission on the resource or key without the scope429Rate limitEvery error comes as JSON with code, type and message: see Errors.
import { Client, Project } from '@owbase/node';
const client = new Client() .setEndpoint('https://cloud.owbase.dev/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>') // Your project ID .setKey('<YOUR_API_KEY>'); // Your secret API key
const project = new Project(client);
const result = await project.updateOAuth2Apple({ serviceId: '<SERVICE_ID>', // optional keyId: '<KEY_ID>', // optional teamId: '<TEAM_ID>', // optional p8File: '<P8_FILE>', // optional enabled: false, // optional nativeClientIds: [], // optional nativeEnabled: false, // optional});curl -X PATCH "https://cloud.owbase.dev/v1/project/oauth2/apple" \ -H "X-Owbase-Project: <PROJECT_ID>" \ -H "X-Owbase-Key: $OWBASE_API_KEY"{ "$id": "apple", "enabled": false, "serviceId": "ip.owbase.app.web", "keyId": "P4000000N8", "teamId": "D4000000R6", "p8File": "-----BEGIN PRIVATE KEY-----MIGTAg...jy2Xbna-----END PRIVATE KEY-----", "nativeEnabled": false, "nativeClientIds": [ "com.example.app" ]}The descriptions on this page come from the server API specification (BSD-3-Clause license), and the examples come from the SDK generator (MIT license). The full notices are in the NOTICE file of the @owbase/web and @owbase/node packages.