Skip to content

Sinopia authentication plugin with github oauth web flow

License

Notifications You must be signed in to change notification settings

hipages/sinopia-github-oauth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sinopia-github-oauth

Sinopia authentication plugin with github oauth web flow

This will allow you to auth via github web oauth flow. It is compatible with sinopia2 (v2.0.2 and later)

Installation

Configuration

Add the following in your config.yaml

middlewares:
  github-oauth:
    client-id: github-app-id # required
    client-secret: github-app-secret # required

auth:
  github-oauth:
    org: soundtrackyourbrand # required, people within this org will be able to auth
    cache-ttl-ms: 60000 # default to 30s if not present

Alternatively, this fork allows you to use environment variables to configure the client-id and client-secret. Respectively: OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET.

Run

$ sinopia -c /path/to/config.yaml -l 0.0.0.0:4873

Authenticating

You cannot use npm login to authenticate via this method, instead install sinopia-github-oauth-cli

About

Sinopia authentication plugin with github oauth web flow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%