Search in sources :

Example 11 with Ticket

use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.

the class RedisTicketServices method remove.

@Override
public Ticket remove(String ticketId) {
    RedisConnection conn = connectionFactory.getConnection();
    Ticket ticket = conn.getObject(prefixTicketId(ticketId));
    conn.delete(prefixTicketId(ticketId));
    conn.close();
    return ticket;
}
Also used : Ticket(org.maxkey.authz.cas.endpoint.ticket.Ticket) RedisConnection(org.maxkey.persistence.redis.RedisConnection)

Example 12 with Ticket

use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.

the class RedisTicketServices method get.

@Override
public Ticket get(String ticketId) {
    RedisConnection conn = connectionFactory.getConnection();
    Ticket ticket = conn.getObject(prefixTicketId(ticketId));
    conn.close();
    return ticket;
}
Also used : Ticket(org.maxkey.authz.cas.endpoint.ticket.Ticket) RedisConnection(org.maxkey.persistence.redis.RedisConnection)

Example 13 with Ticket

use of org.maxkey.authz.cas.endpoint.ticket.Ticket in project MaxKey by dromara.

the class RedisTicketGrantingTicketServices method get.

@Override
public Ticket get(String ticketId) {
    RedisConnection conn = connectionFactory.getConnection();
    Ticket ticket = conn.getObject(PREFIX + ticketId);
    conn.close();
    return ticket;
}
Also used : Ticket(org.maxkey.authz.cas.endpoint.ticket.Ticket) RedisConnection(org.maxkey.persistence.redis.RedisConnection)

Aggregations

Ticket (org.maxkey.authz.cas.endpoint.ticket.Ticket)13 RedisConnection (org.maxkey.persistence.redis.RedisConnection)6 Operation (io.swagger.v3.oas.annotations.Operation)4 SigninPrincipal (org.maxkey.authn.SigninPrincipal)4 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)4 InvocationTargetException (java.lang.reflect.InvocationTargetException)3 ProxyServiceResponseBuilder (org.maxkey.authz.cas.endpoint.response.ProxyServiceResponseBuilder)3 ServiceResponseBuilder (org.maxkey.authz.cas.endpoint.response.ServiceResponseBuilder)3 AbstractAuthorizeAdapter (org.maxkey.authz.endpoint.adapter.AbstractAuthorizeAdapter)3 UserInfo (org.maxkey.entity.UserInfo)3 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)3 ProxyGrantingTicketIOUImpl (org.maxkey.authz.cas.endpoint.ticket.ProxyGrantingTicketIOUImpl)2 ProxyGrantingTicketImpl (org.maxkey.authz.cas.endpoint.ticket.ProxyGrantingTicketImpl)2 Service10ResponseBuilder (org.maxkey.authz.cas.endpoint.response.Service10ResponseBuilder)1