This repository has been archived by the owner on Jun 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
align ilp over http custom settings (#408)
* align Ilp-over-http custom settings to match update property style style should match property definition in issue #383 removed deprecated incomingHttpLinkSettings and outgoingHttpLinkSettings accessors Signed-off-by: nhartner <[email protected]> * align Ilp-over-http custom settings to match update property style style should match property definition in issue #383 removed deprecated incomingHttpLinkSettings and outgoingHttpLinkSettings accessors Signed-off-by: nhartner <[email protected]> * guava android compatibility fix Signed-off-by: nhartner <[email protected]> * remove unsed SharedSecretTokenSettings Signed-off-by: nhartner <[email protected]> * bringing back AuthType on settings. It was getting difficult to provide meaning error messages for missing fields without knowing the intention of what type of settings were being provided Signed-off-by: nhartner <[email protected]> * disable docker container logs Signed-off-by: nhartner <[email protected]> * remove fallback logic to deprecated property that no longer exists Signed-off-by: nhartner <[email protected]> * make jwt.token_audience a string instead of url because the JWT RFC does not strictly require it to be a url and in the case of auth0, it's not a url for web flows Signed-off-by: nhartner <[email protected]> * fix typo Signed-off-by: nhartner <[email protected]> * fix javadoc to include auth_type as a required property Signed-off-by: nhartner <[email protected]> * remove deprecated fallback that has been removed Signed-off-by: nhartner <[email protected]> * Only require an outgoing url for IlpOverHttpLink instead of link settings Signed-off-by: nhartner <[email protected]> * nuke deprecated constructor Signed-off-by: nhartner <[email protected]> * fix typo Signed-off-by: nhartner <[email protected]> * make toCustomSettingsMap auxiliary so it doesn't get include in toString/hashCode etc Signed-off-by: nhartner <[email protected]> * fix testConnection to not use linkSettings and just use outgoingUrl don't need to log authType either since it's not used Signed-off-by: nhartner <[email protected]>
- Loading branch information
Showing
22 changed files
with
965 additions
and
536 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
...link-ilp-over-http/src/main/java/org/interledger/link/http/AuthenticatedLinkSettings.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.interledger.link.http; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* Common auth settings for incoming and outgoing links. | ||
*/ | ||
public interface AuthenticatedLinkSettings { | ||
|
||
/** | ||
* Auth settings if using SIMPLE scheme. | ||
* | ||
* @return settings | ||
*/ | ||
Optional<SimpleAuthSettings> simpleAuthSettings(); | ||
|
||
/** | ||
* Auth settings if using JWT scheme. | ||
* | ||
* @return settings | ||
*/ | ||
Optional<JwtAuthSettings> jwtAuthSettings(); | ||
|
||
|
||
/** | ||
* The type of Auth to support for this link. | ||
* | ||
* @return A {@link IlpOverHttpLinkSettings.AuthType} for this link | ||
*/ | ||
IlpOverHttpLinkSettings.AuthType authType(); | ||
|
||
} |
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
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
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
Oops, something went wrong.