Closed pelletier197 closed 3 years ago
I added the endpoints for that were missing. This is kind of required to enable the MFA for your application.
AuthAPI auth = new AuthAPI("<>", "<>", "<>"); ManagementAPI api = new ManagementAPI("<>", auth.requestToken("<>").execute().getAccessToken()); System.out.println(api.guardian().getAuthenticationPolicies().execute()); System.out.println(api.guardian().updateAuthenticationPolicies(Arrays.asList("all-applications")).execute()); System.out.println(api.guardian().getAuthenticationPolicies().execute()); System.out.println(api.guardian().updateAuthenticationPolicies(Arrays.asList()).execute()); System.out.println(api.guardian().getAuthenticationPolicies().execute());
outputs
[] [all-applications] [all-applications] [] []
Putting the value to all-applications produces the following
all-applications
Changes
I added the endpoints for that were missing. This is kind of required to enable the MFA for your application.
Testing
outputs
Putting the value to
all-applications
produces the followingChecklist