omniauth-mpassid 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a770c2ddeedb891769b008bdf1c6d5b51173292f93c4ae4809b5cb0f436ed1d
4
- data.tar.gz: c530e5e766077b2246ec409dc926d956026e62996da0ae1e866fe4f9add4c305
3
+ metadata.gz: 84ae83ac1a0c7a5fc828cbc3737b088c2b1d7541d3f1186bb6912097ef4411cc
4
+ data.tar.gz: 59ceca293fcacaf4e77e8b255b36b76f7de1494dbe480f7a0139ba8b6a33a03e
5
5
  SHA512:
6
- metadata.gz: bb2aa56b300d50529c78fd5e111583997b8ba2bc8f8c78ac040edf205192e02d68eab543ad36444f2c730c6cde47f594f6ffcbc504a51b487fcf6723113f405e
7
- data.tar.gz: 19e0641256b34649273e8e1fe945de96dca7f6e78f20c2aebaedfd10f6a125ad927b9970615c31a45c6bc5f3a4d68fd580cc281668edaf9f124519208af1e34e
6
+ metadata.gz: 435b88073b7560bef4704c05b066ed9ec8b00ec83f2de1a4dc4b7b639e5016e51f91a770bce4db226d8d8d06727f78dab93fd2084e2d360ce04283fd935b0097
7
+ data.tar.gz: d6918ebe30bc88d39b0b32ffd69d188c33d8bef8f59a094bdf7b88e66f603c0ffc9bb91b1ca9dd8bd2da7977fe9f6a6e58e80fd39a03df018b708c32b61c11f6
@@ -39,13 +39,15 @@ module OmniAuth
39
39
  # (single value)
40
40
  {
41
41
  name: 'urn:mpass.id:uid',
42
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
42
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
43
+ friendly_name: 'mpassUsername'
43
44
  },
44
45
  # Funet EDU person learner ID
45
46
  # (single value)
46
47
  {
47
48
  name: 'urn:oid:1.3.6.1.4.1.16161.1.1.27',
48
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
49
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
50
+ friendly_name: 'learnerId'
49
51
  },
50
52
  # The first/given name of the user.
51
53
  # (single value)
@@ -68,26 +70,6 @@ module OmniAuth
68
70
  name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
69
71
  friendly_name: 'sn'
70
72
  },
71
- # The municipality code of the authenticated user. See
72
- # http://tilastokeskus.fi/meta/luokitukset/kunta/001-2017/index.html
73
- # for mappings in Finland.
74
- # (multi value)
75
- {
76
- name: 'urn:mpass.id:municipalityCode',
77
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
78
- friendly_name: 'municipalityCode'
79
- },
80
- # The human-readable name of the municipality of the authenticated user.
81
- # (multi value)
82
- {
83
- name: 'urn:mpass.id:municipality',
84
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
85
- },
86
- {
87
- name: 'urn:educloudalliance.org:municipality',
88
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
89
- friendly_name: 'ecaMunicipality'
90
- },
91
73
  # The school code of the authenticated user. See
92
74
  # https://virkailija.opintopolku.fi/koodisto-service/rest/json/oppilaitosnumero/koodi
93
75
  # (JSON format)
@@ -99,7 +81,8 @@ module OmniAuth
99
81
  # (multi value)
100
82
  {
101
83
  name: 'urn:mpass.id:schoolCode',
102
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
84
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
85
+ friendly_name: 'mpassSchoolCode'
103
86
  },
104
87
  # The human-readable name of the school of the authenticated user.
105
88
  # (multi value)
@@ -108,12 +91,21 @@ module OmniAuth
108
91
  name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
109
92
  friendly_name: 'school'
110
93
  },
94
+ # Combination of the school code and official name of the educational
95
+ # institution separated with semicolon.
96
+ # For instance: 00000;Tuntematon
97
+ {
98
+ name: 'urn:mpass.id:schoolInfo',
99
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
100
+ friendly_name: 'mpassSchoolInfo'
101
+ },
111
102
  # The class/group-information of the authenticated user.
112
103
  # For instance: 8A or 3B.
113
104
  # (multi value)
114
105
  {
115
106
  name: 'urn:mpass.id:class',
116
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
107
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
108
+ friendly_name: 'mpassClass'
117
109
  },
