本文整理汇总了Java中org.pac4j.core.client.IndirectClient.redirect方法的典型用法代码示例。如果您正苦于以下问题:Java IndirectClient.redirect方法的具体用法?Java IndirectClient.redirect怎么用?Java IndirectClient.redirect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pac4j.core.client.IndirectClient
的用法示例。
在下文中一共展示了IndirectClient.redirect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: redirectToIdentityProvider
import org.pac4j.core.client.IndirectClient; //导入方法依赖的package包/类
protected HttpAction redirectToIdentityProvider(C context, List<Client> currentClients) throws HttpAction {
IndirectClient currentClient = (IndirectClient) currentClients.get(0);
return currentClient.redirect(context);
}
示例2: redirectToIdentityProvider
import org.pac4j.core.client.IndirectClient; //导入方法依赖的package包/类
/**
* Perform a redirection to start the login process of the first indirect client.
*
* @param context the web context
* @param currentClients the current clients
* @return the performed redirection
* @throws HttpAction whether an additional HTTP action is required
*/
protected HttpAction redirectToIdentityProvider(final C context, final List<Client> currentClients) throws HttpAction {
final IndirectClient currentClient = (IndirectClient) currentClients.get(0);
return currentClient.redirect(context);
}