-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[oauth] User-defined scope in AccessTokenResponse #1891
[oauth] User-defined scope in AccessTokenResponse #1891
Conversation
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
@kaikreuzer or @cweitkamp : can somebody have a look at this ? Sorry to be pushy, the rewritting of the Netatmo binding is pending this. Thanks. |
Thank you for this draft. To be honest I am not feeling comfortable with it right now even if it looks good. I am not convinced to add workarounds in OHC for bad vendor implementations. But I agree with you that we need a solution for it and a similar issue may occur in the future for other external APIs. What about moving the code for the |
@cweitkamp : I like your approach and will think on it. |
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
@cweitkamp : can you give me your feelings regarding this approach ? |
@cweitkamp : had a chance to take a look ? |
@clinique Thanks for the reminder. I am afraid I was not able to look into it yet. It looks better than before but I have to admit that I am not feeling comfortable with this solution either. Sry to be nit-picking here. Do you think we can design it like a builder pattern for the
This might need a little bit more refactoring but will be a lot more flexible to add more features in the future. |
...client/src/main/java/org/openhab/core/auth/oauth2client/internal/OAuthClientServiceImpl.java
Show resolved
Hide resolved
Hello @cweitkamp , thanks for the suggestion but it is unclear to me how I could reach this with only a single method Can you give me some insights on how you imagine this ? |
Signed-off-by: clinique <[email protected]>
@cweitkamp : thinking of it twice, I think I found the solution. Can you tell me what you think of it ? Thanks |
...client/src/main/java/org/openhab/core/auth/oauth2client/internal/OAuthClientServiceImpl.java
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.
Thanks for your patience. One final comment. After that I am fine with merging this nice and useful improvement.
@@ -32,6 +32,7 @@ | |||
String state; | |||
String redirectUri; | |||
int tokenExpiresInSeconds = 60; | |||
String deserializerClassName; |
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.
String deserializerClassName; | |
@Nullable String deserializerClassName; |
...client/src/main/java/org/openhab/core/auth/oauth2client/internal/OAuthClientServiceImpl.java
Show resolved
Hide resolved
Signed-off-by: clinique <[email protected]>
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. Thanks.
Please run 'mvn spotless:apply'. Jenkins is not happy with the formatting.
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
Reverts openhab#1891 Fixes openhab#1888 Signed-off-by: Jacob Laursen <[email protected]>
…#3537) * Add possibility to inject custom GsonBuilder Reverts #1891 Fixes #1888 Signed-off-by: Jacob Laursen <[email protected]>
* Added capability for custom deserializer Closes openhab#1888 Signed-off-by: clinique <[email protected]> GitOrigin-RevId: f7e0339
…openhab#3537) * Add possibility to inject custom GsonBuilder Reverts openhab#1891 Fixes openhab#1888 Signed-off-by: Jacob Laursen <[email protected]> GitOrigin-RevId: eb6b6b9
Would this be acceptable as a solution to my problem faced with Netatmo presented in #1888 ?
Signed-off-by: clinique [email protected]