Giter VIP home page Giter VIP logo

castronaut's People

Contributors

abedra avatar gdagley avatar muness avatar rsanheim avatar spicycode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

castronaut's Issues

serviceValidate should fail for renew hacks

If I validate a service ticket with renew I get an authenticationSuccess, even if the ticket was required from a login without renew.
This way I can remove the renew parameter from the login url and get authenticated without a new login.

http://www.ja-sig.org/products/cas/overview/protocol/index.html
2.5.1. parameters
"renew [OPTIONAL] - if this parameter is set, ticket validation will only succeed if the service ticket was issued from the presentation of the user’s primary credentials. It will fail if the ticket was issued from a single sign-on session."

original LH ticket

This ticket has 0 attachment(s).

spec for expired ticket passes, should fail

ServiceTicket#expired? never actually returns true. Same for LoginTicket#expired?

def expired?
# Time.now - service_ticket.created_on > CASServer::Conf.service_ticket_expiry
end

I think created_on should also be created_at.

original LH ticket

This ticket has 0 attachment(s).

graft in gemspec

spec/app/controllers/db/* and spec/app/controllers/log/* should be removed from the gemspec. From the looks of it, there may be some other graft that could be removed as well.

original LH ticket

This ticket has 0 attachment(s).

RESTful authentication responses

When a user posts credentials and authentication fails, CAStronaut still returns a 200 status. Shouldn’t the response use a HTTP status code to indicate that the authentication fails, perhaps 401 or 403?

Technically, I see that 200 is okay as the post succeeded and the server is returning the result. However, doesn’t it also make sense to tell the client itself (not the user) that the auth event failed?

original LH ticket

This ticket has 0 attachment(s).

error when TGT not found in database?

Is this spec supposed to pass?

it "returns a Ticket that is valid when it cannot find a TGT" do
TicketGrantingTicket.stub!(:find_by_ticket).return(nil)
TicketGrantingTicket.validate_cookie(’abc’).should be_valid
end

I would think it shouldn’t be valid, but when you add this spec for TGT, it passes.

original LH ticket

This ticket has 0 attachment(s).

improve concurrency

writing tests & specs for concurrency is seldom practical, so I am not sure what the current expectation is wrt CAStronaut & concurrency. However, it seems that support for concurrency is nominal right now. I think for starters we need to develop:

  1. a concurrency benchmark (in lieu of a spec)
  2. a recipe for clustering CAStronaut server instances
  3. a means for improving concurrency in CAStronaut itself (connection pools, multithreading and the like)

original LH ticket

This ticket has 0 attachment(s).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.