You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Benjamin Marwell (Jira)" <ji...@apache.org> on 2020/03/29 19:16:00 UTC
[jira] [Commented] (SHIRO-468) How to use multiple logins url in
Shiro
[ https://issues.apache.org/jira/browse/SHIRO-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070500#comment-17070500 ]
Benjamin Marwell commented on SHIRO-468:
----------------------------------------
[~newboy6890]
just create an endpoint which calls `SecurityUtils.getSubject().login(token);`.
You need to case about redirection yourself, the {color:#0747a6}{{shiro.ini}}{color} file just configures the DEFAULT login URL.
> How to use multiple logins url in Shiro
> ----------------------------------------
>
> Key: SHIRO-468
> URL: https://issues.apache.org/jira/browse/SHIRO-468
> Project: Shiro
> Issue Type: Question
> Components: Authorization (access control)
> Affects Versions: 1.2.0
> Reporter: xuhao
> Priority: Major
>
> I am trying to have two different loggin page for apache shiro 1) For Mobile devices (little screen, limited javascript different theme) 2) For standard devices
> How can i do?
> Now only one url is working at a time.
> <property name="securityManager" ref="securityManager" />
> <property name="loginUrl" value="/login.jsp" />
> <property name="successUrl" value="/index.jsp" />
> Thankyou
--
This message was sent by Atlassian Jira
(v8.3.4#803005)