diff --git a/Api/appsettings.json b/Api/appsettings.json index 51caf69..aff0fe6 100755 --- a/Api/appsettings.json +++ b/Api/appsettings.json @@ -8,9 +8,9 @@ "OAuth": { "Providers": { "microsoft": { - "Authority": "https://login.microsoftonline.com/4a0d328f-1f94-4920-b67e-4275737d02a5/v2.0", - "ClientId": "eb03f08b-280a-46c7-9700-b012caa46000", - "ValidAudiences": ["eb03f08b-280a-46c7-9700-b012caa46000"] + "Authority": "https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0", + "ClientId": "904abfa3-d392-400b-8de8-284e6041e929", + "ValidAudiences": ["904abfa3-d392-400b-8de8-284e6041e929"] }, "google": { "Authority": "https://accounts.google.com", diff --git a/Web/public/config.json b/Web/public/config.json index db81eac..ee287fa 100755 --- a/Web/public/config.json +++ b/Web/public/config.json @@ -2,11 +2,11 @@ "apiEndpoint": "http://localhost:5000", "oauthProviders": { "microsoft": { - "clientId": "eb03f08b-280a-46c7-9700-b012caa46000", - "issuer": "https://login.microsoftonline.com/4a0d328f-1f94-4920-b67e-4275737d02a5/v2.0" + "clientId": "904abfa3-d392-400b-8de8-284e6041e929", + "issuer": "https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0" }, "google": { - "clientId": "1000025801082-09ikmt61a9c9vbdjhpdab9b0ui3vdnij.apps.googleusercontent.com", + "clientId": "1000025801082-09ikmt61a9c9vbdjhpdab9b0ui3vdnij.apps.googleusercontent.com", "issuer": "https://accounts.google.com", "dummyClientSecret": "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" }, diff --git a/Web/src/app/services/authentication.service.ts b/Web/src/app/services/authentication.service.ts index 1af64bc..d57e6da 100644 --- a/Web/src/app/services/authentication.service.ts +++ b/Web/src/app/services/authentication.service.ts @@ -15,6 +15,7 @@ const USER_KEY = 'user_profile'; export class AuthenticationService { private config: Partial = { + redirectUri: this.getRedirectUri(), scope: 'openid profile email', responseType: 'code',