Merge pull request #3167 from okriuchykhin/ok_SCI_5497

Update Doorkeeper configuration [SCI-5497]
This commit is contained in:
Alex Kriuchykhin 2021-02-17 14:39:56 +01:00 committed by GitHub
commit 784ec5583a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 7 deletions

View file

@ -49,7 +49,7 @@ Doorkeeper.configure do
# Define access token scopes for your provider
# For more information go to
# https://github.com/doorkeeper-gem/doorkeeper/wiki/Using-Scopes
# default_scopes :public
default_scopes :public
# optional_scopes :write, :update
# Change the way client credentials are retrieved from the request object.

View file

@ -78,6 +78,13 @@ en:
failed_to_save: "Failed to create new user"
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:
buttons:
authorize: "Authorize"

View 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

View file

@ -922,7 +922,7 @@ CREATE TABLE public.oauth_access_grants (
redirect_uri text NOT NULL,
created_at timestamp without time zone NOT NULL,
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'),
('20201209165626'),
('20210128105457'),
('20210128105458');
('20210128105458'),
('20210217114042');