This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to OAuthFactoryImpl#createOAuthClientService: - Instead of returning a handle the method required a handle (string). This because if a binding wants to use this method it should have a handle that is derived in the binding. If it were a random uuid the binding would need to store this string and that is not convenient. A typical handle could be the thing uid. - The create checks if there the parameters are already stored and if so it will update the parameters in the storage. This makes it possible to update the parameters for example if the clientId would change this change makes it possible to update those values. With the previous implementation it was never possible to check if things like clientId were changed. Other changes: - Added a AccessTokenRefreshListener to let users of the service be able to get notifications of a change of the access token. - OAuthClientServiceImpl#getAuthorizationUrl does not store scope in the persistedParams params because according to the spec this parameter can be a subset or null of the initial scope with which the service was authorized so it should not override the initial set here. - Fixed javadoc warnings. Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
- Loading branch information
1 parent
44d41a9
commit 9776952
Showing
15 changed files
with
435 additions
and
181 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
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.