-
Notifications
You must be signed in to change notification settings - Fork 27
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
Added Cognito authenticator for DTR #400
Conversation
In the past I opened already a pull request for that feature, but in the meantime during review there were so many changes that I rebased and started from the beginning. So this is the improved version of the pull request #290 |
Hello @istvan-nagy-epam |
@istvan-nagy-epam push - this feature is highly relevant for us. |
Hello together, |
@tunacicek can you please have a look? |
Hi, @peissing, @gerbigf ,@stephanbcbauer |
Hello @tunacicek |
...d/src/main/java/org/eclipse/tractusx/semantics/registry/security/AuthorizationEvaluator.java
Outdated
Show resolved
Hide resolved
...ain/java/org/eclipse/tractusx/semantics/registry/security/CognitoAuthorizationEvaluator.java
Outdated
Show resolved
Hide resolved
...in/java/org/eclipse/tractusx/semantics/registry/security/KeycloakAuthorizationEvaluator.java
Outdated
Show resolved
Hide resolved
...in/java/org/eclipse/tractusx/semantics/registry/security/KeycloakAuthorizationEvaluator.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/org/eclipse/tractusx/semantics/registry/security/OAuthSecurityConfig.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/org/eclipse/tractusx/semantics/registry/CognitoApiSecurityTest.java
Outdated
Show resolved
Hide resolved
Hello @tunacicek, |
COGNITO.md
Outdated
If `cognito` is set as an identity provider the following attributes must be set: | ||
|
Check warning
Code scanning / Gitleaks
(?i)(?:key|api|token|secret|client|passwd|password|auth|access)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([0-9a-z\-_.=]{10,150})(?:['|\"|\n|\r|\s|\x60|;]|$)
COGNITO.md
Outdated
- `public-client-id`: This is the client id of the app client in Cognito that has the `view_digital_twin` scope attached | ||
- `internal-client-id`: This is the client is of the app client in Cognito that has the edit scopes attached |
Check warning
Code scanning / Gitleaks
(?i)(?:key|api|token|secret|client|passwd|password|auth|access)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([0-9a-z\-_.=]{10,150})(?:['|\"|\n|\r|\s|\x60|;]|$)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your feedback. I have only small changes requested.
Hi @peissing , |
Hello @tunacicek |
Hello @tunacicek , |
Hi @peissing, |
Hello @tunacicek, sorry but I do not understand why there is a conflict. I just added the requested information about the new feature in the CHANGELOG.md. |
It occurs, because you have not the latest commit from the main branch. There are commits missing. |
Hello @tunacicek , |
Feature:
DTR is at the moment only able to use Keycloak as for authentication
This feature enable DTR to use also AWS Cognito
The whole functionality and how to configure is described in the file COGNITO.md that is contained in this pull request.
The request contains several new and modified classes including unit tests.
The old class AuthorizationEvaluator is now abstract and the base class for different Evaluators. At the moment there are implementations for Keycloak and for Cognito.
I am not an expert for Helm charts, but I tried to integrate it also in those files. But this must be checked if I did it in a correct way.