Matrix local keycloak remoto
This commit is contained in:
@@ -2,8 +2,8 @@ import { AuthConfig } from 'angular-oauth2-oidc';
|
||||
import { useSilentRefreshForCodeFlow } from '../flags';
|
||||
|
||||
export const authConfig: AuthConfig = {
|
||||
issuer: 'http://localhost:8081/auth/realms/fosil',
|
||||
// issuer: 'https://auth.fosil.eu/auth/realms/fosil',
|
||||
// issuer: 'http://localhost:8081/auth/realms/fosil',
|
||||
issuer: 'https://auth.fosil.eu/auth/realms/test',
|
||||
|
||||
// URL of the SPA to redirect the user to after login
|
||||
redirectUri:
|
||||
|
||||
@@ -12,7 +12,7 @@ export class ChatService {
|
||||
) { }
|
||||
|
||||
goToSsoLogin(): void {
|
||||
window.location.href = 'https://matrix.fosil.eu/_matrix/client/r0/login/sso/redirect?redirectUrl=http://localhost:4200/';
|
||||
window.location.href = 'http://synapse:8008/_matrix/client/r0/login/sso/redirect?redirectUrl=http://localhost:4200/';
|
||||
}
|
||||
|
||||
login(loginToken: string): Promise<void | object> {
|
||||
@@ -21,7 +21,7 @@ export class ChatService {
|
||||
// console.log('SDK');
|
||||
// console.log(sdk);
|
||||
return this.http.post(
|
||||
'https://matrix.fosil.eu/_matrix/client/r0/login',
|
||||
'http://synapse:8008/_matrix/client/r0/login',
|
||||
{
|
||||
initial_device_display_name: 'Okupa mi coche',
|
||||
token: loginToken,
|
||||
@@ -32,7 +32,7 @@ export class ChatService {
|
||||
console.log(res);
|
||||
|
||||
const client = matrixcs.createClient({
|
||||
baseUrl: "https://matrix.fosil.eu",
|
||||
baseUrl: "http://localhost:8008",
|
||||
accessToken: res.access_token,
|
||||
userId: res.user_id
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user