Package com.stytch.sdk.b2b.oauth
Interface OAuth.Discovery
-
- All Implemented Interfaces:
public interface OAuth.DiscoveryAn interface describing the parameters and methods available for authenticating an OAuth Discovery flow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOAuth.Discovery.DiscoveryAuthenticateParametersA data class wrapping the parameters necessary to authenticate an OAuth Discovery flow
-
Method Summary
Modifier and Type Method Description abstract StytchResult<DiscoveryAuthenticateResponseData>authenticate(OAuth.Discovery.DiscoveryAuthenticateParameters parameters)Authenticate an OAuth Discovery flow abstract Unitauthenticate(OAuth.Discovery.DiscoveryAuthenticateParameters parameters, Function1<StytchResult<DiscoveryAuthenticateResponseData>, Unit> callback)Authenticate an OAuth Discovery flow abstract CompletableFuture<StytchResult<DiscoveryAuthenticateResponseData>>authenticateCompletable(OAuth.Discovery.DiscoveryAuthenticateParameters parameters)Authenticate an OAuth Discovery flow -
-
Method Detail
-
authenticate
abstract StytchResult<DiscoveryAuthenticateResponseData> authenticate(OAuth.Discovery.DiscoveryAuthenticateParameters parameters)
Authenticate an OAuth Discovery flow
- Parameters:
parameters- required to authenticate the OAuth Discovery flow- Returns:
OAuthDiscoveryAuthenticateResponse
-
authenticate
abstract Unit authenticate(OAuth.Discovery.DiscoveryAuthenticateParameters parameters, Function1<StytchResult<DiscoveryAuthenticateResponseData>, Unit> callback)
Authenticate an OAuth Discovery flow
- Parameters:
parameters- required to authenticate the OAuth Discovery flowcallback- a callback that receives an OAuthDiscoveryAuthenticateResponse
-
authenticateCompletable
abstract CompletableFuture<StytchResult<DiscoveryAuthenticateResponseData>> authenticateCompletable(OAuth.Discovery.DiscoveryAuthenticateParameters parameters)
Authenticate an OAuth Discovery flow
- Parameters:
parameters- required to authenticate the OAuth Discovery flow- Returns:
OAuthDiscoveryAuthenticateResponse
-
-
-
-