Giter Club home page Giter Club logo

deephaven-auth's Introduction

Deephaven + Auth with Keycloak

Experiment to get the authentication layer working, inspired by these instructions: https://github.com/deephaven/deephaven-core/tree/main/authentication/example-providers/oidc

Run this repo

cd ~
git clone [email protected]:kzk2000/deephaven-auth.git
cd deephaven-auth
docker-compose build --no-cache
docker-compose up -d

The keycloak container takes 10+ sec to come up, usually all 3 containers should come up within < 20 seconds.

  • To test that ODIC is working, go to http://localhost:10000/jsapi/authentication/oidc.html
    Click the Go button and it will redirect you to the Keycloak login screen.
  • Keycloak is running at hardcoded IP address 10.222.1.10:8080, a requirement so it is accessible under the same URL
    • within the docker network, and
    • outside the docker network from your local web browser
  • Deephaven UI runs under http://localhost:10000
    • To log in, enter user/user or admin/admin as user/password (see deephaven_realm.json)

    • To log out, hit the little wheel in the upper right of the DH UI, and you will see the logout option:

Prerequisite details

Required external .jar lib

We need deephaven-oidc-authentication-provider-0.24.2-all.jar which we directly download into the Deephaven container during the build.

Build from scratch (more for the interested folks who want to learn how to do it)

cd ~
git clone [email protected]:deephaven/deephaven-core.git
cd deephaven-core
./gradlew server-jetty-app:assemble -Poidc

This actually builds the entire app but we are only after deephaven-oidc-authentication-provider-0.24.2-all.jar
After the gradlew built completes you would find the final .jar here:

user@user-linux:~/deephaven-core/authentication/example-providers/oidc/build/libs$ ls -la
total 7176
drwxrwxr-x 2 user user    4096 May  1 21:41 .
drwxrwxr-x 6 user user    4096 May  1 21:41 ..
-rw-rw-r-- 1 user user 7339798 May  1 21:41 deephaven-oidc-authentication-provider-0.24.2-all.jar

deephaven-auth's People

Contributors

kzk2000 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.