Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
36d0178b
Commit
36d0178b
authored
Jul 28, 2020
by
Jeremy Jackson
Committed by
charlie ablett
Jul 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Seeds for customer oauth application and billing
parent
bff83d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
db/fixtures/development/28_integrations.rb
db/fixtures/development/28_integrations.rb
+28
-0
No files found.
db/fixtures/development/28_integrations.rb
0 → 100644
View file @
36d0178b
# frozen_string_literal: true
Gitlab
::
Seeder
.
quiet
do
# This is only enabled if you're going to be using the customer portal in
# development.
# CUSTOMER_PORTAL_URL=https://your.ngrok.io FILTER=integrations rake db:seed_fu
flag
=
'CUSTOMER_PORTAL_URL'
if
ENV
[
flag
]
ApplicationSetting
.
current_without_cache
.
update!
(
check_namespace_plan:
true
)
print
'.'
Doorkeeper
::
Application
.
create!
(
name:
'Customer Portal Development'
,
uid:
'28cc28f03b415fbc737a7364dc06af0adf12688e1b0c6669baf6850a6855132b'
,
secret:
'74c96596ec3f82dd137dd5775f31eba919f77b0a3114611f0411d148d727c64c'
,
redirect_uri:
"
#{
ENV
[
'CUSTOMER_PORTAL_URL'
]
}
/auth/gitlab/callback"
,
scopes:
'api read_user openid'
,
trusted:
true
,
confidential:
true
)
print
'.'
else
puts
"Skipped. To enable, set the `
#{
flag
}
` environment variable to your development customer's portal url."
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment