Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. GitLab
  3. How to add gitlab.com as oauth provider

How to add gitlab.com as oauth provider

Scheduled Pinned Locked Moved GitLab
3 Posts 2 Posters 534 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • girishG girish

      I tried adding it now. I couldn't test it because my email id on gitlab.com is my cloudron email, so it's already taken.

      cf8cf143-06af-4077-8455-e0ba25532c47-image.png

      32463 Offline
      32463 Offline
      3246
      wrote on last edited by
      #1

      I'd love this option too, primarily to make moving projects from gitlab.com to my Cloudron gitlab easier 🙂

      I created an app on gitlab.com and was looking to add the oauth details to gitlab.yml, however the instructions on how to convert gitlab.rb to .yml are... somewhat unclear to me.

      How did you do it @girish ?

      ref. https://git.bebraver.cloud/help/integration/gitlab and https://docs.gitlab.com/omnibus/settings/gitlab.yml.html

      👉 Find our more www.bebraver.online

      girishG 1 Reply Last reply
      1
      • girishG girish moved this topic from Discuss on
      • 32463 3246

        I'd love this option too, primarily to make moving projects from gitlab.com to my Cloudron gitlab easier 🙂

        I created an app on gitlab.com and was looking to add the oauth details to gitlab.yml, however the instructions on how to convert gitlab.rb to .yml are... somewhat unclear to me.

        How did you do it @girish ?

        ref. https://git.bebraver.cloud/help/integration/gitlab and https://docs.gitlab.com/omnibus/settings/gitlab.yml.html

        girishG Do not disturb
        girishG Do not disturb
        girish
        Staff
        wrote on last edited by girish
        #2

        @3246 Had to look at what I had in our config. I have this in our /app/data/gitlab.yml :

          omniauth:
            # Allow login via Twitter, Google, etc. using OmniAuth providers
            enabled: true
            allow_single_sign_on: ["github", "gitlab"]
            block_auto_created_users: false
            external_providers: []
            providers:
              - {name: 'github', app_id: 'xx', app_secret: 'yy', url: "https://github.com/", verify_ssl: true, args: {scope: 'user:email'}}
              - {name: 'gitlab', app_id: 'xx', app_secret: 'yy', args: {scope: 'read_user'}}
        

        The above has gitlab.com and github.com. You can remove github.com if you don't need it.

        32463 1 Reply Last reply
        2
        • girishG girish

          @3246 Had to look at what I had in our config. I have this in our /app/data/gitlab.yml :

            omniauth:
              # Allow login via Twitter, Google, etc. using OmniAuth providers
              enabled: true
              allow_single_sign_on: ["github", "gitlab"]
              block_auto_created_users: false
              external_providers: []
              providers:
                - {name: 'github', app_id: 'xx', app_secret: 'yy', url: "https://github.com/", verify_ssl: true, args: {scope: 'user:email'}}
                - {name: 'gitlab', app_id: 'xx', app_secret: 'yy', args: {scope: 'read_user'}}
          

          The above has gitlab.com and github.com. You can remove github.com if you don't need it.

          32463 Offline
          32463 Offline
          3246
          wrote on last edited by
          #3

          @girish thank you, I'll have a look 🙂

          👉 Find our more www.bebraver.online

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search