You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
@@ -30,15 +30,17 @@ You will also need at least one provider extension, i.e the `grails-spring-secur
30
30
Change the version to reflect the actual version you would like to use.
31
31
32
32
You can configure the following parameters in your `application.yml`. This is fully optional
33
-
```
33
+
```yaml
34
34
grails:
35
-
plugin:
36
-
springsecurity:
37
-
oauth2:
38
-
active: true #whether the whole plugin is active or not
39
-
registration:
40
-
askToLinkOrCreateAccountUri: '/oauth2/ask' # The URI that is called to aks the user to either create a new account or link to an existing account
41
-
roleNames: ['ROLE_USER'] #A list of role names that should be automatically granted to an OAuth User. The roles will be created if they do not exist
35
+
plugin:
36
+
springsecurity:
37
+
oauth2:
38
+
active: true #whether the whole plugin is active or not
39
+
registration:
40
+
# The URI that is called to aks the user to either create a new account or link to an existing account
41
+
askToLinkOrCreateAccountUri: '/oauth2/ask'
42
+
# A list of role names that should be automatically granted to an OAuth User. The roles will be created if they do not exist
43
+
roleNames: [ 'ROLE_USER' ]
42
44
```
43
45
44
46
Once you have an User domain class, initialize this plugin by using the init script `grails init-oauth2 <domain-class-package> <user-class-name> <oauthid-class-name>`
0 commit comments