Skip to content

jdamick/nexus-gitlab-token-auth-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nexus authentication using Gitlab User token

Build Status

Install

  • Unzip the bundle (target/nexus-gitlab-token-auth-plugin-0.1.0-SNAPSHOT-bundle.zip) under sonatype-work/nexus/plugin-repository
  • Copy & Edit the sample/gitlab-plugin.xml to: sonatype-work/nexus/conf/gitlab-plugin.xml
  • Start Nexus and use the Administration->Server panel to add Gitlab Token Authentication Realm to the list of active realms.

Configuration

 <?xml version="1.0" encoding="UTF-8"?>
 <gitlabConfiguration>
  <gitlabServerUrl>https://git.nexgen.neustar.biz</gitlabServerUrl>
  <defaultRoles>
    <defaultRole>person</defaultRole>
  </defaultRoles>
  <adminRoles>
    <adminRole>nx-admin</adminRole>
  </adminRoles>
 </gitlabConfiguration>

Development

First: mvn generate-sources

This generates Configuration stubs

Then you can make changes using the configuration classes.

Build: mvn clean install -DskipTests=true

Generates: target/nexus-gitlab-token-auth-plugin-0.3.0-SNAPSHOT-bundle.zip

Integration Tests: mvn clean integration-test -P it

Now you can run Integration Tests: mvn test

Credits

Thanks to the Crowd Plugin: https://github.com/PatrickRoumanoff/nexus-crowd-plugin This was heavily influenced and adapted for Gitlab.

About

Nexus Authentication using a Gitlab User token

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages