Skip to content

Commit 55aeda8

Browse files
Update API Client
#### What's Changed --- ##### `GET` /sources/oauth/source_types/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` Changed items (object): > Serializer for SourceType New required properties: - `oidc_jwks_url` - `oidc_well_known_url` * Added property `oidc_well_known_url` (string) * Added property `oidc_jwks_url` (string) ##### `GET` /sources/oauth/{slug}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `type` (object) > Serializer for SourceType New required properties: - `oidc_jwks_url` - `oidc_well_known_url` * Added property `oidc_well_known_url` (string) * Added property `oidc_jwks_url` (string) ##### `PUT` /sources/oauth/{slug}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `type` (object) > Serializer for SourceType New required properties: - `oidc_jwks_url` - `oidc_well_known_url` * Added property `oidc_well_known_url` (string) * Added property `oidc_jwks_url` (string) ##### `PATCH` /sources/oauth/{slug}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `type` (object) > Serializer for SourceType New required properties: - `oidc_jwks_url` - `oidc_well_known_url` * Added property `oidc_well_known_url` (string) * Added property `oidc_jwks_url` (string) ##### `POST` /sources/oauth/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `type` (object) > Serializer for SourceType New required properties: - `oidc_jwks_url` - `oidc_well_known_url` * Added property `oidc_well_known_url` (string) * Added property `oidc_jwks_url` (string) ##### `GET` /sources/oauth/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > OAuth Source Serializer * Changed property `type` (object) > Serializer for SourceType New required properties: - `oidc_jwks_url` - `oidc_well_known_url` * Added property `oidc_well_known_url` (string) * Added property `oidc_jwks_url` (string)
1 parent 31bea9f commit 55aeda8

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

authentikClient/Classes/OpenAPIs/Models/SourceType.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
2020
public var authorizationUrl: String?
2121
public var accessTokenUrl: String?
2222
public var profileUrl: String?
23+
public var oidcWellKnownUrl: String?
24+
public var oidcJwksUrl: String?
2325

24-
public init(name: String, slug: String, urlsCustomizable: Bool, requestTokenUrl: String?, authorizationUrl: String?, accessTokenUrl: String?, profileUrl: String?) {
26+
public init(name: String, slug: String, urlsCustomizable: Bool, requestTokenUrl: String?, authorizationUrl: String?, accessTokenUrl: String?, profileUrl: String?, oidcWellKnownUrl: String?, oidcJwksUrl: String?) {
2527
self.name = name
2628
self.slug = slug
2729
self.urlsCustomizable = urlsCustomizable
2830
self.requestTokenUrl = requestTokenUrl
2931
self.authorizationUrl = authorizationUrl
3032
self.accessTokenUrl = accessTokenUrl
3133
self.profileUrl = profileUrl
34+
self.oidcWellKnownUrl = oidcWellKnownUrl
35+
self.oidcJwksUrl = oidcJwksUrl
3236
}
3337

3438
public enum CodingKeys: String, CodingKey, CaseIterable {
@@ -39,6 +43,8 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
3943
case authorizationUrl = "authorization_url"
4044
case accessTokenUrl = "access_token_url"
4145
case profileUrl = "profile_url"
46+
case oidcWellKnownUrl = "oidc_well_known_url"
47+
case oidcJwksUrl = "oidc_jwks_url"
4248
}
4349

4450
// Encodable protocol methods
@@ -52,6 +58,8 @@ public struct SourceType: Codable, JSONEncodable, Hashable {
5258
try container.encode(authorizationUrl, forKey: .authorizationUrl)
5359
try container.encode(accessTokenUrl, forKey: .accessTokenUrl)
5460
try container.encode(profileUrl, forKey: .profileUrl)
61+
try container.encode(oidcWellKnownUrl, forKey: .oidcWellKnownUrl)
62+
try container.encode(oidcJwksUrl, forKey: .oidcJwksUrl)
5563
}
5664
}
5765

docs/SourceType.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
1010
**authorizationUrl** | **String** | | [readonly]
1111
**accessTokenUrl** | **String** | | [readonly]
1212
**profileUrl** | **String** | | [readonly]
13+
**oidcWellKnownUrl** | **String** | | [readonly]
14+
**oidcJwksUrl** | **String** | | [readonly]
1315

1416
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1517

schema.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40934,10 +40934,20 @@ components:
4093440934
type: string
4093540935
readOnly: true
4093640936
nullable: true
40937+
oidc_well_known_url:
40938+
type: string
40939+
readOnly: true
40940+
nullable: true
40941+
oidc_jwks_url:
40942+
type: string
40943+
readOnly: true
40944+
nullable: true
4093740945
required:
4093840946
- access_token_url
4093940947
- authorization_url
4094040948
- name
40949+
- oidc_jwks_url
40950+
- oidc_well_known_url
4094140951
- profile_url
4094240952
- request_token_url
4094340953
- slug

0 commit comments

Comments
 (0)