Skip to content

Conversation

@FeiChen-okta
Copy link
Contributor

Implements the initial structure for start token request handling in Direct Auth. Adds the DirectAuthTokenRequest sealed class with multiple subclasses to support various authentication flows (Password, OTP, MFA OTP, OOB, OOB MFA, WebAuthn, WebAuthn MFA).

Details:
Introduces a unified request model for /oauth2/v1/token endpoint.
Supports multiple grant types via dedicated subclasses.
Each subclass builds form parameters according to the authentication flow.
Ensures extensibility for future authentication methods.
Improves code organization and maintainability.

Testing:
Manual verification of form parameter construction for each flow.
Added unit and functional tests.

RESOLVES: OKTA-1022966

Add initial interfaces to auth foundation and okta-direct-auth
Add tests to verify implementation
Implementation of DirectAuthTokenRequest.
Network call to authenticate in start request.
@FeiChen-okta FeiChen-okta force-pushed the fc-OKTA-1022966-start-token-request branch from aadf8d2 to 52d7fd3 Compare November 1, 2025 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants