Skip to content

Commit

Permalink
Add scopes_supported member
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed Aug 6, 2024
1 parent 30e9336 commit e3ec969
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/controllers/well-known_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ function build(): express.Router {
controller.get('/oauth-authorization-server', (request, response) => {
const origin = request.protocol + '://' + request.headers.host;

Check failure on line 17 in src/controllers/well-known_controller.ts

View workflow job for this annotation

GitHub Actions / build (10)

Unexpected string concatenation
response.json({
'issuer': origin,
'authorization_endpoint': origin + Constants.OAUTH_PATH + '/authorize',
'token_endpoint': origin + Constants.OAUTH_PATH + '/token',
'response_types_supported': ['code']
//TODO: Consider adding scopes_supported with a dynamically generated list
issuer: origin,
authorization_endpoint: origin + Constants.OAUTH_PATH + '/authorize',

Check failure on line 20 in src/controllers/well-known_controller.ts

View workflow job for this annotation

GitHub Actions / build (10)

Unexpected string concatenation
token_endpoint: origin + Constants.OAUTH_PATH + '/token',

Check failure on line 21 in src/controllers/well-known_controller.ts

View workflow job for this annotation

GitHub Actions / build (10)

Unexpected string concatenation
response_types_supported: ['code'],
// Only expose top-level scopes to unauthenticated clients
scopes_supported: [Constants.THINGS_PATH, Constants.THINGS_PATH + ':readwrite'],

Check failure on line 24 in src/controllers/well-known_controller.ts

View workflow job for this annotation

GitHub Actions / build (10)

Unexpected string concatenation
});
});

Expand Down

0 comments on commit e3ec969

Please sign in to comment.