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

Following Kibana permalinks redirects to the space selector if the user is not logged in #359

Open
mymasse opened this issue Nov 24, 2020 · 2 comments

Comments

@mymasse
Copy link
Contributor

mymasse commented Nov 24, 2020

Version

  • Logsearch-boshrelease: v211.1.0
  • Logsearch-for-cloudfoundry: v211.1.0

Steps to reproduce

  1. Get a permalink from Kibana
  2. Logout or from a private browsing window
  3. Paste the permalink
  4. Get redirected to the CF UAA for login
  5. Enter credentials

Expected result

After login get directed to the provided permalink

Actual result

Get redirected to the Space Selector screen

@mymasse
Copy link
Contributor Author

mymasse commented Nov 24, 2020

@braunsonm Feel free to add the more technical details you found

@braunsonm
Copy link

braunsonm commented Nov 25, 2020

Hey so I took at look at this yesterday.

The usually method would be to encode the redirect URL in the state parameter in OAuth requests. However you do not have control over this in the bell library, the state is hard-coded. My other idea would be to save the redirect URL as a cookie when you trigger the redirect to /login here. Then restore that link instead of the hardcoded redirect to / here.

@mymasse mymasse changed the title Folllowing Kibana permalinks redirects to the space selector if the user is not logged in Following Kibana permalinks redirects to the space selector if the user is not logged in Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants