Jan
Jan

Reputation: 878

How to do OpenID Connect in Grails 5

I finally bow to the Internet forces and am switching my public-facing Grails application from email based registration/verification to OpenID Connect (Github/Google/Microsoft). The app is running for eight years and was recently upgraded to Grails 5.1 and uses Spring Security.

A couple of years ago i got the Google integration working with some Oauth plugin (grails-spring-security-openid?) but that was under an older version of Grails. The latest version of the Spring-Security-Core plugin still runs fine under Grails 5 but the development of those Oauth plugins seem to have stopped a couple of years ago. Some of the plugins i have beem looking at are:

My real question is ‘How to do OpenID Connect in Grails 5’ but the following points are more specific and show I have already done some work on this ;):

Upvotes: 2

Views: 936

Answers (1)

Jan
Jan

Reputation: 878

To answer my own question, i have not found acceptable Grails plugins that implement OpenID Connect in Grails 5. I am now coding OpenID Connect support for Google and Microsoft in the application without using a plugin. It is not to difficult and only requires a redirect followed by one or two REST calls. Grails-spring-security will still be used for the User model, access control and remember-me support.

Sample code can be found in https://github.com/Janvanoorschot/openidconnect.

Updated dec 2022: I added a Python/Flask project demonstrating the same functionality as the Grails project.

Upvotes: 1

Related Questions