Comments (8)
@consideRatio could you please help us out here?
from nativeauthenticator.
- Let's install nativeauthenticator in the jupyterhub hub docker image.
- You don't have that issue you describe with timestamp in the latest jupyterhub (beta.3 or even later development releases)
Then - let's think more about it all. I'll be back!
from nativeauthenticator.
@leportella @consideRatio any news/update?
from nativeauthenticator.
I'll go add it to the docker image right now as a break from my work :)
from nativeauthenticator.
jupyterhub/zero-to-jupyterhub-k8s#1583
from nativeauthenticator.
@bebosudo Try out version 0.9.0-beta.3.n040.hb5c8dce for k8s 1.16/1.17 compatebility and nativeauthenticator available
Configure it as it were a custom authenticator, im too time constrained to help more right now - thanks for exploring its use!
from nativeauthenticator.
Hi, thanks for your work! Using release 0.9.0-beta.4.n000.h72e54ee
I was able to have a nativeauthenticator almost working.
The config I ended up using is the following, as I reported in another issue in jupyterhub/zero-to-jupyterhub-k8s#84 (comment):
hub:
# Image that manages the user login and jupyterlab creation.
# Use the same tag used when installing with helm.
image:
name: jupyterhub/k8s-hub
tag: 0.9.0-beta.4.n000.h72e54ee
services:
testService:
admin: true
apiToken: "aec7d32df938c0f55e54f09244a350cb29ea612907ed4f07be13d9553d18a8e4"
auth:
type: "custom"
custom:
className: "nativeauthenticator.NativeAuthenticator"
admin:
users:
- admin1
whitelist:
users:
- test1
- test2
# other non-relevant stuff
My question is: how can I define password for the admins and users, if it's possible at all?
Is there any k8s Secret object I need to define?
I don't see any useful user management endpoint in the REST API doc: https://jupyterhub.readthedocs.io/en/stable/_static/rest-api/index.html
I'm fine with creating them from an external script, something that I could place in a CronJob and repeat every hour or so, to make sure they exist.
Moreover: what is a service in jhub?
If I now list the services I get also a testService
, the one I just created to access the API, along with the cull service:
$ curl -L -H "accept: application/json" -H "Authorization: token aec7d32df938c0f55e54f09244a350cb29ea612907ed4f07be13d9553d18a8e4" http://host:port/hub/api/services |python -m json.tool
{
"cull-idle": {
"admin": true,
"command": [
"python3",
"/etc/jupyterhub/cull_idle_servers.py",
"--url=http://127.0.0.1:8081/hub/api",
"--timeout=3600",
"--cull-every=600",
"--concurrency=10"
],
"info": {},
"name": "cull-idle",
"pid": 11,
"prefix": "",
"url": ""
},
"testService": {
"admin": true,
"command": [],
"info": {},
"name": "testService",
"pid": 0,
"prefix": "",
"url": ""
}
}
Could the password-setting operation be performed using a jhub service?
from nativeauthenticator.
nativeauthenticator is being installed automatically as part of z2jh now - I'm closing this issue as resolved.
from nativeauthenticator.
Related Issues (20)
- Confirmation email still sent for allow-listed users
- Enforce no slashes in usernames HOT 1
- Users created from the admin panel control hub are unusable due to lack of password when using NativeAuthenticator HOT 3
- Prepare for deprecation of Authenticator.db HOT 1
- Use user email as username HOT 1
- Release needed for JupyterHub 2 and 3 compatibility HOT 2
- import_from_firstuse not working: Previous users cannot log in or create an account. HOT 1
- Ability to set user environment path (bin folder) for users to use their own kernels HOT 1
- ci: our test system is failing
- '_xsrf' missing in login, signup and password changing pages HOT 1
- Planning for release 1.2.0 - JupyterHub 4 compatibility HOT 1
- Sign-Up email is not sent to admin for registration pending approval HOT 1
- locale.getdefaultlocale() is deprecated HOT 2
- Main branch tests are broken with jupyterhub 1.5.1 and sqlalchemy 1 HOT 1
- Unable to change password with TLJH JupyterHub 4.0.2 HOT 2
- Authorize Users link not showing for RBAC-authorized users HOT 1
- Test failure in main branch HOT 2
- Automatically notify the user once his account is authorized HOT 1
- SSL: WRONG_VERSION_NUMBER HOT 2
- Set template problem that style is error HOT 1
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 nativeauthenticator.