File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
provider/keycloak_client_scope Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -1943,6 +1943,14 @@ display.on.consent.screen
1943
1943
1944
1944
Default value: ` true `
1945
1945
1946
+ ##### ` include_in_token_scope `
1947
+
1948
+ Valid values: `` true `` , `` false ``
1949
+
1950
+ include.in.token.scope
1951
+
1952
+ Default value: ` true `
1953
+
1946
1954
##### ` ensure `
1947
1955
1948
1956
Valid values: ` present ` , ` absent `
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ def self.instances
30
30
attributes = d [ 'attributes' ] || { }
31
31
client_scope [ :consent_screen_text ] = attributes [ 'consent.screen.text' ]
32
32
client_scope [ :display_on_consent_screen ] = attributes [ 'display.on.consent.screen' ]
33
+ client_scope [ :include_in_token_scope ] = attributes [ 'include.in.token.scope' ]
33
34
client_scopes << new ( client_scope )
34
35
end
35
36
end
@@ -56,6 +57,7 @@ def create
56
57
attributes = { }
57
58
attributes [ 'consent.screen.text' ] = resource [ :consent_screen_text ]
58
59
attributes [ 'display.on.consent.screen' ] = resource [ :display_on_consent_screen ]
60
+ attributes [ 'include.in.token.scope' ] = resource [ :include_in_token_scope ]
59
61
data [ :attributes ] = attributes
60
62
61
63
t = Tempfile . new ( 'keycloak_client_scope' )
@@ -107,6 +109,7 @@ def flush
107
109
attributes = { }
108
110
attributes [ 'consent.screen.text' ] = @property_flush [ :consent_screen_text ] if @property_flush [ :consent_screen_text ]
109
111
attributes [ 'display.on.consent.screen' ] = @property_flush [ :display_on_consent_screen ] if @property_flush [ :display_on_consent_screen ]
112
+ attributes [ 'include.in.token.scope' ] = @property_flush [ :include_in_token_scope ] if @property_flush [ :include_in_token_scope ]
110
113
data [ :attributes ] = attributes if attributes
111
114
112
115
t = Tempfile . new ( 'keycloak_client_scope' )
Original file line number Diff line number Diff line change 56
56
defaultto :true
57
57
end
58
58
59
+ newproperty ( :include_in_token_scope , boolean : true ) do
60
+ desc 'include.in.token.scope'
61
+ newvalues ( :true , :false )
62
+ end
63
+
59
64
def self . title_patterns
60
65
[
61
66
[
Original file line number Diff line number Diff line change 72
72
73
73
# Test boolean properties
74
74
[
75
- :display_on_consent_screen
75
+ :display_on_consent_screen ,
76
+ :include_in_token_scope
76
77
] . each do |p |
77
78
it "accepts true for #{ p } " do
78
79
config [ p ] = true
You can’t perform that action at this time.
0 commit comments