{"id":13781597,"url":"https://github.com/rubenmoya/adonis-ally-gitlab","last_synced_at":"2025-07-06T00:37:27.557Z","repository":{"id":45022591,"uuid":"409868901","full_name":"rubenmoya/adonis-ally-gitlab","owner":"rubenmoya","description":"A Gitlab driver of AdonisJS Ally","archived":false,"fork":false,"pushed_at":"2024-04-05T23:54:06.000Z","size":33,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T18:12:00.356Z","etag":null,"topics":["adonis-ally","adonis-ally-gitlab","adonis-framework","adonisjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rubenmoya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-24T07:13:32.000Z","updated_at":"2024-09-09T10:28:20.000Z","dependencies_parsed_at":"2023-11-18T02:01:41.734Z","dependency_job_id":"cca6b284-bbd3-4570-b400-7826345c382f","html_url":"https://github.com/rubenmoya/adonis-ally-gitlab","commit_stats":{"total_commits":20,"total_committers":4,"mean_commits":5.0,"dds":0.5,"last_synced_commit":"5c4843443f3c94f1b5361b58b5ab88221b606984"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rubenmoya/adonis-ally-gitlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenmoya%2Fadonis-ally-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenmoya%2Fadonis-ally-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenmoya%2Fadonis-ally-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenmoya%2Fadonis-ally-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rubenmoya","download_url":"https://codeload.github.com/rubenmoya/adonis-ally-gitlab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rubenmoya%2Fadonis-ally-gitlab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263832484,"owners_count":23517350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adonis-ally","adonis-ally-gitlab","adonis-framework","adonisjs"],"created_at":"2024-08-03T18:01:27.504Z","updated_at":"2025-07-06T00:37:27.466Z","avatar_url":"https://github.com/rubenmoya.png","language":"TypeScript","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"# Adonis Ally Gitlab Driver\n\n[![NPM version](https://img.shields.io/npm/v/adonis-ally-gitlab.svg)](https://www.npmjs.com/package/adonis-ally-gitlab)\n\nA [Gitlab](https://gitlab.com/) driver for [AdonisJS Ally](https://docs.adonisjs.com/guides/auth/social).\nYou can authenticate with your self hosted gitlab or with https://gitlab.com/\n\n## Getting started\n\n### 1. Install the package\n\nInstall the package from your command line.\n\n```bash\nnpm install --save adonis-ally-gitlab\n```\n\nor\n\n```bash\nyarn add adonis-ally-gitlab\n```\n\n### 2. Configure the package\n\n```bash\nnode ace configure adonis-ally-gitlab\n```\n\n### 3. Validate environment variables\n\n```ts\nGITLAB_URL: Env.schema.string(),\nGITLAB_CLIENT_ID: Env.schema.string(),\nGITLAB_CLIENT_SECRET: Env.schema.string(),\n```\n\n### 4. Add variables to your ally configuration\n\n```ts\nconst allyConfig: AllyConfig = {\n  // ... other drivers\n  gitlab: {\n    driver: 'gitlab',\n    gitlabUrl: 'https://gitlab.example.com/'\n    clientId: Env.get('GITLAB_CLIENT_ID'),\n    clientSecret: Env.get('GITLAB_CLIENT_SECRET'),\n    callbackUrl: 'http://localhost:3333/gitlab/callback',\n  },\n}\n```\n\nIf you don't supply gitlabUrl, https://www.gitlab.com/ will be used.\n\nWhen using self hosted gitlab,\nget the clientId and clientSecret from /admin/applications/ on your gitlab instance.\n\n## Scopes\n\nYou can pass an array of scopes in your configuration, for example `['read_user', 'profile', 'api']`. You have a full list of scopes in the [Gitlab Oauth documentation](https://docs.gitlab.com/ee/integration/oauth_provider.html#authorized-applications)\n\n## How it works\n\nYou can learn more about [AdonisJS Ally](https://docs.adonisjs.com/guides/auth/social) in the documentation. And learn about the implementation in the [ally-driver-boilerplate](https://github.com/adonisjs-community/ally-driver-boilerplate) repository.\n\n## Contributing\n\n1. Fork the repo\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'feat: Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenmoya%2Fadonis-ally-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubenmoya%2Fadonis-ally-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubenmoya%2Fadonis-ally-gitlab/lists"}