URLs pointed to new development environment
This commit is contained in:
@@ -7,7 +7,6 @@ export function configureAuth(oidcConfigService: OidcConfigService): () => Promi
|
||||
return () =>
|
||||
oidcConfigService.withConfig({
|
||||
stsServer: 'http://localhost:8080/auth/realms/okupamicoche',
|
||||
// stsServer: 'https://auth.fosil.eu/auth/realms/test',
|
||||
redirectUrl: window.location.origin,
|
||||
postLogoutRedirectUri: window.location.origin,
|
||||
clientId: 'okupamicoche-frontend-angular',
|
||||
@@ -18,7 +17,7 @@ export function configureAuth(oidcConfigService: OidcConfigService): () => Promi
|
||||
silentRenewUrl: `${window.location.origin}/silent-renew.html`,
|
||||
renewTimeBeforeTokenExpiresInSeconds: 30,
|
||||
tokenRefreshInSeconds: 20,
|
||||
ignoreNonceAfterRefresh: true, // El refresh token está fallando si no se ignora el Nonce
|
||||
ignoreNonceAfterRefresh: true, // Keycloak's refresh token fails if Nonce is not ignored
|
||||
secureRoutes: [TRAVEL_API_URL, USER_API_URL],
|
||||
storage: localStorage,
|
||||
logLevel: LogLevel.Warn
|
||||
|
||||
@@ -24,7 +24,7 @@ export class ChatService {
|
||||
) { }
|
||||
|
||||
goToSsoLogin(): void {
|
||||
window.location.href = 'http://synapse:8008/_matrix/client/r0/login/sso/redirect?redirectUrl=http://localhost:4200/';
|
||||
window.location.href = 'http://okupamicoche-synapse:8008/_matrix/client/r0/login/sso/redirect?redirectUrl=http://localhost:4200/';
|
||||
}
|
||||
|
||||
login(loginToken: string): Promise<MatrixClient> {
|
||||
@@ -86,7 +86,7 @@ export class ChatService {
|
||||
|
||||
private async loginWithToken(loginToken: string): Promise<MatrixClient> {
|
||||
const matrixLogin = await this.http.post<MatrixLoginDto>(
|
||||
'http://synapse:8008/_matrix/client/r0/login',
|
||||
'http://okupamicoche-synapse:8008/_matrix/client/r0/login',
|
||||
{
|
||||
initial_device_display_name: 'Okupa mi coche',
|
||||
token: loginToken,
|
||||
@@ -96,7 +96,7 @@ export class ChatService {
|
||||
console.log('LOGGED TO CHAT');
|
||||
console.log({ matrixLogin });
|
||||
this.matrixClient = matrix.createClient({
|
||||
baseUrl: 'http://localhost:8008',
|
||||
baseUrl: 'http://okupamicoche-synapse:8008',
|
||||
accessToken: matrixLogin.access_token,
|
||||
userId: matrixLogin.user_id
|
||||
});
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<ng-container *ngIf="!isLogged;else elseIfBlock">
|
||||
<p>Login for seeing the chat.</p>
|
||||
</ng-container>
|
||||
|
||||
<ng-template #elseIfBlock>
|
||||
<ng-container *ngIf="!isInRoom;else elseBlock">
|
||||
<button mat-raised-button class="btn btn-default" (click)="join()">Join chat</button>
|
||||
</ng-container>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #elseBlock>
|
||||
<mat-grid-list cols="5">
|
||||
<mat-grid-tile colspan=4>
|
||||
|
||||
Reference in New Issue
Block a user