OrienteerBAP / JNPM

Native Java API to work with JavaScript Node Package Manager (NPM): query, retrieve, pack into jar (webjars), CDN
Apache License 2.0
20 stars 1 forks source link

Support for Bearer-Authentication in addition to Basic-Authentication #26

Closed blaurockm closed 3 months ago

blaurockm commented 3 months ago

private NPM-Registries like thosae from gitlab only support bearer-authentication.

Minimal changes to make this work are in this pull-request. Using the username as the token.

Maybe a better solution would be, to add another parameter like "authToken" or something.

What do you think?

PhantomYdn commented 3 months ago

@blaurockm , imho for know, implementation looks good. Thank you for your contribution!