-
Notifications
You must be signed in to change notification settings - Fork 45
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 support for oauth2 audience #164
Conversation
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Andy Su (Apps).
|
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.
Looks good, one improvement requested to the test setup then I think this is good to go
@TestInstance(Lifecycle.PER_CLASS) | ||
public class TestLbTokenUtil | ||
{ | ||
private final String idToken = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ0ZXN0Iiwic3ViIjoidGVzdCIsImF1ZCI6InRlc3QuY29tIn0.YVdTAuEnn-UHsZf5AKA8avaBTLQvdQ3Dd7LeaXKSjlq0atRcmp_IzE8vnJYplYwBs6VNsGpgrfeIMXUsZFKTcfIBinAh05Fj5M7zXVoOPLEdYH5QJ_sfe5-KFPuJs32epC7GE50-umLKTHDZ14dfiXUNK4yAE0bmiNh1lhKcEP35ZAaBt8ldngXJ7BlNbpLpS30-Z4vA6Nht-WjIlluVHd3B5LCJO5FKRcjpuV7E_XZID9c8p0_7Wl7yEvaQB0yJd-VKgT2MQAZse17YqBTb3ix51F5N05s98w7w5zX8NI_afp97YWwNPKTN0dVZFVF8abZ-35O2CAlM0hzbt7NKdw"; |
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.
Could you use JWT.create()
to build the token in setup()
? That would make these tests easier to understand and maintain in the future if new features are desired.
5ceeebb
to
5bd6f60
Compare
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.
LGTM!
gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbTokenUtil.java
Outdated
Show resolved
Hide resolved
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.
Looks good now.
No description provided.