Compare commits
3 Commits
feature/3-
...
feature/8-
| Author | SHA1 | Date | |
|---|---|---|---|
| adfbd5f8a3 | |||
| 72683c9ae2 | |||
| fcffd65d33 |
@@ -15,8 +15,11 @@ export class AuthGuard extends PassportAuthGuard('azure-ad') implements CanActiv
|
|||||||
'isPublic',
|
'isPublic',
|
||||||
context.getHandler()
|
context.getHandler()
|
||||||
);
|
);
|
||||||
|
const req = context.switchToHttp().getRequest();
|
||||||
|
const authHeader = req.headers.authorization;
|
||||||
|
const token = authHeader && authHeader.split(' ')[1];
|
||||||
|
|
||||||
if (isPublic) {
|
if (isPublic && !token) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export class TableModule {
|
|||||||
provide: TABLE_OPTIONS,
|
provide: TABLE_OPTIONS,
|
||||||
useValue: options
|
useValue: options
|
||||||
},
|
},
|
||||||
TableModule
|
TableService
|
||||||
],
|
],
|
||||||
exports: [TableService]
|
exports: [TableService]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ export * from './azAppConfig/az-app-config.service';
|
|||||||
|
|
||||||
export * from './azTable/az-table.module';
|
export * from './azTable/az-table.module';
|
||||||
export * from './azTable/az-table.service';
|
export * from './azTable/az-table.service';
|
||||||
|
export { TableClient } from '@azure/data-tables';
|
||||||
|
|
||||||
// Auth
|
// Auth
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@noahspan/noahspan-modules",
|
"name": "@noahspan/noahspan-modules",
|
||||||
"version": "0.3.8",
|
"version": "0.4.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
|
|||||||
Reference in New Issue
Block a user