Sorry, no idea what Foreman::STI is and how to include it in this patch. I'll go with the

```
options = { :name => auth_source_name }
auth_source = AuthSourceExternal.where(options).first || AuthSourceExternal.create!(options)
User.create!(:login => login, :auth_source => auth_source)
```

approach.