Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed Aug 6, 2024
1 parent 01afc23 commit 3c9e779
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/controllers/well-known_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ function build(): express.Router {
* OAuth 2.0 Authorization Server Metadata (RFC 8414)
*/
controller.get('/oauth-authorization-server', (request, response) => {
const origin = request.protocol + '://' + request.headers.host;
const origin = `${request.protocol}://${request.headers.host}`;
response.json({
issuer: origin,
authorization_endpoint: origin + Constants.OAUTH_PATH + '/authorize',
token_endpoint: origin + Constants.OAUTH_PATH + '/token',
authorization_endpoint: `${origin}${Constants.OAUTH_PATH}/authorize`,
token_endpoint: `${origin}${Constants.OAUTH_PATH}/token`,
response_types_supported: ['code'],
// Only expose top-level scopes to unauthenticated clients
scopes_supported: [Constants.THINGS_PATH, Constants.THINGS_PATH + ':readwrite'],
scopes_supported: [Constants.THINGS_PATH, `${Constants.THINGS_PATH}:readwrite`],
});
});

Expand Down

0 comments on commit 3c9e779

Please sign in to comment.