Skip to content

Commit

Permalink
test: add missing function to test server
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 26, 2024
1 parent 4a90c0d commit 1860505
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/test-server/src/oauth2provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ const router = Router()
next(e);
}
})
.post("/validateoauth2refreshtoken", async (req, res, next) => {
try {
logDebugMessage("OAuth2Provider:validateOAuth2RefreshToken %j", req.body);
const response = await OAuth2Provider.validateOAuth2RefreshToken(
req.body.token,
req.body.scopes,
req.body.userContext
);
res.json(response);
} catch (e) {
next(e);
}
})
.post("/createtokenforclientcredentials", async (req, res, next) => {
try {
logDebugMessage("OAuth2Provider:createTokenForClientCredentials %j", req.body);
Expand Down

0 comments on commit 1860505

Please sign in to comment.