import { Request, Response } from 'express';
export const getOauthClientMetadata = async (_req: Request, res: Response) => {
res.setHeader('Content-Type', 'application/json');
res.status(200).json({
application_type: "web",
client_id: "https://oauth-flask.demo.bsky.dev/oauth/client-metadata.json",
client_name: "atproto OAuth Flask Backend Demo",
client_uri: "https://oauth-flask.demo.bsky.dev/",
dpop_bound_access_tokens: true,
grant_types: [
"authorization_code",
"refresh_token"
],
jwks_uri: "https://oauth-flask.demo.bsky.dev/oauth/jwks.json",
redirect_uris: [
"https://oauth-flask.demo.bsky.dev/oauth/callback"
],
response_types: [
"code"
],
scope: "atproto transition:generic",
token_endpoint_auth_method: "private_key_jwt",
token_endpoint_auth_signing_alg: "ES256"
});
};
import { Request, Response } from 'express';
export const getOauthClientMetadata = async (_req: Request, res: Response) => {
res.setHeader('Content-Type', 'application/json');
res.status(200).json({
application_type: "web",
client_id: "https://oauth-flask.demo.bsky.dev/oauth/client-metadata.json",
client_name: "atproto OAuth Flask Backend Demo",
client_uri: "https://oauth-flask.demo.bsky.dev/",
dpop_bound_access_tokens: true,
grant_types: [
"authorization_code",
"refresh_token"
],
jwks_uri: "https://oauth-flask.demo.bsky.dev/oauth/jwks.json",
redirect_uris: [
"https://oauth-flask.demo.bsky.dev/oauth/callback"
],
response_types: [
"code"
],
scope: "atproto transition:generic",
token_endpoint_auth_method: "private_key_jwt",
token_endpoint_auth_signing_alg: "ES256"
});
};