mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
2172c102c9
Send the scope as a string separated with spaces to the OIDC provider.
10 lines
355 B
Ruby
10 lines
355 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Previously, the OpenID Connect scope was a string, scopes were separated by commas.
|
|
# To be more fron-end friendly, we now use an array.
|
|
class ChangeOidcScopeToArray < ActiveRecord::Migration[5.2]
|
|
def change
|
|
change_column :open_id_connect_providers, :scope, "varchar[] USING (string_to_array(scope, ','))"
|
|
end
|
|
end
|