Start authorization code with PKCE
curl --request POST \
--url https://api.sharedgraph.com/api/auth/oauth2/authorize \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data response_type=code \
--data 'client_id=<string>' \
--data 'redirect_uri=<string>' \
--data 'scope=<string>' \
--data 'state=<string>' \
--data 'nonce=<string>' \
--data 'code_challenge=<string>' \
--data code_challenge_method=S256 \
--data prompt=consentconst options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
response_type: 'code',
client_id: '<string>',
redirect_uri: '<string>',
scope: '<string>',
state: '<string>',
nonce: '<string>',
code_challenge: '<string>',
code_challenge_method: 'S256',
prompt: 'consent'
})
};
fetch('https://api.sharedgraph.com/api/auth/oauth2/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sharedgraph.com/api/auth/oauth2/authorize"
payload = {
"response_type": "code",
"client_id": "<string>",
"redirect_uri": "<string>",
"scope": "<string>",
"state": "<string>",
"nonce": "<string>",
"code_challenge": "<string>",
"code_challenge_method": "S256",
"prompt": "consent"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"url": "<string>",
"redirect": true
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}OAuth
Start authorization code with PKCE
Browser navigation to the provider. An account login and deliberate consent are required before a code is issued. The account cookie is provider UI authority, never social API authority. Use a confidential server-backed client, exact registered redirect URI, S256 PKCE, state and nonce. Resources are unsupported.
POST
/
api
/
auth
/
oauth2
/
authorize
Start authorization code with PKCE
curl --request POST \
--url https://api.sharedgraph.com/api/auth/oauth2/authorize \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data response_type=code \
--data 'client_id=<string>' \
--data 'redirect_uri=<string>' \
--data 'scope=<string>' \
--data 'state=<string>' \
--data 'nonce=<string>' \
--data 'code_challenge=<string>' \
--data code_challenge_method=S256 \
--data prompt=consentconst options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
response_type: 'code',
client_id: '<string>',
redirect_uri: '<string>',
scope: '<string>',
state: '<string>',
nonce: '<string>',
code_challenge: '<string>',
code_challenge_method: 'S256',
prompt: 'consent'
})
};
fetch('https://api.sharedgraph.com/api/auth/oauth2/authorize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sharedgraph.com/api/auth/oauth2/authorize"
payload = {
"response_type": "code",
"client_id": "<string>",
"redirect_uri": "<string>",
"scope": "<string>",
"state": "<string>",
"nonce": "<string>",
"code_challenge": "<string>",
"code_challenge_method": "S256",
"prompt": "consent"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"url": "<string>",
"redirect": true
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}{
"error": "unknown_or_immutable_field",
"message": "<string>",
"error_description": "<string>",
"error_uri": "<string>"
}Body
application/x-www-form-urlencoded
Available options:
code Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Available options:
S256 Available options:
consent