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

add authorization layer on top of ldes #141

Merged
merged 4 commits into from
May 16, 2024

Conversation

Rahien
Copy link
Collaborator

@Rahien Rahien commented May 13, 2024

Description

Adds an authorization layer on top of our ldes feed. That way only the public ldes is publically accessible and to use the abb or internal ldes instances you need to be signed in with a user that has the right impersonation rights. Currently both abb and internal are the same one.

How to test

Try and access the public, abb and internal ldes streams page 1. Notice that it only works for the public one.
Run the example query to give the demo vendor access to these endpoints.
Use the vendor login process to log in as an authorized user. Then access all of those pages again and notice they all work.

Here is a postman collection that allows you to perform these steps:
ldes example.json

@Rahien Rahien marked this pull request as ready for review May 13, 2024 14:53
@Rahien Rahien force-pushed the karel/lmb-396-authorization-for-ldes branch from 212ff5a to 018ce8b Compare May 13, 2024 14:58
Copy link
Contributor

@JonasVanHoof JonasVanHoof left a comment

Choose a reason for hiding this comment

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

Works with postman and loket app

@Rahien Rahien merged commit ca9efa2 into master May 16, 2024
@Rahien Rahien deleted the karel/lmb-396-authorization-for-ldes branch May 16, 2024 08:15
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

Successfully merging this pull request may close these issues.

2 participants