02-26-2019 08:16 AM
I am using adf with alfresco.
Alfresco session timeout is 30 min and ticket expiration time is 1 hr.
What will happen if I make adf idle after login up 30 min?
Will I need to login again?
Eugenio Romano Please comment on this.
03-07-2019 09:39 AM
yep you need to login the cool thing is that you can automatically redirect a user to the login page over a 401 event for example:
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
import { AuthenticationService, AlfrescoApiService, PageTitleService } from '@alfresco/adf-core';
import { Router } from '@angular/router';
import { MatDialog } from '@angular/material';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent implements OnInit {
constructor(private pageTitleService: PageTitleService,
private alfrescoApiService: AlfrescoApiService,
private authenticationService: AuthenticationService,
private router: Router,
private dialogRef: MatDialog) {
}
ngOnInit() {
this.pageTitleService.setTitle('title');
this.alfrescoApiService.getInstance().on('error', (error) => {
if (error.status === 401) {
if (!this.authenticationService.isLoggedIn()) {
this.dialogRef.closeAll();
this.router.navigate(['/login']);
}
}
});
}
}
08-21-2020 01:47 AM
Hi,
I am using adf with APS.
What is the ticket expire time? I am using basic auth.
09-05-2023 10:40 PM
Is there a place to configure the expire time for the tickets?
09-27-2023 09:21 AM
Check the documentation on ACS, the configuration is done in the property files in backend
11-03-2023 10:04 AM
> Check the documentation on ACS, the configuration is done in the property files in backend
I explored the documentation on ACS.
I only find "A ticket is valid for a specific time".
I did not find properties and a path for the specific configuration file in backend.
https://docs.alfresco.com/content-services/latest/develop/rest-api-guide/install/
11-03-2023 10:22 AM
It's in the repository properties file:
can also be googled or searched on stack overflow
https://stackoverflow.com/questions/7426878/alfresco-ticket-validity
11-03-2023 10:26 AM
And you already raised exact same question mutliple times, and got the solution marked as solved. https://hub.alfresco.com/t5/alfresco-content-services-forum/session-timeout/td-p/312741
Explore our Alfresco products with the links below. Use labels to filter content by product module.