PROGRESS! A 201!

This commit is contained in:
CatAClock 2025-04-28 14:40:45 -07:00
parent a52478da54
commit a3498f5a03
3 changed files with 5 additions and 3 deletions

View file

@ -64,6 +64,7 @@ export async function ClientDPoP() {
var sPayload = JSON.stringify(Payload);
var JWT = KJUR.jws.JWS.sign("HS256", sHeader, sPayload, "616161");
console.log(JWT);
return JWT;
}
export async function ServerDPoP() {

View file

@ -106,7 +106,7 @@ async function BlueskyTestingAuthorization() {
let TestingVerifier = await BlueskyAPI.CreatePKCECodeVerifier()
let TestingChallenge = await BlueskyAPI.CreatePKCECodeChallenge(TestingVerifier);
let TestingRequest = fetch(PAREndpoint + "?state=" + TestingState + "&pkceChallenge=" + TestingChallenge + "&scopes=atproto&login_hint=crowdedgames.group", {method: "POST"});
let TestingRequest = fetch(PAREndpoint, {method: "POST", body: new URLSearchParams({ response_type: "code", code_challenge_method: "S256", scope: "atproto", client_id: "https://fedi.crowdedgames.group/oauth/client-metadata.json", redirect_uri: "https://fedi.crowdedgames.group/HTML/mail.html", code_challenge: TestingChallenge, state: TestingState, login_hint: "crowdedgames.group" }), "Content-Type": "application/x-www-form-urlencoded"});
console.log(TestingRequest);
}

View file

@ -1,7 +1,7 @@
{
"client_id": "https://fedi.crowdedgames.group/oauth/client-metadata.json",
"application_type": "web",
"client_name": "Example Browser App",
"client_name": "Channel Viewer",
"client_uri": "https://fedi.crowdedgames.group",
"dpop_bound_access_tokens": true,
"grant_types": [
@ -14,5 +14,6 @@
"response_types": [
"code"
],
"scope": "atproto transition:generic",
"token_endpoint_auth_method": "none",
"scope": "atproto transition:generic"
}