Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

withCredentials Kerberos - Preview and User Info not working #894

Closed
nvmadhav opened this issue Jan 10, 2019 · 3 comments
Closed

withCredentials Kerberos - Preview and User Info not working #894

nvmadhav opened this issue Jan 10, 2019 · 3 comments

Comments

@nvmadhav
Copy link

Type of issue: (check with "[x]")

  • New feature request
  • [X ] Bug
  • Support request
  • Documentation

We are testing the kerberos authentication through ADF. We have taken the latest alfresco-js-api from develop which has changes related to "withCredentials". We have hard coded that value to "true" in local and build the content app pointing to the latest alfresco-js-api.

Authentication looks working fine but found couple of issues

  1. Document preview doesn't work as document preview delegates http call to pdfJs library which does not consider the "withCredentials" setting. So authentication is failing for CORS requests.
    https://github.com/Alfresco/alfresco-ng2-components/blob/development/lib/core/viewer/components/pdfViewer.component.ts#L134

  2. The current logged in user name and the icon on the tool bar top right corner is not getting displayed. When we upload the content it identifies the user but not getting displayed on the UI toolbar.
    Expected behavior:
    The above two issues should be working as expected even with Kerberos

Steps to reproduce the issue:

  1. Have the alfresco server with CORS enabled and kerberos setup
  2. Run the alfresco content app with latest alfresco-js-api from develop branch
  3. Observe on the home page user info not displayed on the top right corner on the toolbar.
  4. Click on word document and it fails to preview

Component name and version:
alfresco content app

Browser and version:
all
Node version (for build issues):
V9.5.0

@DenysVuika DenysVuika transferred this issue from Alfresco/alfresco-ng2-components Jan 10, 2019
@john-knowles
Copy link
Contributor

This issue has been created in the JIRA project: https://issues.alfresco.com/jira/browse/ACA-2133

@DenysVuika
Copy link
Contributor

Updated access settings so that the ticket can be viewed.

@DenysVuika DenysVuika added the bug label Feb 2, 2019
@nvmadhav
Copy link
Author

I have tested by taking the latest development code of ACA and enabled "withCredentials". Then modified the authguard to enable directly without going to loginscreen. Now I am able to login to the app with kerberos. But I do see below issues.
User Initials are not getting displayed
image
Content is getting displayed twice (once as bookmark and other as content)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants