smui icon indicating copy to clipboard operation
smui copied to clipboard

WIP: OpenID based authentication for SMUI

Open epugh opened this issue 4 years ago • 5 comments
trafficstars

This is a spike for me to have SMUI delegate to Keycloak for authentication. I've been working with a branch in Chorus project to manage the setup of Keycloak: https://github.com/querqy/chorus/pull/47

I've definitely been struggling with some of the Play/Scala code, will need some help getting this whipped into shape ;-)

epugh avatar Mar 02 '21 21:03 epugh

Tasks to be done:

  • [ ] Document how to create a resource_access key in the claim JSON to show up. Eric can't get that to work in Keycloak.
  • [ ] Write up the documentation on how to use this.
  • [ ] Figure out how to get the front end to see an unauthenticated person, and redirect to the ODP URL.

epugh avatar Mar 08 '21 15:03 epugh

Hi @epugh , the feature sounds very interesting , nevertheless , the implementation seems very work in progress (as the title also suggested) with all its "ERIC HERE" log statements ;-)

Do you have a plan to further drive this feature?

pbartusch avatar May 14 '21 12:05 pbartusch

It definitely is WIP... I see the future, just not quite there ;-). The immediate client work that was driving this is wrapped up, but I anticipate picking it back up again. I'll mark it as "Draft" in github to make it clear this isn't ready for produciton. And of course, if anyone else wants to move this along, I more then welcome commits to either this PR or a different solution ;-)

epugh avatar May 14 '21 12:05 epugh

One thing that was difficult was having a way of testing the OpenID (OAuth) without running Keycloak (or another solution)....

I saw this: https://github.com/apache/solr/pull/139#issuecomment-848733275 which might be of interest when we pick this back up.

epugh avatar May 26 '21 13:05 epugh

hi @epugh , I dont know much about Keycloak , but SMUI has a testcontainer infrastructure set up for the automatic test cases. AFAIK , you can bootstrap every docker container to execute test case with the depending software. Might be interesting for a auth service + SMUI setup ...

pbartusch avatar May 27 '21 12:05 pbartusch