-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "deviceToken" parameter to authenticate() function - need it by 9/23/2019 #105
Comments
Hi @efeluke , Thank you for creating this ticket. I will add required functionality early next week. I will keep you posted! Ildar |
HI @efeluke, According to the documentation: Mobile application is untrusted application and can't use Ildar |
Why is Mobile application considered untrusted? Why does Okta SDK for Android provide that functionality? |
Mobile applications are untrusted because they can't use admin API token due to security reasons |
Hi @IldarAbdullin-okta we`re using deviceToken from iOS/android sdks and they don't need API token. I found this issue okta/okta-developer-docs#782 about wrong docuemntation , could you confirm if we are in the correct way? |
Hi @eberttc , I'm going to re-open this ticket and bring this to the team for discussion. There could be a chance that server just ignores deviceToken if api token is not provided. I need some assistance from server folks Ildar |
In order to make "rememberDevice" work, user needs to send deviceToken in /authn API. Currently, OktaAPI.primaryAuthentication() supports "deviceToken" parameter, however, public function OktaAuthSdk.authenticate() does not. Should add it to enable the feature.
We plan to release our first version of mobile app for supporting Okta in 3 weeks, it would be great to have the fix by 9/23. Thanks.
Sample code:
class OktaAuthSdk:
public class func authenticate(with url: URL,
username: String,
password: String?,
deviceToken: String? = nil,
onStatusChange: @escaping (_ newStatus: OktaAuthStatus) -> Void,
onError: @escaping (_ error: OktaError) -> Void) {
class OktaAuthStatusUnauthenticated:
open func authenticate(username: String,
password: String,
deviceToken: String?,
onStatusChange: @escaping (_ newStatus: OktaAuthStatus) -> Void,
onError: @escaping (_ error: OktaError) -> Void) {
The text was updated successfully, but these errors were encountered: