Package com.stytch.sdk.consumer.oauth
Interface OAuth.ThirdParty
-
- All Implemented Interfaces:
public interface OAuth.ThirdPartyProvides a method for starting Third Party OAuth authentications
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOAuth.ThirdParty.StartParametersData class used for wrapping parameters to start a third party OAuth flow
public final classOAuth.ThirdParty.AuthenticateParametersData class used for wrapping parameters to authenticate a third party OAuth flow
public final classOAuth.ThirdParty.GetTokenForProviderParamsData class used for wrapping parameters to start a third party OAuth flow and retrieve a token
-
Method Summary
Modifier and Type Method Description abstract Unitstart(OAuth.ThirdParty.StartParameters parameters)Begin a ThirdParty OAuth flow abstract StytchResult<String>getTokenForProvider(OAuth.ThirdParty.GetTokenForProviderParams parameters)abstract UnitgetTokenForProvider(OAuth.ThirdParty.GetTokenForProviderParams parameters, Function1<StytchResult<String>, Unit> callback)abstract CompletableFuture<StytchResult<String>>getTokenForProviderCompletable(OAuth.ThirdParty.GetTokenForProviderParams parameters)abstract StringgetProviderName()The Third Party OAuth provider name -
-
Method Detail
-
start
abstract Unit start(OAuth.ThirdParty.StartParameters parameters)
Begin a ThirdParty OAuth flow
- Parameters:
parameters- required to start the OAuth flow
-
getTokenForProvider
abstract StytchResult<String> getTokenForProvider(OAuth.ThirdParty.GetTokenForProviderParams parameters)
-
getTokenForProvider
abstract Unit getTokenForProvider(OAuth.ThirdParty.GetTokenForProviderParams parameters, Function1<StytchResult<String>, Unit> callback)
-
getTokenForProviderCompletable
abstract CompletableFuture<StytchResult<String>> getTokenForProviderCompletable(OAuth.ThirdParty.GetTokenForProviderParams parameters)
-
getProviderName
abstract String getProviderName()
The Third Party OAuth provider name
-
-
-
-