
SimbaT.48793 (Customer) asked a question.
Hi,
I am trying to setup Okta MFA at both organization and app level for my AWS Application. I have successfully created the Sign On Policy for the AWS App and it is working correctly from Okta Console.
But now I want to add this feature in my Java Project, I tried searching for APIs which can be used to verify MFA at Application level, but I am not able to find any such API. Can you please provide me some details regarding application level mfa and how to do it from Java Project.
As of now I am able to Authenticate with MFA at account level. But when I try to use the same URL(https://<AWS APP URL>?onetimetoken='SessionToken' ) for application level mfa, I am being redirected to the login page again. Can you please help me out in this.
Thanks,
Prateek

Hi Prateek.
you can use the policy API for this. Create MFA Enroll Policy & then Create MFA Enroll Rule. I hope that should work.
Hi Sandeep,
Thank you for the response, but I am still confused how policy API's will be useful.
I have already created MFA Sign On Policy in my AWS Application from the Okta console. Now when I do MFA at account level only I get the session token with which this URL (https://<AWS APP URL>?onetimetoken='SessionToken') logs me in AWS, but when I try MFA with both account level as well as application level (by creating a sign on policy from okta console) I am redirected to the login page. For this I need some Okta API's to start the application level MFA from my Java Code.