Sha256: 68b58d729ef88ffbf08488491215489e828d42deddb1f08a0a141df3dc84e768
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 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] sso.suppress_welcome_message = params[:suppress_welcome_message] === true sso.avatar_url = params[:avatar_url] sso.avatar_force_update = params[:avatar_force_update] === true post("/admin/users/sync_sso/", sso.payload) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse_api-0.4.2 | lib/discourse_api/api/sso.rb |