質問

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