Sha256: 0b297eb608df71a71b5905b0e98c25969e02915d5c0170b33b9d82c7eaab1927

Contents?: true

Size: 404 Bytes

Versions: 5

Compression:

Stored size: 404 Bytes

Contents

module DiscourseApi
  module API
    module SSO
      def sync_sso(params={})
        sso = DiscourseApi::SingleSignOn.new
        sso.sso_secret = params[:sso_secret]
        sso.name = params[:name]
        sso.username = params[:username]
        sso.email = params[:email]
        sso.external_id = params[:external_id]
        post("/admin/users/sync_sso/", sso.payload)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
discourse_api-0.4.1 lib/discourse_api/api/sso.rb
discourse_api-0.4.0 lib/discourse_api/api/sso.rb
discourse_api-0.3.6 lib/discourse_api/api/sso.rb
discourse_api-0.3.0 lib/discourse_api/api/sso.rb
discourse_api-0.2.9 lib/discourse_api/api/sso.rb