Spina and Rack CAS in development #1108
-
I'm using Rack-CAS for Spina authentication: https://github.com/biola/rack-cas I'd like to enable Rack-CAS's fake-cas option in development since my CAS server is not available in my dev environment. The fake-cas is usually enabled in development by a config option which triggers loading of a fake-cas rack middleware like so: I'm guessing I would need to get Spina to do the same thing to have fake-cas work? Any ideas how I might accomplish that? Thanks for any help you can provide! A |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out Spina does not need it's own fake-cas middleware - it's just using the Rails middleware. I just need to return head :unauthorized in the custom authenticate method and it works like a charm! |
Beta Was this translation helpful? Give feedback.
Turns out Spina does not need it's own fake-cas middleware - it's just using the Rails middleware. I just need to return head :unauthorized in the custom authenticate method and it works like a charm!