Apple callback
curl --request POST \
--url https://prod-auth.tktchurch.com/oauth/apple/callback \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"id_token": "<string>"
}
'import Foundation
let parameters = [
"client_id": "<string>",
"id_token": "<string>"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/oauth/apple/callback")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({client_id: '<string>', id_token: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/oauth/apple/callback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/oauth/apple/callback"
payload = {
"client_id": "<string>",
"id_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "<string>",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "<string>",
"scope": "<string>",
"id_token": "<string>",
"issued_token_type": "<string>"
}{
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}Apple callback
Provider form-POST target.
POST
/
oauth
/
apple
/
callback
Apple callback
curl --request POST \
--url https://prod-auth.tktchurch.com/oauth/apple/callback \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "<string>",
"id_token": "<string>"
}
'import Foundation
let parameters = [
"client_id": "<string>",
"id_token": "<string>"
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/oauth/apple/callback")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({client_id: '<string>', id_token: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/oauth/apple/callback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/oauth/apple/callback"
payload = {
"client_id": "<string>",
"id_token": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"access_token": "<string>",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "<string>",
"scope": "<string>",
"id_token": "<string>",
"issued_token_type": "<string>"
}{
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}