-
Notifications
You must be signed in to change notification settings - Fork 142
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
Jwt signer #1464
Merged
Merged
Jwt signer #1464
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add methods to prepare JWT payloads by including 'iat' and 'exp' fields. Update handleRequest and handleResponse methods to utilize the new payload preparation functionality. Additionally, integrate Jackson ObjectMapper for JSON manipulation. Adjust method signatures to handle IOException.
Adjust JWT payload preparation to use seconds instead of milliseconds for 'iat' and 'exp' claims. Change expiration time from 300,000 seconds to 300 seconds. Update configuration to change API key file location from './demo-keys.txt' to './keys.txt', and modify JWT signing and validation processes in the proxy definition for improved clarity and correctness.
Remove deprecated security scopes logic from SpELExchangeEvaluationContext and introduce new scope retrieval methods in BuiltInFunctions. Implement predicates for flexible security scheme filtering.
This pull request needs "/ok-to-test" from an authorized committer. |
…sTest - Introduce BasicHttpSecurityScheme alongside ApiKeySecurityScheme in BuiltInFunctionsTest. - Implement tests for obtaining all scopes and scheme-specific scopes. - Rename APIKeyTest to APIKeySimpleExampleTest for clarity. - Update proxy configuration to display caller scopes in response messages. - Rename APIKeyRBACTest to APIKeyRBACExampleTest for consistency.
predic8
reviewed
Jan 10, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/jwt/JwtSignerInterceptor.java
Outdated
Show resolved
Hide resolved
predic8
reviewed
Jan 10, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/lang/AbstractSetterInterceptor.java
Outdated
Show resolved
Hide resolved
…d tests for clarity
predic8
reviewed
Jan 13, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/jwt/JwtSignerInterceptor.java
Outdated
Show resolved
Hide resolved
predic8
reviewed
Jan 13, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/jwt/JwtSignerInterceptor.java
Outdated
Show resolved
Hide resolved
predic8
reviewed
Jan 13, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/jwt/JwtSignerInterceptor.java
Outdated
Show resolved
Hide resolved
predic8
reviewed
Jan 13, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/jwt/JwtSignerInterceptor.java
Outdated
Show resolved
Hide resolved
predic8
reviewed
Jan 13, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/lang/AbstractSetterInterceptor.java
Outdated
Show resolved
Hide resolved
predic8
reviewed
Jan 13, 2025
core/src/main/java/com/predic8/membrane/core/interceptor/lang/AbstractSetterInterceptor.java
Outdated
Show resolved
Hide resolved
predic8
requested changes
Jan 13, 2025
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.
Please fix
… configuration - Rename class JwtSignerInterceptor to JwtSignInterceptor for clarity. - Update logger name accordingly. - Introduce configurable expiry time with a default value in seconds. - Modify JWT expiration logic to utilize the new configurable expiry time. - Clean up method signatures by removing unnecessary IOException declarations.
predic8
previously approved these changes
Jan 13, 2025
predic8
approved these changes
Jan 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.