Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Add google OAuth2 provider #574

Open
wants to merge 2,680 commits into
base: master
Choose a base branch
from

Conversation

suntehnik
Copy link

Adds Google as OAuth provider. Basically it's adopted copy of FacebookProvider with minor changes.

Michael Russo and others added 30 commits September 1, 2016 11:26
…grid

* 'master' of https://git-wip-us.apache.org/repos/asf/usergrid: (50 commits)
  Fix reactivateTest and handle re-activation differently from auto-activation with confirmation requirements.
  Fix issue with admin user confirmation flag not working when trying to disable emails.
  Moving older SDKs to a difference location and updating main README to link to new SDK locations.
  Removing the old Java SDK.
  Moving the Android SDK to https://github.com/apache/usergrid-android
  Moving the .NET SDK to https://github.com/apache/usergrid-dotnet
  Moving the Java SDK to https://github.com/apache/usergrid-java
  Moving the Javascript SDK to https://github.com/apache/usergrid-javascript.
  Moving the Node.js SDK to https://github.com/apache/usergrid-nodejs.
  Moving Python SDK to https://github.com/apache/usergrid-python
  Fix UniqueValueManager tool to work with datastax driver in the unique value serialization strategy.
  Moving Swift SDK to https://github.com/apache/usergrid-swift.
  Update test for collection level authoritative region setting.
  Rename the cluster authoritative region parameters/methods to be more specific.
  Set non-clustered unique value verification loading back to the non-consistent read consistency level.
  Use StringUtils.isEmpty() to determine if region is not set.
  Move shard logging statement to TRACE level.
  Don't shut down full actor system when the JVM exists ( this affects actors running on other hosts ).
  fix duplicate user test to use random usernames in case DB cleanup not done correctly
  Allow GET /management/me with local UG tokens when External SSO is enabled.
  ...
…operly downs nodes that are restarted but still ok on the network. Don't load all orgs when validating sysadmin creds.
…dled more appropriately, allowing access to all parts of the system.
michaelarusso and others added 23 commits March 23, 2017 13:18
…ided ( you are allowed to create new admin users with just an email and it will invoke a reset password flow).
…eries and email addresses. See: USERGRID-29 USERGRID-1041 USERGRID-1117 USERGRID-1338
…s the in memory impl causes duplicate messgae processing quite often at the moment.

 - includes making all the tests work without in-memory queue fronting the database queue which really means adding some more delay in tests
 - the tests now are actually faster now because the original refreshIndex() created and queried random entities which took longer in most cases
 - uncommented the checkReceipts function in Notification tests as these are now passing, with an added fix for duplicate receipt creation
 - some logging updates in the distributed database queueing impl (Qakka)
 - increased the default take to 500 from the queue when DISTRIBUTED database queueing is configured ( which is the default now )
 - Notifications Queue Listener thread names have a random identifier in included
 - reduced the DISTRIBUTED database queueing default long poll to 1 second from 5 seconds
…e BinaryStore implementation to follow a Factory pattern.
1. Add workers that move messages from dead letter queues back to the indexing and utility queues.
2. Change ERROR for DuplicateUniquePropertyExistsException to INFO. This happens when someone tries to create an entity with the same unique value as another entity, which is not an error that should be logged.
3. Add better logging when cluster region or region list has an invalid region.
…rename the package for TokenServiceImpl to impl from cassandra.
…value. Add trace logging to TokenSerializationImpl. Fix issue with push notifications where the InactiveDeviceManager was making a duplicate (yet incorrect) query for devices.
…s never received after a configurable timeout (15 minutes currently).

2. Log messages as they are moved from the dead letter queue back to the originating queue. Also log messages that are in dead letter queue and can't be moved to originating queue for some reason.
@susthitsoft
Copy link

@michaelarusso @mdunker Is this going to be merged any time soon?

Copy link
Contributor

@rodsimpson rodsimpson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for taking so long to review - everything looks good except for some lingering references to facebook



/**
* Provider implementation for sign-in-as with facebook
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment references facebook (instead of google)

String user_picture = (String) google_user.get("picture");

if (logger.isDebugEnabled()) {
logger.debug("FacebookProvider.createOrAuthenticate: {}", JsonUtils.mapToFormattedJsonString(google_user));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of facebook references here

@michaelarusso
Copy link
Member

@suntehnik can you fix the copy-paste errors (e.g. references to facebook and author annotations)? Once you do this, I can re-review and merge.

@susthitsoft
Copy link

Can we merge this now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants