AnsweredAssumed Answered

Keep getting this error "SSO Authentication server unreachable" after configuration from documentation.

Question asked by rohitnegi on Apr 12, 2019
Latest reply on Apr 15, 2019 by rohitnegi

Hi,

I have configured ADF for login as per the documentation in https://www.alfresco.com/abn/adf/docs/tutorials/using-components/. But I keep getting this error. 

"SSO Authentication server unreachable".
This is the code for login.component.html

<adf-login
[showRememberMe]="false"
[showLoginActions]="false"
(executeSubmit)="myExecuteSubmitMethod($event)"
copyrightText="© 2017 Alfresco Software, Inc. All Rights Reserved."
successRoute="/apps"
#alfrescoLogin
>
<adf-login-footer>
<ng-template>
Hello World!
</ng-template>
</adf-login-footer>
</adf-login>

 This is the code for login.component.ts:

 

import { Component, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { Validators } from '@angular/forms';

@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent {

@ViewChild('alfrescoLogin')
alfrescoLogin: any;

customValidation: any;

constructor(public router: Router) {
this.customValidation = {
username: ['', Validators.compose([Validators.required, Validators.minLength(8), Validators.maxLength(10)])],
password: ['', Validators.required]
};
}

ngOnInit() {
this.alfrescoLogin.addCustomValidationError('username', 'minlength', 'Username must be at least 8 characters.');
this.alfrescoLogin.addCustomValidationError('username', 'maxlength', 'Username must not be longer than 11 characters.');
}

myExecuteSubmitMethod(event: any) {
alert('Form was submitted!');
console.log(event);
}

}

 

 

Kindly help !!!

Attachments

Outcomes