-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
model_o_auth2_client.go
1941 lines (1670 loc) · 69.2 KB
/
model_o_auth2_client.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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version: v2.2.1
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
"time"
)
// checks if the OAuth2Client type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &OAuth2Client{}
// OAuth2Client OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.
type OAuth2Client struct {
// OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`.
AccessTokenStrategy *string `json:"access_token_strategy,omitempty"`
AllowedCorsOrigins []string `json:"allowed_cors_origins,omitempty"`
Audience []string `json:"audience,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
AuthorizationCodeGrantAccessTokenLifespan *string `json:"authorization_code_grant_access_token_lifespan,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
AuthorizationCodeGrantIdTokenLifespan *string `json:"authorization_code_grant_id_token_lifespan,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
AuthorizationCodeGrantRefreshTokenLifespan *string `json:"authorization_code_grant_refresh_token_lifespan,omitempty"`
// OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false.
BackchannelLogoutSessionRequired *bool `json:"backchannel_logout_session_required,omitempty"`
// OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.
BackchannelLogoutUri *string `json:"backchannel_logout_uri,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
ClientCredentialsGrantAccessTokenLifespan *string `json:"client_credentials_grant_access_token_lifespan,omitempty"`
// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated.
ClientId *string `json:"client_id,omitempty"`
// OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization.
ClientName *string `json:"client_name,omitempty"`
// OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost.
ClientSecret *string `json:"client_secret,omitempty"`
// OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0.
ClientSecretExpiresAt *int64 `json:"client_secret_expires_at,omitempty"`
// OAuth 2.0 Client URI ClientURI is a URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion.
ClientUri *string `json:"client_uri,omitempty"`
Contacts []string `json:"contacts,omitempty"`
// OAuth 2.0 Client Creation Date CreatedAt returns the timestamp of the client's creation.
CreatedAt *time.Time `json:"created_at,omitempty"`
// OpenID Connect Front-Channel Logout Session Required Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false.
FrontchannelLogoutSessionRequired *bool `json:"frontchannel_logout_session_required,omitempty"`
// OpenID Connect Front-Channel Logout URI RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be.
FrontchannelLogoutUri *string `json:"frontchannel_logout_uri,omitempty"`
GrantTypes []string `json:"grant_types,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
ImplicitGrantAccessTokenLifespan *string `json:"implicit_grant_access_token_lifespan,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
ImplicitGrantIdTokenLifespan *string `json:"implicit_grant_id_token_lifespan,omitempty"`
// OAuth 2.0 Client JSON Web Key Set Client's JSON Web Key Set [JWK] document, passed by value. The semantics of the jwks parameter are the same as the jwks_uri parameter, other than that the JWK Set is passed by value, rather than by reference. This parameter is intended only to be used by Clients that, for some reason, are unable to use the jwks_uri parameter, for instance, by native applications that might not have a location to host the contents of the JWK Set. If a Client can use jwks_uri, it MUST NOT use jwks. One significant downside of jwks is that it does not enable key rotation (which jwks_uri does, as described in Section 10 of OpenID Connect Core 1.0 [OpenID.Core]). The jwks_uri and jwks parameters MUST NOT be used together.
Jwks interface{} `json:"jwks,omitempty"`
// OAuth 2.0 Client JSON Web Key Set URL URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.
JwksUri *string `json:"jwks_uri,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
JwtBearerGrantAccessTokenLifespan *string `json:"jwt_bearer_grant_access_token_lifespan,omitempty"`
// OAuth 2.0 Client Logo URI A URL string referencing the client's logo.
LogoUri *string `json:"logo_uri,omitempty"`
Metadata interface{} `json:"metadata,omitempty"`
// OAuth 2.0 Client Owner Owner is a string identifying the owner of the OAuth 2.0 Client.
Owner *string `json:"owner,omitempty"`
// OAuth 2.0 Client Policy URI PolicyURI is a URL string that points to a human-readable privacy policy document that describes how the deployment organization collects, uses, retains, and discloses personal data.
PolicyUri *string `json:"policy_uri,omitempty"`
PostLogoutRedirectUris []string `json:"post_logout_redirect_uris,omitempty"`
RedirectUris []string `json:"redirect_uris,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
RefreshTokenGrantAccessTokenLifespan *string `json:"refresh_token_grant_access_token_lifespan,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
RefreshTokenGrantIdTokenLifespan *string `json:"refresh_token_grant_id_token_lifespan,omitempty"`
// Specify a time duration in milliseconds, seconds, minutes, hours.
RefreshTokenGrantRefreshTokenLifespan *string `json:"refresh_token_grant_refresh_token_lifespan,omitempty"`
// OpenID Connect Dynamic Client Registration Access Token RegistrationAccessToken can be used to update, get, or delete the OAuth2 Client. It is sent when creating a client using Dynamic Client Registration.
RegistrationAccessToken *string `json:"registration_access_token,omitempty"`
// OpenID Connect Dynamic Client Registration URL RegistrationClientURI is the URL used to update, get, or delete the OAuth2 Client.
RegistrationClientUri *string `json:"registration_client_uri,omitempty"`
// OpenID Connect Request Object Signing Algorithm JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects from this Client MUST be rejected, if not signed with this algorithm.
RequestObjectSigningAlg *string `json:"request_object_signing_alg,omitempty"`
RequestUris []string `json:"request_uris,omitempty"`
ResponseTypes []string `json:"response_types,omitempty"`
// OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.
Scope *string `json:"scope,omitempty"`
// OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.
SectorIdentifierUri *string `json:"sector_identifier_uri,omitempty"`
// SkipConsent skips the consent screen for this client. This field can only be set from the admin API.
SkipConsent *bool `json:"skip_consent,omitempty"`
// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.
SkipLogoutConsent *bool `json:"skip_logout_consent,omitempty"`
// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.
SubjectType *string `json:"subject_type,omitempty"`
// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets.
TokenEndpointAuthMethod *string `json:"token_endpoint_auth_method,omitempty"`
// OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.
TokenEndpointAuthSigningAlg *string `json:"token_endpoint_auth_signing_alg,omitempty"`
// OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.
TosUri *string `json:"tos_uri,omitempty"`
// OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
// OpenID Connect Request Userinfo Signed Response Algorithm JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type.
UserinfoSignedResponseAlg *string `json:"userinfo_signed_response_alg,omitempty"`
AdditionalProperties map[string]interface{}
}
type _OAuth2Client OAuth2Client
// NewOAuth2Client instantiates a new OAuth2Client 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 NewOAuth2Client() *OAuth2Client {
this := OAuth2Client{}
var tokenEndpointAuthMethod string = "client_secret_basic"
this.TokenEndpointAuthMethod = &tokenEndpointAuthMethod
return &this
}
// NewOAuth2ClientWithDefaults instantiates a new OAuth2Client 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 NewOAuth2ClientWithDefaults() *OAuth2Client {
this := OAuth2Client{}
var tokenEndpointAuthMethod string = "client_secret_basic"
this.TokenEndpointAuthMethod = &tokenEndpointAuthMethod
return &this
}
// GetAccessTokenStrategy returns the AccessTokenStrategy field value if set, zero value otherwise.
func (o *OAuth2Client) GetAccessTokenStrategy() string {
if o == nil || IsNil(o.AccessTokenStrategy) {
var ret string
return ret
}
return *o.AccessTokenStrategy
}
// GetAccessTokenStrategyOk returns a tuple with the AccessTokenStrategy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetAccessTokenStrategyOk() (*string, bool) {
if o == nil || IsNil(o.AccessTokenStrategy) {
return nil, false
}
return o.AccessTokenStrategy, true
}
// HasAccessTokenStrategy returns a boolean if a field has been set.
func (o *OAuth2Client) HasAccessTokenStrategy() bool {
if o != nil && !IsNil(o.AccessTokenStrategy) {
return true
}
return false
}
// SetAccessTokenStrategy gets a reference to the given string and assigns it to the AccessTokenStrategy field.
func (o *OAuth2Client) SetAccessTokenStrategy(v string) {
o.AccessTokenStrategy = &v
}
// GetAllowedCorsOrigins returns the AllowedCorsOrigins field value if set, zero value otherwise.
func (o *OAuth2Client) GetAllowedCorsOrigins() []string {
if o == nil || IsNil(o.AllowedCorsOrigins) {
var ret []string
return ret
}
return o.AllowedCorsOrigins
}
// GetAllowedCorsOriginsOk returns a tuple with the AllowedCorsOrigins field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetAllowedCorsOriginsOk() ([]string, bool) {
if o == nil || IsNil(o.AllowedCorsOrigins) {
return nil, false
}
return o.AllowedCorsOrigins, true
}
// HasAllowedCorsOrigins returns a boolean if a field has been set.
func (o *OAuth2Client) HasAllowedCorsOrigins() bool {
if o != nil && !IsNil(o.AllowedCorsOrigins) {
return true
}
return false
}
// SetAllowedCorsOrigins gets a reference to the given []string and assigns it to the AllowedCorsOrigins field.
func (o *OAuth2Client) SetAllowedCorsOrigins(v []string) {
o.AllowedCorsOrigins = v
}
// GetAudience returns the Audience field value if set, zero value otherwise.
func (o *OAuth2Client) GetAudience() []string {
if o == nil || IsNil(o.Audience) {
var ret []string
return ret
}
return o.Audience
}
// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetAudienceOk() ([]string, bool) {
if o == nil || IsNil(o.Audience) {
return nil, false
}
return o.Audience, true
}
// HasAudience returns a boolean if a field has been set.
func (o *OAuth2Client) HasAudience() bool {
if o != nil && !IsNil(o.Audience) {
return true
}
return false
}
// SetAudience gets a reference to the given []string and assigns it to the Audience field.
func (o *OAuth2Client) SetAudience(v []string) {
o.Audience = v
}
// GetAuthorizationCodeGrantAccessTokenLifespan returns the AuthorizationCodeGrantAccessTokenLifespan field value if set, zero value otherwise.
func (o *OAuth2Client) GetAuthorizationCodeGrantAccessTokenLifespan() string {
if o == nil || IsNil(o.AuthorizationCodeGrantAccessTokenLifespan) {
var ret string
return ret
}
return *o.AuthorizationCodeGrantAccessTokenLifespan
}
// GetAuthorizationCodeGrantAccessTokenLifespanOk returns a tuple with the AuthorizationCodeGrantAccessTokenLifespan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetAuthorizationCodeGrantAccessTokenLifespanOk() (*string, bool) {
if o == nil || IsNil(o.AuthorizationCodeGrantAccessTokenLifespan) {
return nil, false
}
return o.AuthorizationCodeGrantAccessTokenLifespan, true
}
// HasAuthorizationCodeGrantAccessTokenLifespan returns a boolean if a field has been set.
func (o *OAuth2Client) HasAuthorizationCodeGrantAccessTokenLifespan() bool {
if o != nil && !IsNil(o.AuthorizationCodeGrantAccessTokenLifespan) {
return true
}
return false
}
// SetAuthorizationCodeGrantAccessTokenLifespan gets a reference to the given string and assigns it to the AuthorizationCodeGrantAccessTokenLifespan field.
func (o *OAuth2Client) SetAuthorizationCodeGrantAccessTokenLifespan(v string) {
o.AuthorizationCodeGrantAccessTokenLifespan = &v
}
// GetAuthorizationCodeGrantIdTokenLifespan returns the AuthorizationCodeGrantIdTokenLifespan field value if set, zero value otherwise.
func (o *OAuth2Client) GetAuthorizationCodeGrantIdTokenLifespan() string {
if o == nil || IsNil(o.AuthorizationCodeGrantIdTokenLifespan) {
var ret string
return ret
}
return *o.AuthorizationCodeGrantIdTokenLifespan
}
// GetAuthorizationCodeGrantIdTokenLifespanOk returns a tuple with the AuthorizationCodeGrantIdTokenLifespan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetAuthorizationCodeGrantIdTokenLifespanOk() (*string, bool) {
if o == nil || IsNil(o.AuthorizationCodeGrantIdTokenLifespan) {
return nil, false
}
return o.AuthorizationCodeGrantIdTokenLifespan, true
}
// HasAuthorizationCodeGrantIdTokenLifespan returns a boolean if a field has been set.
func (o *OAuth2Client) HasAuthorizationCodeGrantIdTokenLifespan() bool {
if o != nil && !IsNil(o.AuthorizationCodeGrantIdTokenLifespan) {
return true
}
return false
}
// SetAuthorizationCodeGrantIdTokenLifespan gets a reference to the given string and assigns it to the AuthorizationCodeGrantIdTokenLifespan field.
func (o *OAuth2Client) SetAuthorizationCodeGrantIdTokenLifespan(v string) {
o.AuthorizationCodeGrantIdTokenLifespan = &v
}
// GetAuthorizationCodeGrantRefreshTokenLifespan returns the AuthorizationCodeGrantRefreshTokenLifespan field value if set, zero value otherwise.
func (o *OAuth2Client) GetAuthorizationCodeGrantRefreshTokenLifespan() string {
if o == nil || IsNil(o.AuthorizationCodeGrantRefreshTokenLifespan) {
var ret string
return ret
}
return *o.AuthorizationCodeGrantRefreshTokenLifespan
}
// GetAuthorizationCodeGrantRefreshTokenLifespanOk returns a tuple with the AuthorizationCodeGrantRefreshTokenLifespan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetAuthorizationCodeGrantRefreshTokenLifespanOk() (*string, bool) {
if o == nil || IsNil(o.AuthorizationCodeGrantRefreshTokenLifespan) {
return nil, false
}
return o.AuthorizationCodeGrantRefreshTokenLifespan, true
}
// HasAuthorizationCodeGrantRefreshTokenLifespan returns a boolean if a field has been set.
func (o *OAuth2Client) HasAuthorizationCodeGrantRefreshTokenLifespan() bool {
if o != nil && !IsNil(o.AuthorizationCodeGrantRefreshTokenLifespan) {
return true
}
return false
}
// SetAuthorizationCodeGrantRefreshTokenLifespan gets a reference to the given string and assigns it to the AuthorizationCodeGrantRefreshTokenLifespan field.
func (o *OAuth2Client) SetAuthorizationCodeGrantRefreshTokenLifespan(v string) {
o.AuthorizationCodeGrantRefreshTokenLifespan = &v
}
// GetBackchannelLogoutSessionRequired returns the BackchannelLogoutSessionRequired field value if set, zero value otherwise.
func (o *OAuth2Client) GetBackchannelLogoutSessionRequired() bool {
if o == nil || IsNil(o.BackchannelLogoutSessionRequired) {
var ret bool
return ret
}
return *o.BackchannelLogoutSessionRequired
}
// GetBackchannelLogoutSessionRequiredOk returns a tuple with the BackchannelLogoutSessionRequired field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetBackchannelLogoutSessionRequiredOk() (*bool, bool) {
if o == nil || IsNil(o.BackchannelLogoutSessionRequired) {
return nil, false
}
return o.BackchannelLogoutSessionRequired, true
}
// HasBackchannelLogoutSessionRequired returns a boolean if a field has been set.
func (o *OAuth2Client) HasBackchannelLogoutSessionRequired() bool {
if o != nil && !IsNil(o.BackchannelLogoutSessionRequired) {
return true
}
return false
}
// SetBackchannelLogoutSessionRequired gets a reference to the given bool and assigns it to the BackchannelLogoutSessionRequired field.
func (o *OAuth2Client) SetBackchannelLogoutSessionRequired(v bool) {
o.BackchannelLogoutSessionRequired = &v
}
// GetBackchannelLogoutUri returns the BackchannelLogoutUri field value if set, zero value otherwise.
func (o *OAuth2Client) GetBackchannelLogoutUri() string {
if o == nil || IsNil(o.BackchannelLogoutUri) {
var ret string
return ret
}
return *o.BackchannelLogoutUri
}
// GetBackchannelLogoutUriOk returns a tuple with the BackchannelLogoutUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetBackchannelLogoutUriOk() (*string, bool) {
if o == nil || IsNil(o.BackchannelLogoutUri) {
return nil, false
}
return o.BackchannelLogoutUri, true
}
// HasBackchannelLogoutUri returns a boolean if a field has been set.
func (o *OAuth2Client) HasBackchannelLogoutUri() bool {
if o != nil && !IsNil(o.BackchannelLogoutUri) {
return true
}
return false
}
// SetBackchannelLogoutUri gets a reference to the given string and assigns it to the BackchannelLogoutUri field.
func (o *OAuth2Client) SetBackchannelLogoutUri(v string) {
o.BackchannelLogoutUri = &v
}
// GetClientCredentialsGrantAccessTokenLifespan returns the ClientCredentialsGrantAccessTokenLifespan field value if set, zero value otherwise.
func (o *OAuth2Client) GetClientCredentialsGrantAccessTokenLifespan() string {
if o == nil || IsNil(o.ClientCredentialsGrantAccessTokenLifespan) {
var ret string
return ret
}
return *o.ClientCredentialsGrantAccessTokenLifespan
}
// GetClientCredentialsGrantAccessTokenLifespanOk returns a tuple with the ClientCredentialsGrantAccessTokenLifespan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetClientCredentialsGrantAccessTokenLifespanOk() (*string, bool) {
if o == nil || IsNil(o.ClientCredentialsGrantAccessTokenLifespan) {
return nil, false
}
return o.ClientCredentialsGrantAccessTokenLifespan, true
}
// HasClientCredentialsGrantAccessTokenLifespan returns a boolean if a field has been set.
func (o *OAuth2Client) HasClientCredentialsGrantAccessTokenLifespan() bool {
if o != nil && !IsNil(o.ClientCredentialsGrantAccessTokenLifespan) {
return true
}
return false
}
// SetClientCredentialsGrantAccessTokenLifespan gets a reference to the given string and assigns it to the ClientCredentialsGrantAccessTokenLifespan field.
func (o *OAuth2Client) SetClientCredentialsGrantAccessTokenLifespan(v string) {
o.ClientCredentialsGrantAccessTokenLifespan = &v
}
// GetClientId returns the ClientId field value if set, zero value otherwise.
func (o *OAuth2Client) GetClientId() string {
if o == nil || IsNil(o.ClientId) {
var ret string
return ret
}
return *o.ClientId
}
// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetClientIdOk() (*string, bool) {
if o == nil || IsNil(o.ClientId) {
return nil, false
}
return o.ClientId, true
}
// HasClientId returns a boolean if a field has been set.
func (o *OAuth2Client) HasClientId() bool {
if o != nil && !IsNil(o.ClientId) {
return true
}
return false
}
// SetClientId gets a reference to the given string and assigns it to the ClientId field.
func (o *OAuth2Client) SetClientId(v string) {
o.ClientId = &v
}
// GetClientName returns the ClientName field value if set, zero value otherwise.
func (o *OAuth2Client) GetClientName() string {
if o == nil || IsNil(o.ClientName) {
var ret string
return ret
}
return *o.ClientName
}
// GetClientNameOk returns a tuple with the ClientName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetClientNameOk() (*string, bool) {
if o == nil || IsNil(o.ClientName) {
return nil, false
}
return o.ClientName, true
}
// HasClientName returns a boolean if a field has been set.
func (o *OAuth2Client) HasClientName() bool {
if o != nil && !IsNil(o.ClientName) {
return true
}
return false
}
// SetClientName gets a reference to the given string and assigns it to the ClientName field.
func (o *OAuth2Client) SetClientName(v string) {
o.ClientName = &v
}
// GetClientSecret returns the ClientSecret field value if set, zero value otherwise.
func (o *OAuth2Client) GetClientSecret() string {
if o == nil || IsNil(o.ClientSecret) {
var ret string
return ret
}
return *o.ClientSecret
}
// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetClientSecretOk() (*string, bool) {
if o == nil || IsNil(o.ClientSecret) {
return nil, false
}
return o.ClientSecret, true
}
// HasClientSecret returns a boolean if a field has been set.
func (o *OAuth2Client) HasClientSecret() bool {
if o != nil && !IsNil(o.ClientSecret) {
return true
}
return false
}
// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field.
func (o *OAuth2Client) SetClientSecret(v string) {
o.ClientSecret = &v
}
// GetClientSecretExpiresAt returns the ClientSecretExpiresAt field value if set, zero value otherwise.
func (o *OAuth2Client) GetClientSecretExpiresAt() int64 {
if o == nil || IsNil(o.ClientSecretExpiresAt) {
var ret int64
return ret
}
return *o.ClientSecretExpiresAt
}
// GetClientSecretExpiresAtOk returns a tuple with the ClientSecretExpiresAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetClientSecretExpiresAtOk() (*int64, bool) {
if o == nil || IsNil(o.ClientSecretExpiresAt) {
return nil, false
}
return o.ClientSecretExpiresAt, true
}
// HasClientSecretExpiresAt returns a boolean if a field has been set.
func (o *OAuth2Client) HasClientSecretExpiresAt() bool {
if o != nil && !IsNil(o.ClientSecretExpiresAt) {
return true
}
return false
}
// SetClientSecretExpiresAt gets a reference to the given int64 and assigns it to the ClientSecretExpiresAt field.
func (o *OAuth2Client) SetClientSecretExpiresAt(v int64) {
o.ClientSecretExpiresAt = &v
}
// GetClientUri returns the ClientUri field value if set, zero value otherwise.
func (o *OAuth2Client) GetClientUri() string {
if o == nil || IsNil(o.ClientUri) {
var ret string
return ret
}
return *o.ClientUri
}
// GetClientUriOk returns a tuple with the ClientUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetClientUriOk() (*string, bool) {
if o == nil || IsNil(o.ClientUri) {
return nil, false
}
return o.ClientUri, true
}
// HasClientUri returns a boolean if a field has been set.
func (o *OAuth2Client) HasClientUri() bool {
if o != nil && !IsNil(o.ClientUri) {
return true
}
return false
}
// SetClientUri gets a reference to the given string and assigns it to the ClientUri field.
func (o *OAuth2Client) SetClientUri(v string) {
o.ClientUri = &v
}
// GetContacts returns the Contacts field value if set, zero value otherwise.
func (o *OAuth2Client) GetContacts() []string {
if o == nil || IsNil(o.Contacts) {
var ret []string
return ret
}
return o.Contacts
}
// GetContactsOk returns a tuple with the Contacts field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetContactsOk() ([]string, bool) {
if o == nil || IsNil(o.Contacts) {
return nil, false
}
return o.Contacts, true
}
// HasContacts returns a boolean if a field has been set.
func (o *OAuth2Client) HasContacts() bool {
if o != nil && !IsNil(o.Contacts) {
return true
}
return false
}
// SetContacts gets a reference to the given []string and assigns it to the Contacts field.
func (o *OAuth2Client) SetContacts(v []string) {
o.Contacts = v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *OAuth2Client) GetCreatedAt() time.Time {
if o == nil || IsNil(o.CreatedAt) {
var ret time.Time
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetCreatedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.CreatedAt) {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *OAuth2Client) HasCreatedAt() bool {
if o != nil && !IsNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *OAuth2Client) SetCreatedAt(v time.Time) {
o.CreatedAt = &v
}
// GetFrontchannelLogoutSessionRequired returns the FrontchannelLogoutSessionRequired field value if set, zero value otherwise.
func (o *OAuth2Client) GetFrontchannelLogoutSessionRequired() bool {
if o == nil || IsNil(o.FrontchannelLogoutSessionRequired) {
var ret bool
return ret
}
return *o.FrontchannelLogoutSessionRequired
}
// GetFrontchannelLogoutSessionRequiredOk returns a tuple with the FrontchannelLogoutSessionRequired field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetFrontchannelLogoutSessionRequiredOk() (*bool, bool) {
if o == nil || IsNil(o.FrontchannelLogoutSessionRequired) {
return nil, false
}
return o.FrontchannelLogoutSessionRequired, true
}
// HasFrontchannelLogoutSessionRequired returns a boolean if a field has been set.
func (o *OAuth2Client) HasFrontchannelLogoutSessionRequired() bool {
if o != nil && !IsNil(o.FrontchannelLogoutSessionRequired) {
return true
}
return false
}
// SetFrontchannelLogoutSessionRequired gets a reference to the given bool and assigns it to the FrontchannelLogoutSessionRequired field.
func (o *OAuth2Client) SetFrontchannelLogoutSessionRequired(v bool) {
o.FrontchannelLogoutSessionRequired = &v
}
// GetFrontchannelLogoutUri returns the FrontchannelLogoutUri field value if set, zero value otherwise.
func (o *OAuth2Client) GetFrontchannelLogoutUri() string {
if o == nil || IsNil(o.FrontchannelLogoutUri) {
var ret string
return ret
}
return *o.FrontchannelLogoutUri
}
// GetFrontchannelLogoutUriOk returns a tuple with the FrontchannelLogoutUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetFrontchannelLogoutUriOk() (*string, bool) {
if o == nil || IsNil(o.FrontchannelLogoutUri) {
return nil, false
}
return o.FrontchannelLogoutUri, true
}
// HasFrontchannelLogoutUri returns a boolean if a field has been set.
func (o *OAuth2Client) HasFrontchannelLogoutUri() bool {
if o != nil && !IsNil(o.FrontchannelLogoutUri) {
return true
}
return false
}
// SetFrontchannelLogoutUri gets a reference to the given string and assigns it to the FrontchannelLogoutUri field.
func (o *OAuth2Client) SetFrontchannelLogoutUri(v string) {
o.FrontchannelLogoutUri = &v
}
// GetGrantTypes returns the GrantTypes field value if set, zero value otherwise.
func (o *OAuth2Client) GetGrantTypes() []string {
if o == nil || IsNil(o.GrantTypes) {
var ret []string
return ret
}
return o.GrantTypes
}
// GetGrantTypesOk returns a tuple with the GrantTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetGrantTypesOk() ([]string, bool) {
if o == nil || IsNil(o.GrantTypes) {
return nil, false
}
return o.GrantTypes, true
}
// HasGrantTypes returns a boolean if a field has been set.
func (o *OAuth2Client) HasGrantTypes() bool {
if o != nil && !IsNil(o.GrantTypes) {
return true
}
return false
}
// SetGrantTypes gets a reference to the given []string and assigns it to the GrantTypes field.
func (o *OAuth2Client) SetGrantTypes(v []string) {
o.GrantTypes = v
}
// GetImplicitGrantAccessTokenLifespan returns the ImplicitGrantAccessTokenLifespan field value if set, zero value otherwise.
func (o *OAuth2Client) GetImplicitGrantAccessTokenLifespan() string {
if o == nil || IsNil(o.ImplicitGrantAccessTokenLifespan) {
var ret string
return ret
}
return *o.ImplicitGrantAccessTokenLifespan
}
// GetImplicitGrantAccessTokenLifespanOk returns a tuple with the ImplicitGrantAccessTokenLifespan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetImplicitGrantAccessTokenLifespanOk() (*string, bool) {
if o == nil || IsNil(o.ImplicitGrantAccessTokenLifespan) {
return nil, false
}
return o.ImplicitGrantAccessTokenLifespan, true
}
// HasImplicitGrantAccessTokenLifespan returns a boolean if a field has been set.
func (o *OAuth2Client) HasImplicitGrantAccessTokenLifespan() bool {
if o != nil && !IsNil(o.ImplicitGrantAccessTokenLifespan) {
return true
}
return false
}
// SetImplicitGrantAccessTokenLifespan gets a reference to the given string and assigns it to the ImplicitGrantAccessTokenLifespan field.
func (o *OAuth2Client) SetImplicitGrantAccessTokenLifespan(v string) {
o.ImplicitGrantAccessTokenLifespan = &v
}
// GetImplicitGrantIdTokenLifespan returns the ImplicitGrantIdTokenLifespan field value if set, zero value otherwise.
func (o *OAuth2Client) GetImplicitGrantIdTokenLifespan() string {
if o == nil || IsNil(o.ImplicitGrantIdTokenLifespan) {
var ret string
return ret
}
return *o.ImplicitGrantIdTokenLifespan
}
// GetImplicitGrantIdTokenLifespanOk returns a tuple with the ImplicitGrantIdTokenLifespan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetImplicitGrantIdTokenLifespanOk() (*string, bool) {
if o == nil || IsNil(o.ImplicitGrantIdTokenLifespan) {
return nil, false
}
return o.ImplicitGrantIdTokenLifespan, true
}
// HasImplicitGrantIdTokenLifespan returns a boolean if a field has been set.
func (o *OAuth2Client) HasImplicitGrantIdTokenLifespan() bool {
if o != nil && !IsNil(o.ImplicitGrantIdTokenLifespan) {
return true
}
return false
}
// SetImplicitGrantIdTokenLifespan gets a reference to the given string and assigns it to the ImplicitGrantIdTokenLifespan field.
func (o *OAuth2Client) SetImplicitGrantIdTokenLifespan(v string) {
o.ImplicitGrantIdTokenLifespan = &v
}
// GetJwks returns the Jwks field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *OAuth2Client) GetJwks() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Jwks
}
// GetJwksOk returns a tuple with the Jwks field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *OAuth2Client) GetJwksOk() (*interface{}, bool) {
if o == nil || IsNil(o.Jwks) {
return nil, false
}
return &o.Jwks, true
}
// HasJwks returns a boolean if a field has been set.
func (o *OAuth2Client) HasJwks() bool {
if o != nil && !IsNil(o.Jwks) {
return true
}
return false
}
// SetJwks gets a reference to the given interface{} and assigns it to the Jwks field.
func (o *OAuth2Client) SetJwks(v interface{}) {
o.Jwks = v
}
// GetJwksUri returns the JwksUri field value if set, zero value otherwise.
func (o *OAuth2Client) GetJwksUri() string {
if o == nil || IsNil(o.JwksUri) {
var ret string
return ret
}
return *o.JwksUri
}
// GetJwksUriOk returns a tuple with the JwksUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetJwksUriOk() (*string, bool) {
if o == nil || IsNil(o.JwksUri) {
return nil, false
}
return o.JwksUri, true
}
// HasJwksUri returns a boolean if a field has been set.
func (o *OAuth2Client) HasJwksUri() bool {
if o != nil && !IsNil(o.JwksUri) {
return true
}
return false
}
// SetJwksUri gets a reference to the given string and assigns it to the JwksUri field.
func (o *OAuth2Client) SetJwksUri(v string) {
o.JwksUri = &v
}
// GetJwtBearerGrantAccessTokenLifespan returns the JwtBearerGrantAccessTokenLifespan field value if set, zero value otherwise.
func (o *OAuth2Client) GetJwtBearerGrantAccessTokenLifespan() string {
if o == nil || IsNil(o.JwtBearerGrantAccessTokenLifespan) {
var ret string
return ret
}
return *o.JwtBearerGrantAccessTokenLifespan
}
// GetJwtBearerGrantAccessTokenLifespanOk returns a tuple with the JwtBearerGrantAccessTokenLifespan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetJwtBearerGrantAccessTokenLifespanOk() (*string, bool) {
if o == nil || IsNil(o.JwtBearerGrantAccessTokenLifespan) {
return nil, false
}
return o.JwtBearerGrantAccessTokenLifespan, true
}
// HasJwtBearerGrantAccessTokenLifespan returns a boolean if a field has been set.
func (o *OAuth2Client) HasJwtBearerGrantAccessTokenLifespan() bool {
if o != nil && !IsNil(o.JwtBearerGrantAccessTokenLifespan) {
return true
}
return false
}
// SetJwtBearerGrantAccessTokenLifespan gets a reference to the given string and assigns it to the JwtBearerGrantAccessTokenLifespan field.
func (o *OAuth2Client) SetJwtBearerGrantAccessTokenLifespan(v string) {
o.JwtBearerGrantAccessTokenLifespan = &v
}
// GetLogoUri returns the LogoUri field value if set, zero value otherwise.
func (o *OAuth2Client) GetLogoUri() string {
if o == nil || IsNil(o.LogoUri) {
var ret string
return ret
}
return *o.LogoUri
}
// GetLogoUriOk returns a tuple with the LogoUri field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetLogoUriOk() (*string, bool) {
if o == nil || IsNil(o.LogoUri) {
return nil, false
}
return o.LogoUri, true
}
// HasLogoUri returns a boolean if a field has been set.
func (o *OAuth2Client) HasLogoUri() bool {
if o != nil && !IsNil(o.LogoUri) {
return true
}
return false
}
// SetLogoUri gets a reference to the given string and assigns it to the LogoUri field.
func (o *OAuth2Client) SetLogoUri(v string) {
o.LogoUri = &v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *OAuth2Client) GetMetadata() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *OAuth2Client) GetMetadataOk() (*interface{}, bool) {
if o == nil || IsNil(o.Metadata) {
return nil, false
}
return &o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *OAuth2Client) HasMetadata() bool {
if o != nil && !IsNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field.
func (o *OAuth2Client) SetMetadata(v interface{}) {
o.Metadata = v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *OAuth2Client) GetOwner() string {
if o == nil || IsNil(o.Owner) {
var ret string
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OAuth2Client) GetOwnerOk() (*string, bool) {
if o == nil || IsNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *OAuth2Client) HasOwner() bool {
if o != nil && !IsNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given string and assigns it to the Owner field.
func (o *OAuth2Client) SetOwner(v string) {
o.Owner = &v