I am trying to set up a native app with custom login screen. When I use the Okta AppAuth sdk to login(username, password) it fails with “invalid_grant: The credentials provided were invalid.” I know I am entering my correct login.
Digging into the logs on the server they show:
User login to Okta
failure : PASSWORD_BASED_LOGIN_DISALLOWED
I have not been able to find a setting for this anywhere on the Okta admin site.
I have allowed the resource owner grant type.
That makes sense - the user was created with their credential provider as FEDERATION (to ADFS) and as the error code indicated, they are not able to do a password-based login. So for this user, the password grant would not be an option.
All of our users will be created this way. Is there a way to have a login form in the native app with ADFS users? Could we make the authorize requests ourselves? Or would we run into the same issue?