discourse_api 0.16.1 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/discourse_api/api/sso.rb +1 -0
- data/lib/discourse_api/single_sign_on.rb +1 -1
- data/lib/discourse_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ef911002c1690ecf2093d99c557ae50703185d6
|
4
|
+
data.tar.gz: d641e827fc1717f3a72b5db1af1e8ab9d9c8ec9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 677f0b8b8e7a1225936f4a9bf50c74d2dc8e0dd1a909a5e2aa4b33685e385e8aff7372510d35081e4dbca430e7533737cff3a95dbb941e889087868858d8e4b4
|
7
|
+
data.tar.gz: 443b8b0733f8294d473fa8bd35a97e5cc1050dc242ef1fcf6bcd42fa98698307c8e1485d8532b7dad6ae0e392616a93a5541ec1214c3a04d7cca6a13df99bc88
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [0.17.0] - 2017-06-29
|
6
|
+
### Added
|
7
|
+
- Add title to SSO sync
|
8
|
+
|
5
9
|
## [0.16.1] - 2017-06-23
|
6
10
|
### Fixed
|
7
11
|
- `user_sso` should use `user_id` instead of `username`
|
@@ -10,6 +10,7 @@ module DiscourseApi
|
|
10
10
|
sso.external_id = params[:external_id]
|
11
11
|
sso.suppress_welcome_message = params[:suppress_welcome_message] === true
|
12
12
|
sso.avatar_url = params[:avatar_url]
|
13
|
+
sso.title = params[:title]
|
13
14
|
sso.avatar_force_update = params[:avatar_force_update] === true
|
14
15
|
params.keys.select{|key| key.to_s.start_with?("custom") }.each do |custom_key|
|
15
16
|
sso.custom_fields[custom_key] = params[custom_key]
|
@@ -5,7 +5,7 @@ require 'openssl'
|
|
5
5
|
module DiscourseApi
|
6
6
|
class SingleSignOn
|
7
7
|
ACCESSORS = [:nonce, :name, :username, :email, :avatar_url, :avatar_force_update,
|
8
|
-
:about_me, :external_id, :return_sso_url, :admin, :moderator, :suppress_welcome_message]
|
8
|
+
:about_me, :external_id, :return_sso_url, :admin, :moderator, :suppress_welcome_message, :title]
|
9
9
|
FIXNUMS = []
|
10
10
|
BOOLS = [:avatar_force_update, :admin, :moderator, :suppress_welcome_message]
|
11
11
|
#NONCE_EXPIRY_TIME = 10.minutes # minutes is a rails method and is causing an error. Is this needed in the api?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discourse_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-06-
|
14
|
+
date: 2017-06-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|