Comments (9)
is there a CLi command to create the required hs256.json credrentials ?
Or some readme instructions ?
from papernet.
Indeed, it is not specified anywhere. I'll add that to the README 👍
I used https://mkjwk.org/ to generate it with the following:
setting the key id to whatever
from papernet.
ok. I grabbed the keypair resultset ( the middle pane).
slapped it in the hs256.json file.
Now getting further 👍
x-MacBook-Pro:papernet apple$ go run cmd/web/main.go
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /ping --> github.com/bobinette/papernet/gin.New.func3 (4 handlers)
[GIN-debug] GET /auth/v2/me --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
[GIN-debug] POST /auth/v2/bookmarks --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
[GIN-debug] GET /auth/v2/teams --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
[GIN-debug] POST /auth/v2/teams --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
[GIN-debug] DELETE /auth/v2/teams/:id --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
[GIN-debug] POST /auth/v2/teams/:id/invite --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
[GIN-debug] POST /auth/v2/teams/:id/kick --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
[GIN-debug] POST /auth/v2/teams/:id/share --> github.com/bobinette/papernet/gin.wrapH.func1 (4 handlers)
FATA[0000] could not instantiate google service env=dev
exit status 1
from papernet.
Hmm oops, it seems I forgot to log the error here: https://github.com/bobinette/papernet/blob/master/cmd/web/main.go#L109
If you add it, the message will definitely be clearer
I think you are missing the google configuration to use google login. You need credentials to be able to start the server. I'll add that to the README as well, and when I have the time, make a no-auth version of it.
If you are using the front as well, I think you might be able to skip the google part already by:
- removing the lines in
web/cmd/main.go
dealing with google auth - creating a user via the cli
- changing the initial state of the auth reducer in the front project, here: https://github.com/bobinette/papernet-front/blob/master/src/auth/reducer.js#L5 to pretend the user is loaded and already has the id you want
I don't have much time to work on it these days, but I'll fix those as soon as I can, I'll let you know here 🙂
from papernet.
from papernet.
There is now a new login system based on email and password that you can use locally instead of the Google oauth system. It does not come with email confirmation and password reset but as it is intended to be used locally only (at least for now), I do not think those features are needed 🙂
To get rid of the google oauth provider, edit the configuration:
# other stuff
[oauth.google]
enabled=false
# other stuff
This should do the trick. Regarding the cli, it should work as long as you do not try to use the oauth
sub-command. Let me know if you run into more problems, I'll fix them as soon as I can 🙂
from papernet.
ah nice. will make it easier to get going.
As far as email confirmation and 2 factor auth its pretty easy to add that these days actually.
i use twillo (sms), but also yubikey hardware.
email libs for golang are pretty good. https://github.com/emersion/go-imap is pretty solid.
from papernet.
I'm quite happy with Google auth in "production" so far, but if/when email confirmation is needed, I'll have a look at those 😉
from papernet.
ok. maybe laters then ..
from papernet.
Related Issues (20)
- Import from a link
- Introduce teams HOT 1
- Steps to setup HOT 5
- Refresh user information from google HOT 3
- Impossible to sign up HOT 1
- Boltdb orm HOT 1
- stable build HOT 4
- Cannot add a paper from arxiv HOT 3
- cli HOT 2
- docker-compose file for quick boostrap HOT 5
- Edition mode - cursor sent to bottom of the page HOT 3
- Blank page when editing HOT 1
- Enhance search HOT 1
- I want to add children to a paper
- Have a dedicated filter by tags with exact match
- More fields for search in arxiv
- Investigate go-kit HOT 4
- Handle refused authorization from google
- Incorrect sorting in papers list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papernet.