Skip to content

Commit

Permalink
fix(test): lint all, fix direct oauth interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Aug 26, 2024
1 parent 0effc1c commit ac6c978
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/acs-client/src/acs/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ export const DefaultMetaDataInjector = async <T extends ResourceList>(
): Promise<T> => {
const urns = cfg.get('authorization:urns');
const ids = [...new Set(
request.items?.map(
(item) => item.id
).filter(
id => id
)
request.items?.map(
(item) => item.id
).filter(
id => id
)
)
];
const meta_map = ids.length && await self.read({
filters: [{
Expand Down
2 changes: 1 addition & 1 deletion packages/facade/src/modules/identity/oauth/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const createOAuth = (): KoaRouter<{}, IdentityContext> => {

router.get('/oauth2/:service', async (ctx, next) => {
const ids = ctx.identitySrvClient as IdentitySrvGrpcClient;
const user = await ids.oauth.exchangeCode({
const user = await ids.o_auth.exchangeCode({
service: ctx.params.service,
code: ctx.request.query['code'] as string,
state: ctx.request.query['state'] as string
Expand Down

0 comments on commit ac6c978

Please sign in to comment.