문제

we're using some Company-wide Auth-Module ( entrust getaccess) which basically leaves some environment variables after authentication (gid, username, etc...).

To fake this auth for testing purposes I'd set the following env varibales in apache:

        SetEnv "AUTH_TYPE" "Entrust-GetAccess"
        SetEnv "HTTP_SCTCGID" "johndoe"

Is this somehow possible with the WebRICK Server, too?

best regards, Björn

도움이 되었습니까?

해결책

In your development.rb file:

ENV['AUTH_TYPE'] = "Entrust-GetAccess"
ENV['HTTP_SCTCGID'] = "johndoe"

If you need this on other environments, put it on the respective staging.rb or production.rb, or just on application.rb to set them on all environments.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top