As according to http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg: "If the Client has not provided a value for sector_identifier_uri in Dynamic Client Registration [OpenID.Registration], the Sector Identifier used for pairwise identifier calculation is the host component of the registered redirect_uri."
13 lines
372 B
Ruby
13 lines
372 B
Ruby
class CreatePairwisePseudonymousIdentifiers < ActiveRecord::Migration
|
|
def change
|
|
create_table :ppid do |t|
|
|
t.belongs_to :o_auth_application, index: true
|
|
t.belongs_to :user, index: true
|
|
|
|
t.string :guid, :string, limit: 32
|
|
t.string :identifier
|
|
end
|
|
add_foreign_key :ppid, :o_auth_applications
|
|
add_foreign_key :ppid, :users
|
|
end
|
|
end
|