<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
ナビゲーションへスキップメインコンテンツへスキップ
0D51Y00005yeao9SAAOkta Classic EngineOkta Integration NetworkAnswered2024-03-25T12:26:41.000Z2019-02-19T05:39:08.000Z2019-02-19T21:01:34.000Z

fiozv (fiozv) さんが質問をしました。

On logout and relaunching the application, it again redirects to home page instead of okta login page in my iOS app

Hi,

I am using okta login in my iOS application. When logout using the signout function provided by okta and relaunching after killing the application, it automatically navigates to home page instead of showing the okta login page.

Signout function used - OktaManager.shared().signOut(withHostViewController: nil)

On relaunching, it fires a logincallback function to OktaAppBase which is

for (OktaAppBase *app in self.apps) {

dispatch_group_enter(group);

[app loginWithCallback:^(bool success, NSString *errorMsg) {

dispatch_group_leave(group);

if (!success) {

[errorMsgs addObject:[NSString stringWithFormat:@"%@ Error: %@", app.appName, errorMsg]];

NSLog(@"%@ Error: %@", app.appName, errorMsg);

}

}];

}

This is expecting a failure response as the cookies are expired while logout. But this returns a success case which automatically navigates to home page by skipping okta login screen.

I also tried to explicitly deleting all the cookies at logout, but doesn’t make any difference.

This is happening only on real devices. On checking with simulator, it is working as expected

 


  • Hello Anandhu,

     

     

     

     

     

    Thank you for reaching out to Okta Support, from what I can see you have issues with a custom iOS app .

     

    Our Developer Team can assist you in this matter , all you need to do is to reach them out on developers@okta.com .

     

     

     

     

     

    Thank You,

     

     

     

     

     

    Stefan Boca

     

    Tier 2 Support Engineer

     

    Okta Global Customer Care

    投稿を展開
この質問は閉じられました。
読み込み中
On logout and relaunching the application, it again redirects to home page instead of okta login page in my iOS app