mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-10 00:11:22 +08:00
Update Doorkeeper configuration [SCI-5497]
This commit is contained in:
parent
68bace8ba2
commit
afbd763125
4 changed files with 27 additions and 7 deletions
|
|
@ -49,7 +49,7 @@ Doorkeeper.configure do
|
||||||
# Define access token scopes for your provider
|
# Define access token scopes for your provider
|
||||||
# For more information go to
|
# For more information go to
|
||||||
# https://github.com/doorkeeper-gem/doorkeeper/wiki/Using-Scopes
|
# https://github.com/doorkeeper-gem/doorkeeper/wiki/Using-Scopes
|
||||||
# default_scopes :public
|
default_scopes :public
|
||||||
# optional_scopes :write, :update
|
# optional_scopes :write, :update
|
||||||
|
|
||||||
# Change the way client credentials are retrieved from the request object.
|
# Change the way client credentials are retrieved from the request object.
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,13 @@ en:
|
||||||
failed_to_save: "Failed to create new user"
|
failed_to_save: "Failed to create new user"
|
||||||
|
|
||||||
doorkeeper:
|
doorkeeper:
|
||||||
|
errors:
|
||||||
|
messages:
|
||||||
|
invalid_request:
|
||||||
|
unknown: 'The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.'
|
||||||
|
missing_param: 'Missing required parameter: %{value}.'
|
||||||
|
not_support_pkce: 'Invalid code_verifier parameter. Server does not support pkce.'
|
||||||
|
request_not_authorized: 'Request need to be authorized. Required parameter for authorizing request is missing or invalid.'
|
||||||
authorizations:
|
authorizations:
|
||||||
buttons:
|
buttons:
|
||||||
authorize: "Authorize"
|
authorize: "Authorize"
|
||||||
|
|
|
||||||
12
db/migrate/20210217114042_update_doorkeeper_table.rb
Normal file
12
db/migrate/20210217114042_update_doorkeeper_table.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
class UpdateDoorkeeperTable < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
reversible do |dir|
|
||||||
|
dir.up do
|
||||||
|
change_column :oauth_access_grants, :scopes, :string, null: false, default: ''
|
||||||
|
end
|
||||||
|
dir.down do
|
||||||
|
change_column :oauth_access_grants, :scopes, :string
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -922,7 +922,7 @@ CREATE TABLE public.oauth_access_grants (
|
||||||
redirect_uri text NOT NULL,
|
redirect_uri text NOT NULL,
|
||||||
created_at timestamp without time zone NOT NULL,
|
created_at timestamp without time zone NOT NULL,
|
||||||
revoked_at timestamp without time zone,
|
revoked_at timestamp without time zone,
|
||||||
scopes character varying
|
scopes character varying DEFAULT ''::character varying NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -4927,10 +4927,10 @@ CREATE INDEX index_repository_cells_on_repository_row_id ON public.repository_ce
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: index_repository_cells_on_value_type_and_value_id; Type: INDEX; Schema: public; Owner: -
|
-- Name: index_repository_cells_on_value; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE INDEX index_repository_cells_on_value_type_and_value_id ON public.repository_cells USING btree (value_type, value_id);
|
CREATE INDEX index_repository_cells_on_value ON public.repository_cells USING btree (value_type, value_id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -5711,10 +5711,10 @@ CREATE INDEX index_view_states_on_user_id ON public.view_states USING btree (use
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: index_view_states_on_viewable_type_and_viewable_id; Type: INDEX; Schema: public; Owner: -
|
-- Name: index_view_states_on_viewable; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE INDEX index_view_states_on_viewable_type_and_viewable_id ON public.view_states USING btree (viewable_type, viewable_id);
|
CREATE INDEX index_view_states_on_viewable ON public.view_states USING btree (viewable_type, viewable_id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
@ -7153,6 +7153,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||||
('20201126203713'),
|
('20201126203713'),
|
||||||
('20201209165626'),
|
('20201209165626'),
|
||||||
('20210128105457'),
|
('20210128105457'),
|
||||||
('20210128105458');
|
('20210128105458'),
|
||||||
|
('20210217114042');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue