You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
private fun startAuth() {
if (activity != null) {
val completionIntent = Intent(activity, WaitingActivity::class.java)
val cancelIntent = Intent(activity, LoginActivity::class.java)
completionIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
try {
mOktaAppAuth?.login(
activity,
PendingIntent.getActivity(activity, 0, completionIntent, 0),
PendingIntent.getActivity(activity, 0, cancelIntent, 0))
} catch (ex: AuthorizationException) {
}
}
}
And sometime my app is crash with status is Caused by java.lang.IllegalArgumentException
Malformed intent
net.openid.appauth.AuthorizationManagementResponse.fromIntent
(AuthorizationManagementResponse.java:61)
com.okta.appauth.android.OktaManagementActivity.onStart (OktaManagementActivity.java:126)|
I found function in class AuthorizationManagementResponse write
public static AuthorizationManagementResponse fromIntent(@NonNull Intent dataIntent) {
if (EndSessionResponse.containsEndSessionResoponse(dataIntent)) {
return EndSessionResponse.fromIntent(dataIntent);
} else if (AuthorizationResponse.containEndSessionResoponse(dataIntent)) {
return AuthorizationResponse.fromIntent(dataIntent);
} else {
throw new IllegalArgumentException("Malformed intent");
}
}
Anyone help me fix this issues?thanks
The text was updated successfully, but these errors were encountered:
Try changing Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK to FLAG_ACTIVITY_CLEAR_TOP.
This repository is not maintained. Please use https://github.com/okta/okta-oidc-android
Hi everyone ,I am implement Authorization with okta in fragment android
mOktaAppAuth=OktaAppAuth.getInstance(context);
And sometime my app is crash with status is Caused by java.lang.IllegalArgumentException
Malformed intent
net.openid.appauth.AuthorizationManagementResponse.fromIntent
(AuthorizationManagementResponse.java:61)
com.okta.appauth.android.OktaManagementActivity.onStart (OktaManagementActivity.java:126)|
I found function in class AuthorizationManagementResponse write
Anyone help me fix this issues?thanks
The text was updated successfully, but these errors were encountered: