The Open API specification for Synapse is now available for download!

Download Open API Spec

OAuthAccountCreationRequest

org.sagebionetworks.repo.model.oauth.OAuthAccountCreationRequest

Request to create an account, validated via OAuth

Field Type Description
provider OAuthProvider Supported OAuth providers
authenticationCode STRING The authorization code passed with the redirectUrl after successful user authentication from a 3rd party OAuth provider. This code is used by Synapse to lookup the user's information from the OAuthProvider.
redirectUrl STRING This must be the same redirect URL used to in the first step. This parameter is required by Google but not by all oauth providers.
userName STRING The requested user name for the new account.