-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from nsadaphal/PI-21895
PI-21895 SDK OAuth2.0 implementations for Event APIs
- Loading branch information
Showing
20 changed files
with
524 additions
and
132 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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/appdirect/sdk/appmarket/OAuth2CredentialsSupplier.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,21 @@ | ||
package com.appdirect.sdk.appmarket; | ||
|
||
import org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails; | ||
|
||
/** | ||
* Implementations of this interface provide a way for the service-integration-sdk | ||
* to retrieve the separate credentials ie OAuth2. Each SDK client application must contain a bean | ||
* of this type in its application context in order for the communication with AppMarket to work. | ||
*/ | ||
@FunctionalInterface | ||
public interface OAuth2CredentialsSupplier { | ||
|
||
/** | ||
* Returns the OAuth2ProtectedResourceDetails that applies to the given applicationUuid key | ||
* | ||
* @param applicationUuid the key used to make a request | ||
* @return the full OAuth2ProtectedResourceDetails object associated with this key | ||
*/ | ||
OAuth2ProtectedResourceDetails getOAuth2ResourceDetails(String applicationUuid); | ||
|
||
} |
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.