Grails 4.0.7 and Okta integration

We are working with Grails 4.0.7 version and trying to integrate this okta. I followed this -"Build Server Side Authentication in Grails with OAuth 2.0 and Okta | Okta Developer " but I am unable to get this work with GRAILS 4 VERSION. Has anyone recently tried with grails 4 version?