server metadata test

This commit is contained in:
Kagami Sascha Rosylight
2023-04-10 10:17:41 +02:00
parent deb4429e3a
commit 333d6a9283
2 changed files with 20 additions and 3 deletions

View File

@@ -432,7 +432,15 @@ export class OAuth2ProviderService {
issuer: this.config.url,
authorization_endpoint: new URL('/oauth/authorize', this.config.url),
token_endpoint: new URL('/oauth/token', this.config.url),
// TODO: support or not?
// introspection_endpoint: ...
// introspection_endpoint_auth_methods_supported: ...
scopes_supported: kinds,
response_types_supported: ['code'],
grant_types_supported: ['authorization_code'],
service_documentation: 'https://misskey-hub.net',
code_challenge_methods_supported: ['S256'],
authorization_response_iss_parameter_supported: true,
});
});