static private String getSamlResponseUsingOkta ( LoginInput loginInput ) throws SnowflakeSQLException { JsonNode dataNode = federatedFlowStep1 ( loginInput ) ; String tokenUrl = dataNode . path ( "tokenUrl" ) . asText ( ) ; String ssoUrl = dataNode . path ( "ssoUrl" ) . asText ( ) ; federatedFlowStep2 ( loginInput , tokenUrl , ssoUrl ) ; final String oneTimeToken = federatedFlowStep3 ( loginInput , tokenUrl ) ; final String responseHtml = federatedFlowStep4 ( loginInput , ssoUrl , oneTimeToken ) ; return responseHtml ; }
FEDERATED FLOW See SNOW - 27798 for additional details .