Closed magx2 closed 5 years ago
Looks like you found an error in the documentation.
grails.plugin.springsecurity.oauthprovider.approval.auto = UserApproval.APPROVAL_STORE
Should be:
grails.plugin.springsecurity.oauthProvider.approval.auto = UserApproval.APPROVAL_STORE
Note the capital P
in oauthProvider
. This is why your application.yml
worked.
I was following your docs about adding approval store from here https://bluesliverx.github.io/grails-spring-security-oauth2-provider/v3/manual/guide/single.html#approvalHandler
I have added (at the bottom) in
application.groovy
this line:The problem is that every time I start application in file
SpringSecurityOauth2ProviderGrailsPlugin
I always getUserApproval.EXPLICIT
The only thing that help was adding into
application.yml
this code:I don't know what's the difference between these 2 approaches. Do you have any ideas?