playframework / play1

Play framework
https://www.playframework.com/documentation/1.4.x/home
Other
1.58k stars 683 forks source link

Play Framework 1.x with OpenID Connect #1445

Open clim opened 1 year ago

clim commented 1 year ago

Reaching out to inquire for any API resources for version 1.x that integrates with OpenID Connect.

I know that there are existing libraries for OAuth and OpenID. However, these are not compatible with OpenID Connect. Does anyone know and can point me to the right direction on integrating OpenID Connect with Play 1.x please.

xabolcs commented 1 year ago

In my Play! application I implemented OpenID Connect in a hacky way. It is not yet polished, so I didn't upstream it yet, but it works nicely.

Are you interested?

clim commented 1 year ago

@xabolcs Yes please :)

xabolcs commented 1 year ago

Hi @clim , check PR openseedbox/openseedbox#87 !

My implementation's main parts are the "libs" which extends the OAuth2 class and the "controllers" part which implements the workflow (redirects, verifying, ...).

There are lot of commits in my PR as I wanted to separate and group the changes to help understanding. As I worte earlier, it's working nicely in prduction. Currently implemented providers are KeyCloak, Google and GitHub but adding new providers should be easy now.

Please feel free to join to that PR and ask for the details!

clim commented 1 year ago

@xabolcs Thanks a lot! I'll check on this.