PageRenderTime 36ms queryFilters 171ms Sphinxql 362ms GetByIds 485ms meta 0ms repositoryFilters 613ms languageFilters 0ms sourceFilters 0ms

309 results for 'gitlab oauth2 repo:axil/gitlab-docs' (36 ms)

Source

Language

Repository

gitlab.md https://gitlab.com/gerfuls/gitlab-ce.git | Markdown | 55 lines
1# GitLab OAuth2 OmniAuth Provider
2
2
3To enable the GitLab OmniAuth provider you must register your application with GitLab. GitLab will generate a client ID and secret key for you to use.
4
131.  Provide the required details.
14    - Name: This can be anything. Consider something like "\<Organization\>'s GitLab" or "\<Your Name\>'s GitLab" or something else descriptive.
15    - Redirect URI: 
18    http://gitlab.example.com/import/gitlab/callback
19    http://gitlab.example.com/users/auth/gitlab/callback
20    ```
27
281.  On your GitLab server, open the configuration file.
29
53
54On the sign in page there should now be a GitLab icon below the regular sign in form. Click the icon to begin the authentication process. GitLab will ask the user to sign in and authorize the GitLab application. If everything goes well the user will be returned to your GitLab instance and will be signed in.
55
test_www_oauth.py https://github.com/djmitche/buildbot.git | Python | 557 lines
43if requests:
44    from buildbot.www import oauth2  # pylint: disable=ungrouped-imports
45
74            "ghclientID", "clientSECRET", serverURL="https://git.corp.fakecorp.com")
75        self.gitlabAuth = oauth2.GitLabAuth(
76            "https://gitlab.test/", "glclientID", "clientSECRET")
443        self.assertEqual(self.gitlabAuth.getConfigDict(), {'fa_icon': 'fa-git', 'autologin': False,
444                                                           'name': 'GitLab', 'oauth2': True})
445        self.assertEqual(self.bitbucketAuth.getConfigDict(), {'fa_icon': 'fa-bitbucket', 'autologin': False,
548
549class OAuth2AuthGoogleE2E(OAuth2AuthGitHubE2E):
550    authClass = "GoogleAuth"
552
553class OAuth2AuthGitLabE2E(OAuth2AuthGitHubE2E):
554    authClass = "GitLabAuth"
oauth2.py https://github.com/djmitche/buildbot.git | Python | 388 lines
41
42class OAuth2LoginResource(auth.LoginResource):
43    # disable reconfigResource calls
79class OAuth2Auth(auth.AuthBase):
80    name = 'oauth2'
81    getTokenUseAuthHeaders = False
104        return dict(name=self.name,
105                    oauth2=True,
106                    fa_icon=self.faIcon,
110    def getLoginResource(self):
111        return OAuth2LoginResource(self.master, self)
112
348
349class GitLabAuth(OAuth2Auth):
350    name = "GitLab"
test_www_oauth.py git://github.com/djmitche/buildbot.git | Python | 557 lines
43if requests:
44    from buildbot.www import oauth2  # pylint: disable=ungrouped-imports
45
74            "ghclientID", "clientSECRET", serverURL="https://git.corp.fakecorp.com")
75        self.gitlabAuth = oauth2.GitLabAuth(
76            "https://gitlab.test/", "glclientID", "clientSECRET")
443        self.assertEqual(self.gitlabAuth.getConfigDict(), {'fa_icon': 'fa-git', 'autologin': False,
444                                                           'name': 'GitLab', 'oauth2': True})
445        self.assertEqual(self.bitbucketAuth.getConfigDict(), {'fa_icon': 'fa-bitbucket', 'autologin': False,
548
549class OAuth2AuthGoogleE2E(OAuth2AuthGitHubE2E):
550    authClass = "GoogleAuth"
552
553class OAuth2AuthGitLabE2E(OAuth2AuthGitHubE2E):
554    authClass = "GitLabAuth"
test_www_oauth.py git://github.com/buildbot/buildbot.git | Python | 590 lines
46if requests:
47    from buildbot.www import oauth2  # pylint: disable=ungrouped-imports
48
80            "ghclientID", "clientSECRET", serverURL="https://git.corp.fakecorp.com")
81        self.gitlabAuth = oauth2.GitLabAuth(
82            "https://gitlab.test/", "glclientID", "clientSECRET")
473        self.assertEqual(self.gitlabAuth.getConfigDict(), {'fa_icon': 'fa-git', 'autologin': False,
474                                                           'name': 'GitLab', 'oauth2': True})
475        self.assertEqual(self.bitbucketAuth.getConfigDict(), {'fa_icon': 'fa-bitbucket',
581
582class OAuth2AuthGoogleE2E(OAuth2AuthGitHubE2E):
583    authClass = "GoogleAuth"
585
586class OAuth2AuthGitLabE2E(OAuth2AuthGitHubE2E):
587    authClass = "GitLabAuth"
oauth2.md git://github.com/gitlabhq/gitlabhq.git | Markdown | 254 lines
1# GitLab as an OAuth2 provider
2
3This document covers using the [OAuth2](https://oauth.net/2/) protocol to allow
4other services to access GitLab resources on user's behalf.
5
5
6If you want GitLab to be an OAuth authentication service provider to sign into
7other services, see the [OAuth2 authentication service provider](../integration/oauth_provider.md)
10
11## Supported OAuth2 flows
12
12
13GitLab currently supports the following authorization flows:
14
101CAUTION: **Important:**
102Avoid using this flow for applications that store data outside of the GitLab
103instance. If you do, make sure to verify `application id` associated with the
README.md https://gitlab.com/ivenvd/gitlab-ce.git | Markdown | 208 lines
23
24Find API Clients for GitLab [on our website](https://about.gitlab.com/applications/#api-clients).
25
53
54## Authentication with OAuth2 token
55
55
56Instead of the private_token you can transmit the OAuth2 access token as a header or as a parameter.
57
57
58### OAuth2 token (as a parameter)
59
69
70Read more about [OAuth2 in GitLab](oauth2.md).
71
oauth2.md https://gitlab.com/corehook/gitlab-ce.git | Markdown | 102 lines
1# GitLab as an OAuth2 client
2
3This document is about using other OAuth authentication service providers to sign into GitLab.
4If you want GitLab to be an OAuth authentication service provider to sign into other services please see the [Oauth2 provider documentation](../integration/oauth_provider.md).
5
5
6OAuth2 is a protocol that enables us to authenticate a user without requiring them to give their password. 
7
7
8Before using the OAuth2 you should create an application in user's account. Each application gets a unique App ID and App Secret parameters. You should not share these.
9
95
96For testing you can use the oauth2 ruby gem:
97
98```
99client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
100access_token = client.password.get_token('user@example.com', 'sekret')
oauth2.md https://gitlab.com/mullingitover/gitlab-ce.git | Markdown | 102 lines
1# GitLab as an OAuth2 client
2
3This document is about using other OAuth authentication service providers to sign into GitLab.
4If you want GitLab to be an OAuth authentication service provider to sign into other services please see the [Oauth2 provider documentation](../integration/oauth_provider.md).
5
5
6OAuth2 is a protocol that enables us to authenticate a user without requiring them to give their password. 
7
7
8Before using the OAuth2 you should create an application in user's account. Each application gets a unique App ID and App Secret parameters. You should not share these.
9
95
96For testing you can use the oauth2 ruby gem:
97
98```
99client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
100access_token = client.password.get_token('user@example.com', 'sekret')
oauth2.md https://gitlab.com/muhonglong/gitlab-ce.git | Markdown | 102 lines
1# GitLab as an OAuth2 client
2
3This document is about using other OAuth authentication service providers to sign into GitLab.
4If you want GitLab to be an OAuth authentication service provider to sign into other services please see the [Oauth2 provider documentation](../integration/oauth_provider.md).
5
5
6OAuth2 is a protocol that enables us to authenticate a user without requiring them to give their password. 
7
7
8Before using the OAuth2 you should create an application in user's account. Each application gets a unique App ID and App Secret parameters. You should not share these.
9
95
96For testing you can use the oauth2 ruby gem:
97
98```
99client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
100access_token = client.password.get_token('user@example.com', 'sekret')
oauth2.md https://gitlab.com/mitio/gitlab-ce.git | Markdown | 102 lines
1# GitLab as an OAuth2 client
2
3This document is about using other OAuth authentication service providers to sign into GitLab.
4If you want GitLab to be an OAuth authentication service provider to sign into other services please see the [Oauth2 provider documentation](../integration/oauth_provider.md).
5
5
6OAuth2 is a protocol that enables us to authenticate a user without requiring them to give their password. 
7
7
8Before using the OAuth2 you should create an application in user's account. Each application gets a unique App ID and App Secret parameters. You should not share these.
9
95
96For testing you can use the oauth2 ruby gem:
97
98```
99client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
100access_token = client.password.get_token('user@example.com', 'sekret')
oauth2.md https://gitlab.com/m0v0nage/gitlab-ce.git | Markdown | 102 lines
1# GitLab as an OAuth2 client
2
3This document is about using other OAuth authentication service providers to sign into GitLab.
4If you want GitLab to be an OAuth authentication service provider to sign into other services please see the [Oauth2 provider documentation](../integration/oauth_provider.md).
5
5
6OAuth2 is a protocol that enables us to authenticate a user without requiring them to give their password. 
7
7
8Before using the OAuth2 you should create an application in user's account. Each application gets a unique App ID and App Secret parameters. You should not share these.
9
95
96For testing you can use the oauth2 ruby gem:
97
98```
99client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
100access_token = client.password.get_token('user@example.com', 'sekret')
oauth2.md https://gitlab.com/IveWang/gitlab-ce.git | Markdown | 102 lines
1# GitLab as an OAuth2 client
2
3This document is about using other OAuth authentication service providers to sign into GitLab.
4If you want GitLab to be an OAuth authentication service provider to sign into other services please see the [Oauth2 provider documentation](../integration/oauth_provider.md).
5
5
6OAuth2 is a protocol that enables us to authenticate a user without requiring them to give their password. 
7
7
8Before using the OAuth2 you should create an application in user's account. Each application gets a unique App ID and App Secret parameters. You should not share these.
9
95
96For testing you can use the oauth2 ruby gem:
97
98```
99client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
100access_token = client.password.get_token('user@example.com', 'sekret')
oauth2.md https://gitlab.com/axil/gitlab-ee.git | Markdown | 102 lines
1# GitLab as an OAuth2 client
2
3This document is about using other OAuth authentication service providers to sign into GitLab.
4If you want GitLab to be an OAuth authentication service provider to sign into other services please see the [Oauth2 provider documentation](../integration/oauth_provider.md).
5
5
6OAuth2 is a protocol that enables us to authenticate a user without requiring them to give their password. 
7
7
8Before using the OAuth2 you should create an application in user's account. Each application gets a unique App ID and App Secret parameters. You should not share these.
9
95
96For testing you can use the oauth2 ruby gem:
97
98```
99client = OAuth2::Client.new('the_client_id', 'the_client_secret', :site => "http://example.com")
100access_token = client.password.get_token('user@example.com', 'sekret')
GitLab.php git://github.com/composer/composer.git | PHP | 187 lines
23 */
24class GitLab
25{
53     *
54     * @param string $originUrl The host this GitLab instance is located at
55     *
62
63        if (!in_array($originUrl, $this->config->get('gitlab-domains'), true) && !in_array($bcOriginUrl, $this->config->get('gitlab-domains'), true)) {
64            return false;
67        // if available use token from git config
68        if (0 === $this->process->execute('git config gitlab.accesstoken', $output)) {
69            $this->io->setAuthentication($originUrl, trim($output), 'oauth2');
74        // if available use deploy token from git config
75        if (0 === $this->process->execute('git config gitlab.deploytoken.user', $tokenUser) && 0 === $this->process->execute('git config gitlab.deploytoken.token', $tokenPassword)) {
76            $this->io->setAuthentication($originUrl, trim($tokenUser), trim($tokenPassword));
GitLab.php https://bitbucket.org/kbasarab/kbasarab_vim.git | PHP | 153 lines
23 */
24class GitLab
25{
47    /**
48     * Attempts to authorize a GitLab domain via OAuth.
49     *
49     *
50     * @param string $originUrl The host this GitLab instance is located at
51     *
55    {
56        if (!in_array($originUrl, $this->config->get('gitlab-domains'), true)) {
57            return false;
60        // if available use token from git config
61        if (0 === $this->process->execute('git config gitlab.accesstoken', $output)) {
62            $this->io->setAuthentication($originUrl, trim($output), 'oauth2');
2015-03-25-gitlab-7-9-1-released.markdown https://gitlab.com/nansione/www-gitlab-com.git | Markdown | 58 lines
9
10Today we release GitLab 7.9.1 CE, EE and GitLab CI 7.9.1.
11
40
41Omnibus-gitlab packages for GitLab 7.9.1 are [now available](https://about.gitlab.com/downloads/).
42
46
47To upgrade a GitLab CI installation from source, please use the [upgrade guide](https://gitlab.com/gitlab-org/gitlab-ci/blob/master/doc/update/patch_versions.md).
48
50
51Omnibus packages for GitLab Enterprise Edition 7.9.1 are available for subscribers [here](https://gitlab.com/subscribers/gitlab-ee/blob/master/doc/install/packages.md). For installations from source, use [this guide](https://gitlab.com/subscribers/gitlab-ee/blob/master/doc/update/patch_versions.md).
52
53Interested in GitLab Enterprise Edition?
54For an overview of feature exclusive to GitLab Enterprise Edition please have a look at the [features exclusive to GitLab EE](http://about.gitlab.com/features/#enterprise).
55
README.md https://gitlab.com/fostertheweb/gitlab-ci.git | Markdown | 277 lines
94    # Create the GitLab CI production database & grant all privileges on database
95    template1=# CREATE DATABASE gitlab_ci_production OWNER gitlab_ci;
96
106
107    sudo -u gitlab_ci -H git clone https://gitlab.com/gitlab-org/gitlab-ci.git
108
173
174    sudo cp /home/gitlab_ci/gitlab-ci/lib/support/init.d/gitlab_ci /etc/init.d/gitlab_ci
175
198
199    sudo cp /home/gitlab_ci/gitlab-ci/lib/support/nginx/gitlab_ci /etc/nginx/sites-available/gitlab_ci
200    sudo ln -s /etc/nginx/sites-available/gitlab_ci /etc/nginx/sites-enabled/gitlab_ci
238Now you need Runners to process your builds.
239Checkout the [Gitlab Runner section](https://about.gitlab.com/gitlab-ci/#gitlab-runner) to install it
240
installation.md https://gitlab.com/fabien-archambault/gitlab-ci.git | Markdown | 265 lines
94    # Create the GitLab CI production database & grant all privileges on database
95    template1=# CREATE DATABASE gitlab_ci_production OWNER gitlab_ci;
96
106
107    sudo -u gitlab_ci -H git clone https://gitlab.com/gitlab-org/gitlab-ci.git
108
161
162    sudo cp /home/gitlab_ci/gitlab-ci/lib/support/init.d/gitlab_ci /etc/init.d/gitlab_ci
163
186
187    sudo cp /home/gitlab_ci/gitlab-ci/lib/support/nginx/gitlab_ci /etc/nginx/sites-available/gitlab_ci
188    sudo ln -s /etc/nginx/sites-available/gitlab_ci /etc/nginx/sites-enabled/gitlab_ci
226Now you need Runners to process your builds.
227Checkout the [Gitlab Runner section](https://about.gitlab.com/gitlab-ci/#gitlab-runner) to install it
228
installation.md https://gitlab.com/axil/gitlab-ci.git | Markdown | 263 lines
92    # Create the GitLab CI production database & grant all privileges on database
93    template1=# CREATE DATABASE gitlab_ci_production OWNER gitlab_ci;
94
104
105    sudo -u gitlab_ci -H git clone https://gitlab.com/gitlab-org/gitlab-ci.git
106
159
160    sudo cp /home/gitlab_ci/gitlab-ci/lib/support/init.d/gitlab_ci /etc/init.d/gitlab_ci
161
184
185    sudo cp /home/gitlab_ci/gitlab-ci/lib/support/nginx/gitlab_ci /etc/nginx/sites-available/gitlab_ci
186    sudo ln -s /etc/nginx/sites-available/gitlab_ci /etc/nginx/sites-enabled/gitlab_ci
224Now you need Runners to process your builds.
225Checkout the #{link_to 'GitLab Runner section', 'https://about.gitlab.com/gitlab-ci/#gitlab-runner', target: '_blank'} to install it
226
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16