Interface OAuth
-
- All Implemented Interfaces:
public interface OAuthThe OAuth interface provides methods for authenticating a user via a native Google OneTap prompt or any of the supported third-party OAuth providers, provided you have configured them within your Stytch Dashboard.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceOAuth.GoogleOneTapProvides start, authenticate, and signOut methods for native Google One Tap authentication
public interfaceOAuth.ThirdPartyProvides a method for starting Third Party OAuth authentications
-
Method Summary
Modifier and Type Method Description abstract UnitsetOAuthReceiverActivity(ComponentActivity activity)abstract StytchResult<OAuthData>authenticate(OAuth.ThirdParty.AuthenticateParameters parameters)Authenticate a ThirdParty OAuth flow abstract Unitauthenticate(OAuth.ThirdParty.AuthenticateParameters parameters, Function1<StytchResult<OAuthData>, Unit> callback)Authenticate a ThirdParty OAuth flow abstract CompletableFuture<StytchResult<OAuthData>>authenticateCompletable(OAuth.ThirdParty.AuthenticateParameters parameters)Authenticate a ThirdParty OAuth flow abstract OAuth.GoogleOneTapgetGoogleOneTap()The interface for authenticating a user with Google OneTap abstract OAuth.ThirdPartygetApple()The interface for authenticating a user with Apple abstract OAuth.ThirdPartygetAmazon()The interface for authenticating a user with Amazon abstract OAuth.ThirdPartygetBitbucket()The interface for authenticating a user with BitBucket abstract OAuth.ThirdPartygetCoinbase()The interface for authenticating a user with Coinbase abstract OAuth.ThirdPartygetDiscord()The interface for authenticating a user with Discord abstract OAuth.ThirdPartygetFacebook()The interface for authenticating a user with Facebook abstract OAuth.ThirdPartygetFigma()The interface for authenticating a user with Figma abstract OAuth.ThirdPartygetGithub()The interface for authenticating a user with GitHub abstract OAuth.ThirdPartygetGitlab()The interface for authenticating a user with GitLab abstract OAuth.ThirdPartygetGoogle()The interface for authenticating a user with Google abstract OAuth.ThirdPartygetLinkedin()The interface for authenticating a user with LinkedIn abstract OAuth.ThirdPartygetMicrosoft()The interface for authenticating a user with Microsoft abstract OAuth.ThirdPartygetSalesforce()The interface for authenticating a user with Salesforce abstract OAuth.ThirdPartygetSlack()The interface for authenticating a user with Slack abstract OAuth.ThirdPartygetSnapchat()The interface for authenticating a user with Snapchat abstract OAuth.ThirdPartygetTiktok()The interface for authenticating a user with TikTok abstract OAuth.ThirdPartygetTwitch()The interface for authenticating a user with Twitch abstract OAuth.ThirdPartygetTwitter()The interface for authenticating a user with Twitter abstract OAuth.ThirdPartygetYahoo()The interface for authenticating a user with Twitter -
-
Method Detail
-
setOAuthReceiverActivity
abstract Unit setOAuthReceiverActivity(ComponentActivity activity)
-
authenticate
abstract StytchResult<OAuthData> authenticate(OAuth.ThirdParty.AuthenticateParameters parameters)
Authenticate a ThirdParty OAuth flow
- Parameters:
parameters- required to authenticate the OAuth flow- Returns:
OAuthAuthenticatedResponse
-
authenticate
abstract Unit authenticate(OAuth.ThirdParty.AuthenticateParameters parameters, Function1<StytchResult<OAuthData>, Unit> callback)
Authenticate a ThirdParty OAuth flow
- Parameters:
parameters- required to authenticate the ThirdParty OAuth flowcallback- a callback that receives an OAuthAuthenticatedResponse
-
authenticateCompletable
abstract CompletableFuture<StytchResult<OAuthData>> authenticateCompletable(OAuth.ThirdParty.AuthenticateParameters parameters)
Authenticate a ThirdParty OAuth flow
- Parameters:
parameters- required to authenticate the OAuth flow- Returns:
OAuthAuthenticatedResponse
-
getGoogleOneTap
abstract OAuth.GoogleOneTap getGoogleOneTap()
The interface for authenticating a user with Google OneTap
-
getApple
abstract OAuth.ThirdParty getApple()
The interface for authenticating a user with Apple
-
getAmazon
abstract OAuth.ThirdParty getAmazon()
The interface for authenticating a user with Amazon
-
getBitbucket
abstract OAuth.ThirdParty getBitbucket()
The interface for authenticating a user with BitBucket
-
getCoinbase
abstract OAuth.ThirdParty getCoinbase()
The interface for authenticating a user with Coinbase
-
getDiscord
abstract OAuth.ThirdParty getDiscord()
The interface for authenticating a user with Discord
-
getFacebook
abstract OAuth.ThirdParty getFacebook()
The interface for authenticating a user with Facebook
-
getFigma
abstract OAuth.ThirdParty getFigma()
The interface for authenticating a user with Figma
-
getGithub
abstract OAuth.ThirdParty getGithub()
The interface for authenticating a user with GitHub
-
getGitlab
abstract OAuth.ThirdParty getGitlab()
The interface for authenticating a user with GitLab
-
getGoogle
abstract OAuth.ThirdParty getGoogle()
The interface for authenticating a user with Google
-
getLinkedin
abstract OAuth.ThirdParty getLinkedin()
The interface for authenticating a user with LinkedIn
-
getMicrosoft
abstract OAuth.ThirdParty getMicrosoft()
The interface for authenticating a user with Microsoft
-
getSalesforce
abstract OAuth.ThirdParty getSalesforce()
The interface for authenticating a user with Salesforce
-
getSlack
abstract OAuth.ThirdParty getSlack()
The interface for authenticating a user with Slack
-
getSnapchat
abstract OAuth.ThirdParty getSnapchat()
The interface for authenticating a user with Snapchat
-
getTiktok
abstract OAuth.ThirdParty getTiktok()
The interface for authenticating a user with TikTok
-
getTwitch
abstract OAuth.ThirdParty getTwitch()
The interface for authenticating a user with Twitch
-
getTwitter
abstract OAuth.ThirdParty getTwitter()
The interface for authenticating a user with Twitter
-
getYahoo
abstract OAuth.ThirdParty getYahoo()
The interface for authenticating a user with Twitter
-
-
-
-