lib/osso/routes/oauth.rb in osso-0.0.3.5 vs lib/osso/routes/oauth.rb in osso-0.0.3.6
- old
+ new
@@ -12,10 +12,10 @@
# flow. This flow follows the authorization grant oauth
# spec with one exception - you must also pass the domain
# of the user who wants to sign in.
get '/authorize' do
@enterprise = Models::EnterpriseAccount.
- includes(:saml_providers).
+ includes(:identity_providers).
find_by!(domain: params[:domain])
Rack::OAuth2::Server::Authorize.new do |req, _res|
client = Models::OauthClient.find_by!(identifier: req.client_id)
req.verify_redirect_uri!(client.redirect_uri_values)