Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Use the K8S_AUTH_BEARER_TOKEN env var for authorizedFetch #986

Merged

Conversation

yaacov
Copy link
Member

@yaacov yaacov commented Aug 30, 2022

Issue:
In #983 I added the optional K8S_AUTH_BEARER_TOKEN environment variable, but forgot to add it to the authorizedFetch method.

Solution:
Adding a check, if the UI is running without OAuth, and the K8S_AUTH_BEARER_TOKEN environment variable is provided, use it for authentication in the authorizedFetch method.

Signed-off-by: yzamir [email protected]

@yaacov yaacov requested review from a team, mturley, rszwajko and sjd78 August 30, 2022 07:46
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@konveyor-preview-bot
Copy link

🚀 Deployed Preview: http://konveyor-forklift-ui-pr-986-preview.surge.sh

Compare with current main branch: http://konveyor-forklift-ui-preview.surge.sh

Copy link
Collaborator

@mturley mturley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mturley mturley merged commit d8caa16 into kubev2v:main Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants