Package com.glideapi.services
Class MagicAuthClient
java.lang.Object
com.glideapi.services.MagicAuthClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionMagicAuthClient(Types.GlideSdkSettings settings) MagicAuthClient(Types.GlideSdkSettings settings, boolean autoSession, SessionStrategy sessionStrategy) -
Method Summary
Modifier and TypeMethodDescriptioncheckServerAuth(String sessionId, Types.ApiConfig conf) voidClear the Magic Auth sessionGet the current Magic Auth sessionprepare(MagicAuthDtos.AuthV2PrepDto props, Types.ApiConfig conf) Prepare authentication for Digital Credentials APIProcess credential response from Digital Credentials APIvoidSet the Magic Auth session
-
Constructor Details
-
MagicAuthClient
-
MagicAuthClient
public MagicAuthClient(Types.GlideSdkSettings settings, boolean autoSession, SessionStrategy sessionStrategy)
-
-
Method Details
-
startAuth
public MagicAuthClient.MagicAuthStartResponse startAuth(MagicAuthClient.BaseMagicAuthStartProps props, Types.ApiConfig conf) throws Exception - Throws:
Exception
-
startServerAuth
public MagicAuthClient.MagicAuthStartServerAuthResponse startServerAuth(MagicAuthClient.BaseMagicAuthStartProps props, Types.ApiConfig conf) throws Exception - Throws:
Exception
-
verifyAuth
public MagicAuthClient.MagicAuthCheckResponse verifyAuth(MagicAuthClient.MagicAuthVerifyProps props, Types.ApiConfig conf) throws Exception - Throws:
Exception
-
checkServerAuth
public MagicAuthClient.MagicAuthCheckServerAuthResponse checkServerAuth(String sessionId, Types.ApiConfig conf) throws Exception - Throws:
Exception
-
prepare
Prepare authentication for Digital Credentials API- Parameters:
props- Authentication preparation parametersconf- API configuration- Returns:
- Prepare response containing OpenID4VP request data or eligibility info
- Throws:
Exception- on API errors
-
processCredential
public MagicAuthDtos.AuthenticateResponse processCredential(MagicAuthDtos.AuthV2ProcessCredentialDto props, Types.ApiConfig conf) throws Exception Process credential response from Digital Credentials API- Parameters:
props- Credential processing parametersconf- API configuration- Returns:
- Authentication result with phone number and verification status
- Throws:
Exception- on API errors
-
getMagicAuthSession
Get the current Magic Auth session- Returns:
- Current session or null if none exists
-
setMagicAuthSession
Set the Magic Auth session- Parameters:
session- Session to set
-
clearMagicAuthSession
public void clearMagicAuthSession()Clear the Magic Auth session
-