Handle AuthorizationException from LoginActivity - Android

Hi ,

In Android, while logging Okta is throwing this error.

How to handle from the this error from LoginActivity. as i need to show custom dialog to the User

Bundle[{net.openid.appauth.AuthorizationException={“type”:1,“code”:1002,“error”:“access_denied”,“errorDescription”:“User is not assigned to the client application.”}}]

Hi Jagadesh,

Unfortunately this is not possible in the current version of the SDK. OktaManagementActivity.java is eating the error response in onStart and not attaching the specific cause of the error to cancelIntent. I’ll create a issue on github to get this addressed.

Regards,
Fei

1 Like