-
Notifications
You must be signed in to change notification settings - Fork 2
Module authorizationserver #51
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
Conversation
Added http client implementation based on Apache Http Added wrapers for session token, credentials and secret Added Reader implementation for reading data stored in storage Took 11 hours 56 minutes
There are still missing some method implementations of abstract Module class Took 1 hour 36 minutes
…nserver # Conflicts: # Manager/pom.xml # Manager/src/main/java/io/raspberrywallet/manager/cryptography/crypto/exceptions/DecryptionException.java # Manager/src/main/java/io/raspberrywallet/manager/modules/ExampleModule.java # Manager/src/main/java/io/raspberrywallet/manager/modules/Module.java Took 8 minutes
Changed storing secret logic for authorization server module, now Server is storing encryption key, that is used for key part encryption input from manager Not working version, needs some debugging Took 1 hour 25 minutes
Took 35 minutes
Manager/src/main/java/io/raspberrywallet/manager/common/http/ApacheSecuredHttpClient.java
Outdated
Show resolved
Hide resolved
Manager/src/main/java/io/raspberrywallet/manager/common/http/ApacheHttpClient.java
Outdated
Show resolved
Hide resolved
|
|
||
| @Override | ||
| public HttpResponse sendPOSTRequest(Form body, String endpoint) throws IOException { | ||
| org.apache.http.client.HttpClient client = HttpClients.createDefault(); |
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.
It would be nice if you could reuse OkHttpClient with Jackson, it's already in our dependencies, and seems to be much smaller and have nicer API
Manager/src/main/java/io/raspberrywallet/manager/common/readers/StringReader.java
Outdated
Show resolved
Hide resolved
Manager/src/main/java/io/raspberrywallet/manager/common/readers/WalletUUIDReader.java
Show resolved
Hide resolved
Manager/src/main/java/io/raspberrywallet/manager/modules/Module.java
Outdated
Show resolved
Hide resolved
...n/java/io/raspberrywallet/manager/modules/authorizationserver/AuthorizationServerModule.java
Show resolved
Hide resolved
Removed unused StringReader class Removed unused host parameter from HttpClients constructors Changed access modifiers from protected to public in Module class Took 42 minutes
|
@stasbar please review again, I made changes that you asked for, except for okhttp clients, due to some problems, Apache is fine for now, will refactor it sometime to okhttp |
Manager/src/main/java/io/raspberrywallet/manager/common/http/SecuredApacheApacheHttpClient.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/io/raspberrywallet/manager/common/http/UnsecuredApacheApacheHttpClient.java
Outdated
Show resolved
Hide resolved
Took 24 minutes
Took 4 minutes
This closes #50