Skip to content

Conversation

@kochste77
Copy link

Added ability to pass device token and device fingerprint from app that references this SDK.

Problem Analysis (Technical)

For "global sign-on policy - prompt for MFA once per device" support, there was no way to specify the device token in this SDK. While the web counterpart was working as expected, prompting users only on a new device/browser, iOS users had to complete MFA on every sign-in.

Solution (Technical)

Since this SDK already supports passing the device token to the Okta API, but there was no way to pass it from an app that references the SDK, I added a parameter that allows this. I also added the device fingerprint parameter even though we ended up not using it for our configuration (I believe the fingerprint affects Behavior Detection).

I am particularly interested in getting feedback from Okta here. I have maintained a forked repo to implement this missing piece for us. During our implementation phase, we reached out to our implementation specialist who recommended that we add this "feature" ourselves.
The reason I am posting this now is that we are experiencing very isolated issues with certain iOS users. A ticket was opened with Okta Support (case#00740227), but because we are unable to reproduce the issue on one of our devices, I decided to reach out via this PR to see if anybody might have an idea whether this "feature" is not fully supported on iOS, and was left out so far for that exact reason.

Affected Components

OktaAuthSdk.authenticate()
OktaAuthStatusUnauthenticated.authenticate()

Steps to reproduce:

N/A - missing "feature"

Actual result:
N/A - missing "feature"

Expected result:
N/A - missing "feature"

Tests

kochste and others added 5 commits April 1, 2020 10:01
Added deviceToken and deviceFingerprint parameters to fix E2E tests.
Added deviceToken and deviceFingerprint parameters to fix unit tests.
Passing nil for deviceFingerprint parameter.
Added accidentally removed curly brace.
@IldarAbdullin-okta
Copy link
Contributor

@kochste77 , device token and device fingerprint were omitted on purpose in public API. You are not allowed to use these params in iOS applications

Documentation links:
https://developer.okta.com/docs/reference/api/authn/#primary-authentication-with-trusted-application
https://developer.okta.com/docs/reference/api/authn/#primary-authentication-with-device-fingerprinting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "deviceToken" parameter to authenticate() function - need it by 9/23/2019

3 participants