Authorization server metadata (RFC 8414)
curl --request GET \
--url https://prod-auth.tktchurch.com/.well-known/oauth-authorization-serverimport Foundation
let url = URL(string: "https://prod-auth.tktchurch.com/.well-known/oauth-authorization-server")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.timeoutInterval = 10
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {method: 'GET'};
fetch('https://prod-auth.tktchurch.com/.well-known/oauth-authorization-server', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/.well-known/oauth-authorization-server"
response = requests.get(url)
print(response.text){
"issuer": "https://prod-auth.tktchurch.com",
"authorization_endpoint": "https://prod-auth.tktchurch.com/oauth/authorize",
"token_endpoint": "https://prod-auth.tktchurch.com/oauth/token"
}Authorization server metadata (RFC 8414)
Endpoints, grant types, auth methods.
GET
/
.well-known
/
oauth-authorization-server
Authorization server metadata (RFC 8414)
curl --request GET \
--url https://prod-auth.tktchurch.com/.well-known/oauth-authorization-serverimport Foundation
let url = URL(string: "https://prod-auth.tktchurch.com/.well-known/oauth-authorization-server")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.timeoutInterval = 10
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {method: 'GET'};
fetch('https://prod-auth.tktchurch.com/.well-known/oauth-authorization-server', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/.well-known/oauth-authorization-server"
response = requests.get(url)
print(response.text){
"issuer": "https://prod-auth.tktchurch.com",
"authorization_endpoint": "https://prod-auth.tktchurch.com/oauth/authorize",
"token_endpoint": "https://prod-auth.tktchurch.com/oauth/token"
}Response
200 - application/json
Success
