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

cancel
Showing results for 
Search instead for 
Did you mean: 
rohitnegi
Member II

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

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 !!!

5 Replies
roberto_gamiz
Established Member II

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

What ADF version are you using?

It seems that the problem is not in the code of the login component but in the configuration of your authentication endpoint.

Are you selected OAUTH authentication type?

rohitnegi
Member II

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

I'm using Alfresco version 5.2 and I had also created an app using  this  URL

https://activiti.alfresco.com/activiti-app/editor/#/app-editor/1059352,

I want to know, how I will get these field below in this image, 

and where I shall refer this field in the Alfresco document ??

please help

{
"$schema": "../node_modules/@alfresco/adf-core/app.config.schema.json",
"ecmHost": "{protocol}//{hostname}{Smiley Tongueort}",
"bpmHost": "{protocol}//{hostname}{Smiley Tongueort}",
"identityHost": "{protocol}//{hostname}{Smiley Tongueort}/auth/realms/alfresco",
"providers": "BPM",
"application": {
"name": "Alfresco ADF Application"
},
"authType": "OAUTH",
"oauth2": {
"host": "http//127.0.0.1:8080/auth/realms/alfresco",
"clientId": "activiti",
"scope": "openid",
"secret": "",
"implicitFlow": false,
"redirectSilentIframeUri": "http//127.0.0.1:8080/assets/silent-refresh.html",
"redirectUri": "/",
"redirectUriLogout": "/logout"
kfourdrinier
Member II

Re: Keep getting this error "SSO Authentication server unreachable" after configuration fr

Hi,

Recently i've started to use ADF environment but, like you, i keep getting this error.
Did you find any issue about it?

I really don't know how to go through this.


Have a great day and sorry if my english is not really understandable.

smithclarkson01
Member II

Re: Keep getting this error "SSO Authentication server unreachable" after configuration fr

I set up an activiti cloud and tried to build an ui for it , using adf , but the login page keep saying "SSO Authentication server unreachable" I've set the app.config.json to my activiti cloud , all the network at request seems to be fine , not 4XX or 5XX . where could be the problem? Type of issue: (check with "[x]")

woodbury
Member II

Re: Keep getting this error "SSO Authentication server unreachable" after configuration fr

Hi,

I'm also getting this error, when trying to build up a custom UI with ADF. Have you fixed it?

Found the issue here, but no answer was ever posted:

github.com/Alfresco/alfresco-ng2-components/issues/4659

Regards,

Andrew

 

 

http://customwritingcompany.com/ editor of OPPO custom writing