You should correct the intendation:

```
authentication_scheme = if request.headers["X-Authentication-Scheme"] == "Session" 
                          'Session' else 'Basic'
                        end