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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    How to add gitlab.com as oauth provider

    GitLab
    2
    3
    186
    Loading More Posts
    • 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.
    • 3246
      3246 @girish last edited by

      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

      Visit https://www.bebravernow.com for more

      girish 1 Reply Last reply Reply Quote 1
      • Moved from Discuss by  girish girish 
      • girish
        girish Staff @3246 last edited by 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.

        3246 1 Reply Last reply Reply Quote 2
        • 3246
          3246 @girish last edited by

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

          Visit https://www.bebravernow.com for more

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB