-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodel_open_id_connect_configuration.go
397 lines (336 loc) · 11.8 KB
/
model_open_id_connect_configuration.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
/*
authentik
Making authentication simple.
API version: 2025.2.3
Contact: hello@goauthentik.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// OpenIDConnectConfiguration rest_framework Serializer for OIDC Configuration
type OpenIDConnectConfiguration struct {
Issuer string `json:"issuer"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
UserinfoEndpoint string `json:"userinfo_endpoint"`
EndSessionEndpoint string `json:"end_session_endpoint"`
IntrospectionEndpoint string `json:"introspection_endpoint"`
JwksUri string `json:"jwks_uri"`
ResponseTypesSupported []string `json:"response_types_supported"`
IdTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
SubjectTypesSupported []string `json:"subject_types_supported"`
TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"`
}
// NewOpenIDConnectConfiguration instantiates a new OpenIDConnectConfiguration object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewOpenIDConnectConfiguration(issuer string, authorizationEndpoint string, tokenEndpoint string, userinfoEndpoint string, endSessionEndpoint string, introspectionEndpoint string, jwksUri string, responseTypesSupported []string, idTokenSigningAlgValuesSupported []string, subjectTypesSupported []string, tokenEndpointAuthMethodsSupported []string) *OpenIDConnectConfiguration {
this := OpenIDConnectConfiguration{}
this.Issuer = issuer
this.AuthorizationEndpoint = authorizationEndpoint
this.TokenEndpoint = tokenEndpoint
this.UserinfoEndpoint = userinfoEndpoint
this.EndSessionEndpoint = endSessionEndpoint
this.IntrospectionEndpoint = introspectionEndpoint
this.JwksUri = jwksUri
this.ResponseTypesSupported = responseTypesSupported
this.IdTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported
this.SubjectTypesSupported = subjectTypesSupported
this.TokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported
return &this
}
// NewOpenIDConnectConfigurationWithDefaults instantiates a new OpenIDConnectConfiguration object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewOpenIDConnectConfigurationWithDefaults() *OpenIDConnectConfiguration {
this := OpenIDConnectConfiguration{}
return &this
}
// GetIssuer returns the Issuer field value
func (o *OpenIDConnectConfiguration) GetIssuer() string {
if o == nil {
var ret string
return ret
}
return o.Issuer
}
// GetIssuerOk returns a tuple with the Issuer field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetIssuerOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Issuer, true
}
// SetIssuer sets field value
func (o *OpenIDConnectConfiguration) SetIssuer(v string) {
o.Issuer = v
}
// GetAuthorizationEndpoint returns the AuthorizationEndpoint field value
func (o *OpenIDConnectConfiguration) GetAuthorizationEndpoint() string {
if o == nil {
var ret string
return ret
}
return o.AuthorizationEndpoint
}
// GetAuthorizationEndpointOk returns a tuple with the AuthorizationEndpoint field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetAuthorizationEndpointOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AuthorizationEndpoint, true
}
// SetAuthorizationEndpoint sets field value
func (o *OpenIDConnectConfiguration) SetAuthorizationEndpoint(v string) {
o.AuthorizationEndpoint = v
}
// GetTokenEndpoint returns the TokenEndpoint field value
func (o *OpenIDConnectConfiguration) GetTokenEndpoint() string {
if o == nil {
var ret string
return ret
}
return o.TokenEndpoint
}
// GetTokenEndpointOk returns a tuple with the TokenEndpoint field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetTokenEndpointOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.TokenEndpoint, true
}
// SetTokenEndpoint sets field value
func (o *OpenIDConnectConfiguration) SetTokenEndpoint(v string) {
o.TokenEndpoint = v
}
// GetUserinfoEndpoint returns the UserinfoEndpoint field value
func (o *OpenIDConnectConfiguration) GetUserinfoEndpoint() string {
if o == nil {
var ret string
return ret
}
return o.UserinfoEndpoint
}
// GetUserinfoEndpointOk returns a tuple with the UserinfoEndpoint field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetUserinfoEndpointOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UserinfoEndpoint, true
}
// SetUserinfoEndpoint sets field value
func (o *OpenIDConnectConfiguration) SetUserinfoEndpoint(v string) {
o.UserinfoEndpoint = v
}
// GetEndSessionEndpoint returns the EndSessionEndpoint field value
func (o *OpenIDConnectConfiguration) GetEndSessionEndpoint() string {
if o == nil {
var ret string
return ret
}
return o.EndSessionEndpoint
}
// GetEndSessionEndpointOk returns a tuple with the EndSessionEndpoint field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetEndSessionEndpointOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.EndSessionEndpoint, true
}
// SetEndSessionEndpoint sets field value
func (o *OpenIDConnectConfiguration) SetEndSessionEndpoint(v string) {
o.EndSessionEndpoint = v
}
// GetIntrospectionEndpoint returns the IntrospectionEndpoint field value
func (o *OpenIDConnectConfiguration) GetIntrospectionEndpoint() string {
if o == nil {
var ret string
return ret
}
return o.IntrospectionEndpoint
}
// GetIntrospectionEndpointOk returns a tuple with the IntrospectionEndpoint field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetIntrospectionEndpointOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.IntrospectionEndpoint, true
}
// SetIntrospectionEndpoint sets field value
func (o *OpenIDConnectConfiguration) SetIntrospectionEndpoint(v string) {
o.IntrospectionEndpoint = v
}
// GetJwksUri returns the JwksUri field value
func (o *OpenIDConnectConfiguration) GetJwksUri() string {
if o == nil {
var ret string
return ret
}
return o.JwksUri
}
// GetJwksUriOk returns a tuple with the JwksUri field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetJwksUriOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.JwksUri, true
}
// SetJwksUri sets field value
func (o *OpenIDConnectConfiguration) SetJwksUri(v string) {
o.JwksUri = v
}
// GetResponseTypesSupported returns the ResponseTypesSupported field value
func (o *OpenIDConnectConfiguration) GetResponseTypesSupported() []string {
if o == nil {
var ret []string
return ret
}
return o.ResponseTypesSupported
}
// GetResponseTypesSupportedOk returns a tuple with the ResponseTypesSupported field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetResponseTypesSupportedOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.ResponseTypesSupported, true
}
// SetResponseTypesSupported sets field value
func (o *OpenIDConnectConfiguration) SetResponseTypesSupported(v []string) {
o.ResponseTypesSupported = v
}
// GetIdTokenSigningAlgValuesSupported returns the IdTokenSigningAlgValuesSupported field value
func (o *OpenIDConnectConfiguration) GetIdTokenSigningAlgValuesSupported() []string {
if o == nil {
var ret []string
return ret
}
return o.IdTokenSigningAlgValuesSupported
}
// GetIdTokenSigningAlgValuesSupportedOk returns a tuple with the IdTokenSigningAlgValuesSupported field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetIdTokenSigningAlgValuesSupportedOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.IdTokenSigningAlgValuesSupported, true
}
// SetIdTokenSigningAlgValuesSupported sets field value
func (o *OpenIDConnectConfiguration) SetIdTokenSigningAlgValuesSupported(v []string) {
o.IdTokenSigningAlgValuesSupported = v
}
// GetSubjectTypesSupported returns the SubjectTypesSupported field value
func (o *OpenIDConnectConfiguration) GetSubjectTypesSupported() []string {
if o == nil {
var ret []string
return ret
}
return o.SubjectTypesSupported
}
// GetSubjectTypesSupportedOk returns a tuple with the SubjectTypesSupported field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetSubjectTypesSupportedOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.SubjectTypesSupported, true
}
// SetSubjectTypesSupported sets field value
func (o *OpenIDConnectConfiguration) SetSubjectTypesSupported(v []string) {
o.SubjectTypesSupported = v
}
// GetTokenEndpointAuthMethodsSupported returns the TokenEndpointAuthMethodsSupported field value
func (o *OpenIDConnectConfiguration) GetTokenEndpointAuthMethodsSupported() []string {
if o == nil {
var ret []string
return ret
}
return o.TokenEndpointAuthMethodsSupported
}
// GetTokenEndpointAuthMethodsSupportedOk returns a tuple with the TokenEndpointAuthMethodsSupported field value
// and a boolean to check if the value has been set.
func (o *OpenIDConnectConfiguration) GetTokenEndpointAuthMethodsSupportedOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.TokenEndpointAuthMethodsSupported, true
}
// SetTokenEndpointAuthMethodsSupported sets field value
func (o *OpenIDConnectConfiguration) SetTokenEndpointAuthMethodsSupported(v []string) {
o.TokenEndpointAuthMethodsSupported = v
}
func (o OpenIDConnectConfiguration) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["issuer"] = o.Issuer
}
if true {
toSerialize["authorization_endpoint"] = o.AuthorizationEndpoint
}
if true {
toSerialize["token_endpoint"] = o.TokenEndpoint
}
if true {
toSerialize["userinfo_endpoint"] = o.UserinfoEndpoint
}
if true {
toSerialize["end_session_endpoint"] = o.EndSessionEndpoint
}
if true {
toSerialize["introspection_endpoint"] = o.IntrospectionEndpoint
}
if true {
toSerialize["jwks_uri"] = o.JwksUri
}
if true {
toSerialize["response_types_supported"] = o.ResponseTypesSupported
}
if true {
toSerialize["id_token_signing_alg_values_supported"] = o.IdTokenSigningAlgValuesSupported
}
if true {
toSerialize["subject_types_supported"] = o.SubjectTypesSupported
}
if true {
toSerialize["token_endpoint_auth_methods_supported"] = o.TokenEndpointAuthMethodsSupported
}
return json.Marshal(toSerialize)
}
type NullableOpenIDConnectConfiguration struct {
value *OpenIDConnectConfiguration
isSet bool
}
func (v NullableOpenIDConnectConfiguration) Get() *OpenIDConnectConfiguration {
return v.value
}
func (v *NullableOpenIDConnectConfiguration) Set(val *OpenIDConnectConfiguration) {
v.value = val
v.isSet = true
}
func (v NullableOpenIDConnectConfiguration) IsSet() bool {
return v.isSet
}
func (v *NullableOpenIDConnectConfiguration) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableOpenIDConnectConfiguration(val *OpenIDConnectConfiguration) *NullableOpenIDConnectConfiguration {
return &NullableOpenIDConnectConfiguration{value: val, isSet: true}
}
func (v NullableOpenIDConnectConfiguration) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableOpenIDConnectConfiguration) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}