-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #897 from OctopusDeploy/isaac/generic-oidc-accounts
Adds Generic OIDC accounts
- Loading branch information
Showing
9 changed files
with
106 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
source/Octopus.Server.Client/Editors/Async/GenericOidcAccountEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Octopus.Client.Model.Accounts; | ||
using Octopus.Client.Repositories.Async; | ||
|
||
namespace Octopus.Client.Editors.Async | ||
{ | ||
public class GenericOidcAccountEditor : AccountEditor<GenericOidcAccountResource, GenericOidcAccountEditor> | ||
{ | ||
public GenericOidcAccountEditor(IAccountRepository repository) : base(repository) | ||
{ | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
source/Octopus.Server.Client/Editors/GenericOidcAccountEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using Octopus.Client.Model.Accounts; | ||
using Octopus.Client.Repositories; | ||
|
||
namespace Octopus.Client.Editors | ||
{ | ||
public class GenericOidcAccountEditor : AccountEditor<GenericOidcAccountResource, GenericOidcAccountEditor> | ||
{ | ||
public GenericOidcAccountEditor(IAccountRepository repository) : base(repository) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ public enum AccountType | |
Token, | ||
GoogleCloudAccount, | ||
AzureOidc, | ||
GenericOidcAccount, | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
source/Octopus.Server.Client/Model/Accounts/GenericOidcAccountResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using Octopus.Client.Extensibility.Attributes; | ||
|
||
namespace Octopus.Client.Model.Accounts | ||
{ | ||
public class GenericOidcAccountResource : AccountResource | ||
{ | ||
public override AccountType AccountType => AccountType.GenericOidcAccount; | ||
|
||
[Trim] | ||
[Writeable] | ||
public string Audience { get; set; } | ||
|
||
[Writeable] | ||
public string[] DeploymentSubjectKeys { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters