I think this (and the following line) needs to be `auth.organizations.first` (plural).

One other thing: the logic of this method might be more readable as:

```ruby
session[:organization_url] ||= auth.organizations.first.href
Aptible::Auth::Organization.find_by_url(session[:organization_url], token: service_token)
```