submitAdapterAuthentication not working

前端 未结 1 1101
失恋的感觉
失恋的感觉 2021-01-23 19:02

I have been trying to do a specific operation once I receive the submitAdapterAuthentication from the challenge handler and I could not do any operation because my code it does

1条回答
  •  有刺的猬
    2021-01-23 19:25

    Your understanding of the Challenge Handler and mine are considerably different.

    Although the

     ch.submitAdapterAuthentication()
    

    is similar in structure to the standard adapter invocation methods I have never used any callbacks with it.

    I work from the IBM AdapteBasedAuthentication tutorial materials

    The basic idea is that your challenge handler should have two callback methods:

    isCustomResponse()
    handleChallenge()
    

    You will see these functions invoked in response to your submission.

    I suggest that start by looking at those methods. I can't comment on the ionic example you reference, but I have myself used angular/ionic with the authentication framework and challenge handlers. My starting point was the IBM material I reference above.

    0 讨论(0)
提交回复
热议问题