118
110
  {
119
111
  name: 'urn:educloudalliance.org:group',
@@ -125,7 +117,8 @@ module OmniAuth
125
117
  # (multi value)
126
118
  {
127
119
  name: 'urn:mpass.id:classLevel',
128
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
120
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
121
+ friendly_name: 'mpassClassLevel'
129
122
  },
130
123
  # The role name of the user.
131
124
  # For instance Oppilas.
@@ -136,18 +129,43 @@ module OmniAuth
136
129
  friendly_name: 'ecaRole'
137
130
  },
138
131
  # The role of the user in four parts, divided with a semicolon (;)
139
- # character. First municipality, followed by school code, group and role
140
- # in the group.
141
- # For instance Helsinki;32132;9A;Oppilas.
132
+ # character. First educational provider's organization OID, followed by
133
+ # school code, group and role in the group.
134
+ # For instance 1.2.246.562.10.12345678907;99900;7B;Oppilas.
142
135
  # (multi value)
136
+ #
137
+ # The educational providers' organization OIDs can be found from:
138
+ # https://github.com/Opetushallitus/aitu/blob/master/ttk-db/resources/db/migration/V11_2__koulutustoimijat.sql
143
139
  {
144
140
  name: 'urn:mpass.id:role',
145
- name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri'
141
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
142
+ friendly_name: 'mpassRole'
143
+ },
144
+ # The educational provider's permanent organization OID.
145
+ # (multi value)
146
+ #
147
+ # The educational providers' organization OIDs can be found from:
148
+ # https://github.com/Opetushallitus/aitu/blob/master/ttk-db/resources/db/migration/V11_2__koulutustoimijat.sql
149
+ {
150
+ name: 'urn:mpass.id:educationProviderId',
151
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
152
+ friendly_name: 'mpassEducationProviderOid'
146
153
  },
154
+ # The educational provider's human-readable name.
155
+ # (multi value)
156
+ {
157
+ name: 'urn:mpass.id:educationProvider',
158
+ name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
159
+ friendly_name: 'mpassEducationProviderName'
160
+ },
161
+ # Combination of the education provider's organisation-OID and official
162
+ # name. Separated by semicolon.
163
+ # For instance: 1.2.246.562.10.494695390410;Virallinen nimi
164
+ # (multi value)
147
165
  {
148
- name: 'urn:educloudalliance.org:structuredRole',
166
+ name: 'urn:mpass.id:educationProviderInfo',
149
167
  name_format: 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
150
- friendly_name: 'ecaStructuredRole'
168
+ friendly_name: 'mpassEducationProviderInfo'
151
169
  }
152
170
  ]
153
171
 
@@ -158,8 +176,8 @@ module OmniAuth
158
176
  # Given name or all first names (in case given name is not found)
159
177
  first_name: ['urn:oid:2.5.4.42', 'http://eidas.europa.eu/attributes/naturalperson/CurrentGivenName'],
160
178
  last_name: ['urn:oid:2.5.4.4'],
161
- # The municipality of the person (literal format in Finnish)
162
- location: ['urn:mpass.id:municipality', 'urn:educloudalliance.org:municipality']
179
+ # The education provider (e.g. municipality) of the person (literal format in Finnish)
180
+ location: ['urn:mpass.id:educationProvider']
163
181
  )
164
182
 
165
183
  info do
@@ -197,14 +215,14 @@ module OmniAuth
197
215
  option(
198
216
  :saml_attributes_map,
199
217
  given_name: ['urn:oid:2.5.4.42'],
200
- first_names: ['http://eidas.europa.eu/attributes/naturalperson/CurrentGivenName'],
218
+ first_names: ['urn:oid:2.5.4.42'],
201
219
  last_name: ['urn:oid:2.5.4.4'],
202
- municipality_code: {
203
- name: ['urn:mpass.id:municipalityCode'],
220
+ provider_id: {
221
+ name: ['urn:mpass.id:educationProviderId'],
204
222
  type: :multi
205
223
  },
206
- municipality_name: {
207
- name: ['urn:mpass.id:municipality', 'urn:educloudalliance.org:municipality'],
224
+ provider_name: {
225
+ name: ['urn:mpass.id:educationProvider'],
208
226
  type: :multi
209
227
  },
210
228
  school_code: {
@@ -231,7 +249,8 @@ module OmniAuth
231
249
  name: ['urn:educloudalliance.org:role'],
232
250
  type: :multi
233
251
  },
234
- # Extra (undocumented)
252
+ # Extra
253
+ # Unique learner ID
235
254
  funet_person_learner_id: ['urn:oid:1.3.6.1.4.1.16161.1.1.27']
236
255
  )
237
256
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module MPASSid
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-mpassid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2022-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-saml