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.
and I am using Client Authentication
This is what the swift code looks like:
The plist has: clientSecret, clientId, issuer, redirectUri, and scopes
Any idea what else I can do to enable password based login?