Comments (12)
@yahmi I transferred the issue to the correct repo.
Could you please give us more information on what you're trying to do?
Based on what I can get from what you've already provided, you might be interested in:
- https://github.com/okta/okta-auth-java/blob/master/api/src/main/java/com/okta/authn/sdk/resource/SmsFactorProfile.java
- https://github.com/okta/okta-auth-java/blob/master/api/src/main/java/com/okta/authn/sdk/resource/EmailFactorProfile.java
from okta-auth-java.
hi @JayNewstrom
I am trying to use this method
@apireference(path = "/api/v1/authn/factors", href = "https://developer.okta.com/docs/api/resources/authn#enroll-factor")
AuthenticationResponse enrollFactor(FactorType factorType, FactorProvider factorProvider, FactorProfile factorProfile, String stateToken, AuthenticationStateHandler stateHandler) throws AuthenticationException;
I all parameters are available , only FactorProfil I am not able to get them from the factor object where i can Find them ?
from okta-auth-java.
@arvindkrishnakumar-okta can you help with this one?
from okta-auth-java.
@yahmi While enrolling a factor for a new user, you could instantiate the factor profile type with something like below, before you invoke enrollFactor(..)
:
from okta-auth-java.
@arvindkrishnakumar-okta @JayNewstrom
I tried to instantiate in other way , the sms or email is send but the authenticationClient?.enrollFactor(factor.type, factor.provider, factorProfileSMS, stateToken,
object : AuthenticationStateHandlerAdapter() {
override fun handleUnknown(unknownResponse: AuthenticationResponse?) {
Timber.e("handleunk $unknownResponse)
}
override fun handleSuccess(successResponse: AuthenticationResponse?) {
Timber.e("handleSuccess success $successResponse")
}
the callback handlesuccess don't catch the result the result only in handle unknown.
from okta-auth-java.
@JayNewstrom hello
other things , when i try to verify sms with verifyFactor()
I go this error error timing: com.okta.authn.sdk.InvalidAuthenticationStateException: This operation is not allowed in the current authentication state
from okta-auth-java.
@yahmi what is the authentication status (and other relevant AuthenticationResponse
fields) you see when the code flow lands in handle unknown
block?
Which authentication state are you in when you try to do a verifyFactor(...)
. You might want to validate it against the state machine diagram shown here.
from okta-auth-java.
@arvindkrishnakumar-okta
I call the method enrolleFactor() i get the code , when I try to verify the code , I get this error
com.okta.sdk.resource.ResourceException: HTTP 403, Okta E0000079 (This operation is not allowed in the current authentication state. - This operation is not allowed in the current authentication state.), ErrorId oaemclYWx59QAeq8xo2WU4jFQ
I tried to activate before sending the code for verifcation it still the same ?
from okta-auth-java.
@yahmi can you tell what the authentication status is for the previous request before you try to call verify?
from okta-auth-java.
@arvindkrishnakumar-okta
after I call enrollefactor , i call this method
@apireference(path = "/api/v1/authn/factors/{factorId}/verify", href = "https://developer.okta.com/docs/api/resources/authn#verify-factor")
default AuthenticationResponse verifyFactor(String factorId, VerifyFactorRequest request, AuthenticationStateHandler stateHandler) throws AuthenticationException {
return verifyFactor(factorId, request, null, stateHandler);
from okta-auth-java.
@yahmi What does the authentication status field inside AuthenticationResponse
object look like after enrollFactor(...)
is completed?
from okta-auth-java.
Closing this due to inactivity, feel free to reopen if needed.
from okta-auth-java.
Related Issues (20)
- Unable to use "correctAnswer" from AuthenticationResponse. HOT 17
- unable to find API to send MFA Enroll activation link via email/sms HOT 3
- Error while updating Plaid SDK 3.5.0 (Duplicate class org.bouncycastle.LICENSE) HOT 3
- Missing nullability annotations in AuthenticationStateHandler HOT 3
- is:issue is:open Okta authentication crashes, maybe okhttp library compatibility. HOT 4
- HttpClientConfiguration.getRequestExecutorParams() deprecated
- AuthenticationException localizedMessages do not adhere to Android device locale settings HOT 1
- authenticationClient.authenticate() does not return locked_out status HOT 1
- 2.0.5 dependencies result in build error HOT 2
- Resend OTP after 5 minutes - MFA. HOT 4
- DefaultAuthenticationClient.translateException() should be able to handle null errorCode HOT 2
- Failed resolution of: Ljava/time/format/DateTimeFormatter on Android 7 devices HOT 6
- Getting NoClassDefFound for BaseClient.java while using okta-authn-sdk-api:2.0.9 with okta-sdk-api:10.0.0 HOT 4
- Upgrade dependency okta-sdk-java version HOT 7
- Security vulnerability via transitive `dependencybcprov-jdk18on:1.75` HOT 3
- forgot password with trusted application HOT 9
- Primary authentication with trusted application not supported by SDK HOT 4
- Authentication Client Verify Factor throws Resource Exception instead of AuthenticationException HOT 4
- Incorrect key while retrieving correct answer from EmbeddedResponse HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-auth-java.