File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ def other_phase
115
115
settings = OneLogin ::RubySaml ::Settings . new ( options )
116
116
if options . request_attributes . length > 0
117
117
settings . attribute_consuming_service . service_name options . attribute_service_name
118
+ settings . issuer = options . issuer
118
119
options . request_attributes . each do |attribute |
119
120
settings . attribute_consuming_service . add_attribute attribute
120
121
end
Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ def post_xml(xml=:example_response)
207
207
208
208
describe 'GET /auth/saml/metadata' do
209
209
before do
210
+ saml_options [ :issuer ] = 'http://example.com/SAML'
210
211
get '/auth/saml/metadata'
211
212
end
212
213
@@ -220,6 +221,8 @@ def post_xml(xml=:example_response)
220
221
expect ( last_response . body ) . to match /first_name/
221
222
expect ( last_response . body ) . to match /last_name/
222
223
expect ( last_response . body ) . to match /Required attributes/
224
+ expect ( last_response . body ) . to match /entityID/
225
+ expect ( last_response . body ) . to match /http:\/ \/ example.com\/ SAML/
223
226
end
224
227
end
225
228
You can’t perform that action at this time.
0 commit comments