fixing log view edit error
This commit is contained in:
@@ -10,7 +10,6 @@ export class AzureAdStrategy extends PassportStrategy(
|
|||||||
'azure-ad'
|
'azure-ad'
|
||||||
) {
|
) {
|
||||||
constructor(@Inject(MODULE_OPTIONS_TOKEN) authModuleOptions: AuthModuleOptions) {
|
constructor(@Inject(MODULE_OPTIONS_TOKEN) authModuleOptions: AuthModuleOptions) {
|
||||||
console.log(authModuleOptions)
|
|
||||||
super({
|
super({
|
||||||
identityMetadata: `https://login.microsoftonline.com/${authModuleOptions.tenantId}/.well-known/openid-configuration`,
|
identityMetadata: `https://login.microsoftonline.com/${authModuleOptions.tenantId}/.well-known/openid-configuration`,
|
||||||
clientID: authModuleOptions.clientId,
|
clientID: authModuleOptions.clientId,
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ const LogForm: React.FC<ILogFormProps> = ({
|
|||||||
? { headers: { Authorization: await getAccessToken() } }
|
? { headers: { Authorization: await getAccessToken() } }
|
||||||
: {};
|
: {};
|
||||||
const response: AxiosResponse = await httpClient.get(
|
const response: AxiosResponse = await httpClient.get(
|
||||||
`api/logs/${entryId}`,
|
`api/logs/log/${entryId}`,
|
||||||
config
|
config
|
||||||
);
|
);
|
||||||
const entry = response.data;
|
const entry = response.data;
|
||||||
|
|||||||
@@ -67,7 +67,6 @@ const SiteNav: React.FC<unknown> = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const getUserPhoto = async (accessToken: string): Promise<string> => {
|
const getUserPhoto = async (accessToken: string): Promise<string> => {
|
||||||
console.log(accessToken)
|
|
||||||
try {
|
try {
|
||||||
const response: AxiosResponse = await httpClient.get(`api/userPhoto`, {
|
const response: AxiosResponse = await httpClient.get(`api/userPhoto`, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user